Changeset View
Changeset View
Standalone View
Standalone View
source/tools/dist/build-osx-bundle.sh
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# This script will build an OS X app bundle for 0 A.D. | # This script will build an OS X app bundle for 0 A.D. | ||||
# | # | ||||
# App bundles are intended to be self-contained and portable. | # App bundles are intended to be self-contained and portable. | ||||
# An SDK is required, usually included with Xcode. The SDK ensures | # An SDK is required, usually included with Xcode. The SDK ensures | ||||
# that only those system libraries are used which are available on | # that only those system libraries are used which are available on | ||||
# the chosen target and compatible systems. | # the chosen target and compatible systems. | ||||
# | # | ||||
# Force build architecture, as sometimes environment is broken. | # TODO: is there anything to do for ARM support? | ||||
# For a universal fat binary, the approach would be to build every | |||||
# library with both archs and combine them with lipo, then do the | |||||
# same thing with the game itself. | |||||
# Choices are "x86_64" or "i386" (ppc and ppc64 not supported) | |||||
export ARCH=${ARCH:="x86_64"} | export ARCH=${ARCH:="x86_64"} | ||||
# Set mimimum required OS X version, SDK location and tools | # Set mimimum required OS X version, SDK location and tools | ||||
# Old SDKs can be found at https://github.com/phracker/MacOSX-SDKs | # Old SDKs can be found at https://github.com/phracker/MacOSX-SDKs | ||||
export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.9"} | export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.12"} | ||||
export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${MIN_OSX_VERSION}.sdk"} | export SYSROOT=${SYSROOT:="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX${MIN_OSX_VERSION}.sdk"} | ||||
export CC=${CC:="clang"} CXX=${CXX:="clang++"} | export CC=${CC:="clang"} CXX=${CXX:="clang++"} | ||||
# 0 A.D. release version | # 0 A.D. release version | ||||
BUNDLE_VERSION=${BUNDLE_VERSION:="0.0.24dev"} | BUNDLE_VERSION=${BUNDLE_VERSION:="0.0.24dev"} | ||||
BUNDLE_FILENAME="0ad-${BUNDLE_VERSION}-alpha-osx64.dmg" | BUNDLE_FILENAME="0ad-${BUNDLE_VERSION}-alpha-osx64.dmg" | ||||
# Unique identifier string for this bundle (reverse-DNS style) | # Unique identifier string for this bundle (reverse-DNS style) | ||||
▲ Show 20 Lines • Show All 183 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator