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: Including different libs based on build style



At 3:25 PM -0400 8/25/2004, Mike Pinkerton wrote:
I'm wondering if I'm just overlooking how to do something, I can't
figure out how with XCode.

I have a project that uses prebuilt libraries from an external source.
The libraries are in separate directories for debug and release, eg:

Here is what I do. I've got the external frameworks this way:

3rdPartFrameworksRelease/
3rdPartyFrameworksDebug/
3rdPartyFrameworks -> symlink to version I want to use

Then I run the following AppleScript to switch the path and the current build style. I tried to get it to work from the Xcode scripts menu, but couldn't figure out how to get the path to the applescript I wanted to run w/o hardcoding it.

tell application "Xcode"
set destname to "3rdPartyFrameworksDebug"
tell current project
set projpath to path
try
do shell script "ls " & path & destname
on error err
--failed to find.
display dialog "This script does not apply to the current project"
return
end try
if name of current build style is "Development" then
set current build style to build style "Deployment"
set destname to "3rdPartyFrameworksRelease"
else if name of current build style is "Deployment" then
set current build style to build style "Development"
end if
set symname to projpath & "/3rdPartyFrameworks"
do shell script "rm " & symname
do shell script "cd " & projpath & "; ln -s " & destname & " 3rdPartyFrameworks"
end tell
end tell



-- __________________________________________________________________________ "The fetters imposed on liberty at home have ever Mark J. Lilback been forged out of the weapons provided for <email@hidden> defence against real, pretended, or imaginary http://www.lilback.com/ dangers from abroad." -- James Madison _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.


References: 
 >Including different libs based on build style (From: "Mike Pinkerton" <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.