Re: Problem with targets having different header files with the same name
Re: Problem with targets having different header files with the same name
- Subject: Re: Problem with targets having different header files with the same name
- From: Stephen Kay <email@hidden>
- Date: Sat, 01 Sep 2012 22:32:22 -0400
- Thread-topic: Problem with targets having different header files with the same name
on 9/1/12 8:06 PM, Jens Alfke at email@hidden wrote:
>
> On Sep 1, 2012, at 2:06 PM, Stephen Kay <email@hidden> wrote:
>
>> I have multiple targets that all need to include, very near the beginning of
>> compilation, a file named "options_app_type.h". This contains #defines that
>> tell the code what flavor of the application to become.
>
> Use a prefix file for this. Create one for each target, and set up each target
> to use the corresponding one.
OK, I already have a prefix file for each target, I guess I can rename the
files uniquely and #include it in the prefix file.
However...
>> I have not successfully figured out how to do this in Xcode. In the
>> project's list of files, for example (two targets so far), I have two
>> options_app_type.h files. One file is included in one target, the other file
>> is included in the other target (in other words, one of the target
>> checkboxes will be off.) They have different paths to:
>
> Adding header files to a target doesn¹t really change anything at compile
> time; the compiler will still search the source trees to find them. Its
> purpose is to be able to specify what headers become public when you build a
> framework.
Is it not possible to have targets include different versions of the same
files?
Even with the above workaround, I have many other files in the two targets
that are in separate directories, both .cpp and .h files, that have the same
names but are different versions. This is absolutely necessary, and would
seemingly be impossible to rename them all uniquely.
Thanks,
- Stephen
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Stephen Kay
Karma-Lab :: developers of KARMA
http://www.karma-lab.com
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden