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: Thomas Engelmeier <email@hidden>
- Date: Fri, 7 Nov 2008 10:00:45 +0100
On 06.11.2008, at 20:14, Chris Espinosa wrote:
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.
Merci - I'll go for that route.
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.
The current sources rely on something like this. Bottom line is when
neither WIN32 nor __unix__ are defined, you run into tons of puzzling
compilation errors due to an undefined typedef.
Thanks,
Tom_E
_______________________________________________
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