Re: Get access to specified frameworks in custom script phase
Re: Get access to specified frameworks in custom script phase
- Subject: Re: Get access to specified frameworks in custom script phase
- From: Jonas Maebe <email@hidden>
- Date: Mon, 20 Jun 2005 17:23:48 +0200
(for the archives)
On 16 jun 2005, at 17:03, Jonas Maebe wrote:
Is there any way to get linked frameworks and libraries (put into
the "External Frameworks and Libraries" group) to show up in some
environment variable during a custom script phase in XCode 2.1? (or
alternatively, to add them elsewhere so they are accessible in the
custom script phase, preferably libraries and frameworks separately).
During my experimentations, I came up with the following (working)
osascript:
LINKERPARAS=`osascript -e "tell application \"Xcode\"
set temp to \"\"
repeat with f in (build files of link binary with libraries phase of
target \"$TARGETNAME\" of project \"$PROJECT\")
set n to name of f
if n ends with \".framework\" then
set temp to temp & \" -framework \" & (text 1 thru ((length
of n) - 10) of n)
else if (n ends with \".dylib\") then
set temp to temp & \" -l\" & (text 4 thru ((length of n) -
6) of n)
else
set temp to temp & \" \" & n
end if
end repeat
set result to temp
end tell"`
In the end, I didn't need it though.
Jonas
_______________________________________________
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