Re: Conditional dependencies (and linked libraries) in a Xcode project?
Re: Conditional dependencies (and linked libraries) in a Xcode project?
- Subject: Re: Conditional dependencies (and linked libraries) in a Xcode project?
- From: Ruslan Zasukhin <email@hidden>
- Date: Mon, 12 May 2008 19:05:52 +0300
- Thread-topic: Conditional dependencies (and linked libraries) in a Xcode project?
On 5/12/08 5:28 PM, "Mattias Arrelid" <email@hidden> wrote:
>>> The only reasonable solution we've come up with so far is the "ifdef
>>> and if macro guard"-approach; in each source file in the new static
>>> library, there's an #ifdef combined with an #if in the top of the file
>>> that checks whether a macro is set (and if, which value it has) or
>>> not. Let's call this macro BUILD_WITH_NEW_STATIC_LIB. That macro is
>>> set in a pre-compiled header (and it is 0 by default), and this works
>>> just fine - the maintainer sets this to 1 locally in his checkout -
>>> but it's far from elegant.
>>>
>>> Does anyone know of a better way of solving this?
>>
>> You can create in your new MASTER project few configurations, as
>>
>> NORMAL BUILD
>> BUILD WITH STATIC LIBS
>
> Configurations? Don't you mean targets? If so; I don't want to add
> targets for each and every possible setting available in the project.
> Just image that we add another in-house internal library that is
> independent of the first one; then we would have four possible
> configurations. Add another and we have six... and so on (should be !n
> targets in total).
>
> And neither do I want to add unique configurations; we do have
> debug/release today, and they seem to work just fine. if we were to
> take the above mentioned approach, we would have the same problem here
> (!n configurations in total).
>
> Or did I misinterpret you?
Yes I have mean targets,
Well, if you have so many options then really you need use macroses way and
have some
myproj_config.h
This is used e.g. In PHP, ACI, ICU and other projects.
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
_______________________________________________
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