[Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >
On Fri, Mar 26, 2004 at 11:03:00PM -0800, Jason Short wrote:
>
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >
>
> Raimar Falke wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >
> >
> > On Thu, Mar 25, 2004 at 02:51:33PM -0800, Jason Short wrote:
> >
> >><URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >
> >>
> >>Here's an updated version of the patch. I changed generate_packets.py
> >>and its caller as Raimar suggested.
> >>
> >>packets_gen.h and packhand_gen.h are only included from one file each.
> >>However hand_gen.h is included from many files. Should these be unified
> >>so that it's included from just one header? sernet.h and civserver.h
> >>are the only two options, and neither is particularly good.
> >
> > Can't we solve this <> addition with some more include magic? It seems
> > wrong to me to add an exception for a rarely used case (different src
> > and build dir).
>
> I don't see how we can remove them entirely. We can limit them to a
> single location if we wanted to.
>
> If the original files weren't in the srcdir this wouldn't be a problem.
> The problem is if we use "" the srcdir files are used instead of the
> builddir ones. But this gets us nowhere since we certainly don't want
> someone building from a release tarball to have to rebuild the files.
Release:
only one packets_gen.c in SRCDIR
Development:
two packets_gen.c in SRCDIR and BUILDDIR
we want the one in BUILDDIR
So if the search order is BUILDDIR,SRCDIR everything should be ok with
simple "".
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"- Amiga Y2K fixes (a bit late, wouldn't you say?)"
-- Linus Torvalds about linux 2.4.0 at 4 Jan 2001
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Raimar Falke, 2004/03/17
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Marko Lindqvist, 2004/03/17
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Jason Short, 2004/03/17
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, rwetmore@xxxxxxxxxxxx, 2004/03/18
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Raimar Falke, 2004/03/18
- [Freeciv-Dev] (PR#8164) building out of a builddir: generate_packets.py, Jason Short, 2004/03/24
- [Freeciv-Dev] (PR#8164) building out of a builddir: generate_packets.py, Jason Short, 2004/03/25
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Raimar Falke, 2004/03/27
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Jason Short, 2004/03/27
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py,
Raimar Falke <=
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Jason Short, 2004/03/27
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Raimar Falke, 2004/03/27
- [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py, Jason Short, 2004/03/27
|
|