Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets
Home

[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]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] Re: (PR#8164) building out of a builddir: generate_packets.py
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Sep 2004 13:30:42 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8164 >

Marko Lindqvist wrote:

>>2.  Couldn't they still be included via "" if we just reordered the 
>>include directories?  Or would this be "bad"?
> 
>   Problem is that "header.h" is searched from current directory before 
> any include paths are considered.
> 
>   One solution would be to remove generated files from cvs altogether, 
> let those who cannot generate them to use distributed snapshots instead. 
>    Then there would be no *_gen.h files in srcdir but only in builddir.

Bad since this adds python as a compilation requirement.

>   And one idea I just got: Lets store *_gen.h headers in separate 
> directory. They would never be in current directory and we could control 
> which one gets included by setting include paths.

That would be fine.

>   And if everything else fails we may build these files into srcdir and 
> not to builddir. They should be identical between different builddirs 
> anyway (it doesn't matter how builddir is configured). But this is still 
> evil way :-)

Yes, it is evil.

jason




[Prev in Thread] Current Thread [Next in Thread]