Changeset View
Changeset View
Standalone View
Standalone View
build/workspaces/build-osx-bundle.sh
Show All 19 Lines | |||||
# library with both archs and combine them with lipo, then do the | # library with both archs and combine them with lipo, then do the | ||||
# same thing with the game itself. | # same thing with the game itself. | ||||
# Choices are "x86_64" or "i386" (ppc and ppc64 not supported) | # Choices are "x86_64" or "i386" (ppc and ppc64 not supported) | ||||
export ARCH=${ARCH:="x86_64"} | export ARCH=${ARCH:="x86_64"} | ||||
OSX_VERSION=`sw_vers -productVersion | grep -Eo "^\d+.\d+"` | OSX_VERSION=`sw_vers -productVersion | grep -Eo "^\d+.\d+"` | ||||
# Set SDK and mimimum required OS X version | # Set SDK and mimimum required OS X version | ||||
export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk"} | export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX$OSX_VERSION.sdk"} | ||||
export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.7"} | export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.8"} | ||||
elexis: See more research in D1654, me assuming that this is some kind of workaround | |||||
# 0 A.D. release version, e.g. Alpha 21 is 0.0.21 | # 0 A.D. release version, e.g. Alpha 23 is 0.0.23 | ||||
BUNDLE_VERSION=${BUNDLE_VERSION:="0.0.X"} | BUNDLE_VERSION=${BUNDLE_VERSION:="0.0.X"} | ||||
# Define compiler as "clang", this is all Mavericks supports. | # Define compiler as "clang", this is all Mavericks supports. | ||||
# gcc symlinks may still exist, but they are simply clang with | # gcc symlinks may still exist, but they are simply clang with | ||||
# slightly different config, which confuses build scripts. | # slightly different config, which confuses build scripts. | ||||
# llvm-gcc and gcc 4.2 are no longer supported by SpiderMonkey. | # llvm-gcc and gcc 4.2 are no longer supported by SpiderMonkey. | ||||
export CC=${CC:="clang"} CXX=${CXX:="clang++"} | export CC=${CC:="clang"} CXX=${CXX:="clang++"} | ||||
▲ Show 20 Lines • Show All 182 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
See more research in D1654, me assuming that this is some kind of workaround