Changeset View
Changeset View
Standalone View
Standalone View
build/workspaces/build-osx-bundle.sh
Show All 17 Lines | |||||
# Force build architecture, as sometimes environment is broken. | # Force build architecture, as sometimes environment is broken. | ||||
# For a universal fat binary, the approach would be to build every | # For a universal fat binary, the approach would be to build every | ||||
# 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+"` | ||||
OSX_VERSION=10.14 | |||||
# 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.9"} | ||||
# 0 A.D. release version, e.g. Alpha 21 is 0.0.21 | # 0 A.D. release version, e.g. Alpha 21 is 0.0.21 | ||||
BUNDLE_VERSION=${BUNDLE_VERSION:="0.0.X"} | BUNDLE_VERSION=${BUNDLE_VERSION:="0.0.23b"} | ||||
# 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++"} | ||||
# Unique identifier string for this bundle (reverse-DNS style) | # Unique identifier string for this bundle (reverse-DNS style) | ||||
▲ Show 20 Lines • Show All 181 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator