Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: 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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.