Re: Including different libs based on build style
Re: Including different libs based on build style
- Subject: Re: Including different libs based on build style
- From: Mark Lilback <email@hidden>
- Date: Wed, 25 Aug 2004 18:05:18 -0500
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.