diff options
author | bjarni <bjarni@openttd.org> | 2005-12-06 09:27:42 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-12-06 09:27:42 +0000 |
commit | 1a93bcb5bb0bf733ad74d8e192478e9e4643ca7a (patch) | |
tree | 4ba3970f99ec1415b93974ea8cedfa94d3bbc470 /os | |
parent | 414481cdd8732223fea40a9efd5e30463e7521a1 (diff) | |
download | openttd-1a93bcb5bb0bf733ad74d8e192478e9e4643ca7a.tar.xz |
(svn r3262) -Fix: [OSX] universal binaries can now include the dynamic SDL lib into the bundle
Diffstat (limited to 'os')
-rw-r--r-- | os/macosx/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/os/macosx/Makefile b/os/macosx/Makefile index e3c953057..07f8722db 100644 --- a/os/macosx/Makefile +++ b/os/macosx/Makefile @@ -4,6 +4,7 @@ ifdef BUILD_UNIVERSAL_BINARY BUILD_UNIVERSAL_BINARY:=build_universal_binary +COPY_x86_SDL_LIB:=$(Q)cp $(x86_SDL_LIB) $(OSXAPP)/Contents/lib/libSDL-x86.dylib endif # setting the default vars for making universal binaries @@ -42,13 +43,12 @@ $(BUILD_UNIVERSAL_BINARY): $(TTD) @echo '===> Cleaning up to build for the other architecture' $(Q)make clean $(Q)make UNIVERSAL_OTHER_HALF:=1 + $(Q)install_name_tool -change $(x86_SDL_LIB) @executable_path/../lib/libSDL-x86.dylib $(TTD) $(Q)cp $(TTD) temp_binary_dir/$(TTD)_b @echo '===> Joining binaries into one universal one' $(Q)lipo temp_binary_dir/$(TTD)_a temp_binary_dir/$(TTD)_b -create -output $(TTD) $(Q)rm -rf temp_binary_dir - - # build the bundle. OSX wants to keep apps in bundles, so we will give it one # the good thing about bundles is that you can keep extra files in them, so we keep lng files and a data dir in it @@ -58,12 +58,14 @@ $(BUILD_OSX_BUNDLE): $(TTD) $(BUILD_UNIVERSAL_BINARY) $(Q)mkdir -p "$(OSXAPP)"/Contents/Resources $(Q)mkdir -p "$(OSXAPP)"/Contents/Data $(Q)mkdir -p "$(OSXAPP)"/Contents/Lang + $(Q)mkdir -p "$(OSXAPP)"/Contents/lib $(Q)echo "APPL????" > "$(OSXAPP)"/Contents/PkgInfo $(Q)cp os/macosx/openttd.icns "$(OSXAPP)"/Contents/Resources/openttd.icns $(Q)os/macosx/plistgen.sh "$(OSXAPP)" "$(REV)" $(Q)cp data/* "$(OSXAPP)"/Contents/Data/ $(Q)cp lang/*.lng "$(OSXAPP)"/Contents/Lang/ $(Q)cp $(TTD) "$(OSXAPP)"/Contents/MacOS/$(TTD) + $(COPY_x86_SDL_LIB) # make the release disk image. Should only be used with releases and is a good and fast way to make sure to remember all the needed files release: all |