• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Equivalent to xcconfig conditionals available?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Equivalent to xcconfig conditionals available?
      • From: Ken Thomases <email@hidden>
    • Re: Equivalent to xcconfig conditionals available?
      • From: Chris Espinosa <email@hidden>
    • Re: Equivalent to xcconfig conditionals available?
      • From: Matt Gough <email@hidden>
  • Prev by Date: Re: Interface Builder popularity w/ Cocoa Developers
  • Next by Date: Re: Equivalent to xcconfig conditionals available?
  • Previous by thread: Re: New documentation update resolves "921" problem
  • Next by thread: Re: Equivalent to xcconfig conditionals available?
  • Index(es):
    • Date
    • Thread