Re: #define when framework style includes are used?
Re: #define when framework style includes are used?
- Subject: Re: #define when framework style includes are used?
- From: Chris Espinosa <email@hidden>
- Date: Thu, 6 Nov 2008 11:14:18 -0800
On Nov 6, 2008, at 2:42 AM, Thomas Engelmeier wrote:
I'm working on an cross-platform project where all other platforms
use a non-framework variant of a library that is packaged up as
Framework on OS X. I'd really prefer to keep out contitional
compilation at all and leave the code as it is.
Is there an recommended way to add the framework include folder as
header search path, i.e.
{SDK_FOLDER}/System/Library/Frameworks/ThatFrameWork/Headers/?
The porting guide recommends to switch conditional compilation by
features detection instead of platform (__APPLE__), is there
anything along the lines of __FRAMEWORK_INCLUDE_STYLE__ set up as
preset #define?
You can define a Header Search Path that points directly into the
framework's header directory, just as you do above. If a directory in
the search path doesn't exist or is empty, it's silently skipped and
the remaining folders in the search path are searched. So you could
use this to have framework includes found when present, and have other
includes used when the framework is absent.
There are no preset #defines to let you condition around the #include
statements, but you can set one up yourself in per-target or per-
configuration Preprocessor Macros.
Chris
_______________________________________________
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