re: Carbon framework - Public headers
re: Carbon framework - Public headers
- Subject: re: Carbon framework - Public headers
- From: George Warner <email@hidden>
- Date: Mon, 08 May 2006 09:24:53 -0700
- Thread-topic: Carbon framework - Public headers
On Sun, 7 May 2006 18:08:50 +0200, Patrick Perroud <email@hidden>
wrote:
> I'm getting quite bored of doing this manually everytimes - the real
> thing then the symlinks - therefore there is my question: how could
> I set my XCode project so it would create this missing "Headers"
> folder into "A" at building time, letting me copy my public headers
> in there using a simple "Copy" build phase?
Anything you can do from the command line Xcode could just as easily do from
a "Run Script Build Phase":
cd ${BUILT_PRODUCTS_DIR}/${CONTENTS_FOLDER_PATH}
mkdir -p -v Versions/A/Headers
ln -sf A Versions/Current
ln -sf Versions/Current/Headers Headers
Note: I just added this to an application project I had open to test the
script commands. For an actual framework you may need to use something other
than "CONTENTS_FOLDER_PATH". If you look at the build transcript (pane)
after a build you can see a bunch of "setenv" commands that define
environmental variables. You can use these in your scripts by putting the
dollar-sign & curly-braces around them (like I did in my example above).
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
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