[SDL] dumb MacOS X bundle question...
Darrell Walisser
walisser at mac.com
Sat Feb 15 13:32:01 PST 2003
On Saturday, February 15, 2003, at 03:01 PM,
<icculus at clutteredmind.org> wrote:
>
> Is there an easy way to do this?
>
The SDL frameworks are already setup to do this. All you have to do is
copy the frameworks into MyApp.app/Contents/Frameworks (the easiest way
is to add a CopyFiles build phase to a PB project).
If you want to use a regular .dylib (not a framework), you have to use
the -install_name option to libtool (or -dylib_install_name to ld),
with something like:
libtool [...] -dynamic -o mylib.dylib -install_name
"@executable_path/../SharedLibraries/mylib.dylib"
This implies the following layout:
MyApp.app
Contents
MacOS
MyApp
SharedLibraries
mylib.dylib
More information about the SDL
mailing list