From 043429a5f33d3658792b11d143da02c34a58b778 Mon Sep 17 00:00:00 2001 From: pchote Date: Sun, 21 Feb 2010 23:15:54 +1300 Subject: [PATCH] Package Cg and SDL frameworks inside the app bundle; Only external dependency is mono itself --- packaging/osx/package.sh | 13 +++++++++---- thirdparty/ISE.FreeType.dll.config | 2 +- thirdparty/Tao.Externals.dll.config | 2 +- thirdparty/Tao/Tao.Cg.dll.config | 4 ++-- thirdparty/Tao/Tao.FreeType.dll.config | 2 +- thirdparty/Tao/Tao.Sdl.dll.config | 14 +++++++------- 6 files changed, 21 insertions(+), 16 deletions(-) diff --git a/packaging/osx/package.sh b/packaging/osx/package.sh index 0c997c27da..7bffa552bb 100755 --- a/packaging/osx/package.sh +++ b/packaging/osx/package.sh @@ -1,8 +1,8 @@ #!/bin/sh # OpenRA Packaging script for osx # Creates a .app bundle for OpenRA game, and a command line app for OpenRa server -# Statically links all custom dlls into the executable, but requires the Mono and -# Cg frameworks installed on the target machine for these binaries to run +# Statically links all custom dlls into the executable; only requires Mono +# to run on a non-development machine # List of game files to copy into the app bundle # TODO: This will be significantly shorter once we move the ra files into its mod dir @@ -17,8 +17,13 @@ export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/Mono.framework/Versi mkbundle --deps --static -z -o openra_server OpenRA.Server.exe OpenRa.FileFormats.dll # Package the game binary -mkbundle --deps --static -z -o OpenRA OpenRa.Game.exe OpenRa.FileFormats.dll thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll thirdparty/Tao/Tao.OpenAl.dll thirdparty/Tao/Tao.FreeType.dll thirdparty/Tao/Tao.Sdl.dll thirdparty/Tao.Externals.dll thirdparty/ISE.FreeType.dll OpenRa.Gl.dll +mkbundle --deps --static -z -o OpenRA OpenRa.Game.exe OpenRa.Gl.dll OpenRa.FileFormats.dll thirdparty/Tao/Tao.Cg.dll thirdparty/Tao/Tao.OpenGl.dll thirdparty/Tao/Tao.OpenAl.dll thirdparty/Tao/Tao.FreeType.dll thirdparty/Tao/Tao.Sdl.dll thirdparty/Tao.Externals.dll thirdparty/ISE.FreeType.dll -# Copy everything into our game bundle template +# Copy game files into our game bundle template cp -R packaging/osx/OpenRA.app . cp -R $GAME_FILES OpenRA.app/Contents/Resources/ + +# Copy frameworks into our game bundle template +mkdir OpenRa.app/Contents/Frameworks/ +cp -R /Library/Frameworks/Cg.Framework OpenRa.app/Contents/Frameworks/ +cp -R /Library/Frameworks/SDL.Framework OpenRa.app/Contents/Frameworks/ \ No newline at end of file diff --git a/thirdparty/ISE.FreeType.dll.config b/thirdparty/ISE.FreeType.dll.config index 2512bdc4a0..eb6146f72c 100644 --- a/thirdparty/ISE.FreeType.dll.config +++ b/thirdparty/ISE.FreeType.dll.config @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/thirdparty/Tao.Externals.dll.config b/thirdparty/Tao.Externals.dll.config index b6745059fe..280afa3d65 100644 --- a/thirdparty/Tao.Externals.dll.config +++ b/thirdparty/Tao.Externals.dll.config @@ -2,7 +2,7 @@ - + diff --git a/thirdparty/Tao/Tao.Cg.dll.config b/thirdparty/Tao/Tao.Cg.dll.config index f80891331b..bd71c15b14 100644 --- a/thirdparty/Tao/Tao.Cg.dll.config +++ b/thirdparty/Tao/Tao.Cg.dll.config @@ -2,11 +2,11 @@ - + - + diff --git a/thirdparty/Tao/Tao.FreeType.dll.config b/thirdparty/Tao/Tao.FreeType.dll.config index f16cbf2616..6817cd6ed8 100644 --- a/thirdparty/Tao/Tao.FreeType.dll.config +++ b/thirdparty/Tao/Tao.FreeType.dll.config @@ -2,6 +2,6 @@ - + diff --git a/thirdparty/Tao/Tao.Sdl.dll.config b/thirdparty/Tao/Tao.Sdl.dll.config index b0a842cc54..6dde2cd798 100644 --- a/thirdparty/Tao/Tao.Sdl.dll.config +++ b/thirdparty/Tao/Tao.Sdl.dll.config @@ -2,36 +2,36 @@ - + - + - + - + - + - + - +