Equivalent to xcconfig conditionals available?
Equivalent to xcconfig conditionals available?
- Subject: Equivalent to xcconfig conditionals available?
- From: "Mattias Arrelid" <email@hidden>
- Date: Tue, 17 Jun 2008 14:26:51 +0200
Hi everyone,
We have some xcconfig files that we use for several of our build
targets. All these config files includes a master xcconfig file with
some default values. Now, it would be nice if this master file, after
all declarations, could have a conditional import depending on some
variable that we are able to set. Let me show you how I want it to
look (in pseudo xcconfig language):
SOME_SETTING_1 = SOME_VALUE_1;
SOME_SETTING_2 = SOME_VALUE_2;
...
...
SOME_SETTING_N-1 = SOME_VALUE_N-1;
SOME_SETTING_N = SOME_VALUE_N;
#ifdef SOMETHING
#include "config_for_something.h"
#else
#include "another_config.h"
#endif
Can I achieve this somehow? The Xcode User Guide doesn't reveal too
much on this, and neither does searching Google and this archive. I
know we could split each target into two targets, but that really
isn't feasible. If one cannot have conditionals, I guess there is no
syntax for checking if a config file is present before inclusion
either?
Regards
Mattias
_______________________________________________
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