Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/libraries/osx/build-osx-libs.sh
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
GNUTLS_VERSION="gnutls-3.6.15" | GNUTLS_VERSION="gnutls-3.6.15" | ||||
# OS X only includes part of ICU, and only the dylib | # OS X only includes part of ICU, and only the dylib | ||||
# NOTE: remember to also update LIB_URL below when changing version | # NOTE: remember to also update LIB_URL below when changing version | ||||
ICU_VERSION="icu4c-69_1" | ICU_VERSION="icu4c-69_1" | ||||
ENET_VERSION="enet-1.3.17" | ENET_VERSION="enet-1.3.17" | ||||
MINIUPNPC_VERSION="miniupnpc-2.2.2" | MINIUPNPC_VERSION="miniupnpc-2.2.2" | ||||
SODIUM_VERSION="libsodium-1.0.18" | SODIUM_VERSION="libsodium-1.0.18" | ||||
FMT_VERSION="7.1.3" | FMT_VERSION="7.1.3" | ||||
MOLTENVK_VERSION="1.2.2" | |||||
# -------------------------------------------------------------- | # -------------------------------------------------------------- | ||||
# Bundled with the game: | # Bundled with the game: | ||||
# * SpiderMonkey | # * SpiderMonkey | ||||
# * NVTT | # * NVTT | ||||
# * FCollada | # * FCollada | ||||
# Provided by OS X: | # Provided by OS X: | ||||
# * OpenAL | # * OpenAL | ||||
▲ Show 20 Lines • Show All 975 Lines • ▼ Show 20 Lines | then | ||||
popd | popd | ||||
cp -f lib/pkgconfig/* $PC_PATH | cp -f lib/pkgconfig/* $PC_PATH | ||||
echo "$FMT_VERSION" > .already-built | echo "$FMT_VERSION" > .already-built | ||||
else | else | ||||
already_built | already_built | ||||
fi | fi | ||||
popd > /dev/null | popd > /dev/null | ||||
# -------------------------------------------------------------- | |||||
echo -e "Building Molten VK..." | |||||
LIB_DIRECTORY="MoltenVK-$MOLTENVK_VERSION" | |||||
LIB_ARCHIVE="MoltenVK-$MOLTENVK_VERSION.tar.gz" | |||||
LIB_URL="https://releases.wildfiregames.com/libs/" | |||||
mkdir -p "molten-vk" | |||||
pushd "molten-vk" > /dev/null | |||||
if [[ "$force_rebuild" = "true" ]] || [[ ! -e .already-built ]] || [[ "$(<.already-built)" != "$MOLTENVK_VERSION" ]] | |||||
then | |||||
INSTALL_DIR="../../../../binaries/system/" | |||||
rm -f .already-built | |||||
download_lib $LIB_URL $LIB_ARCHIVE | |||||
rm -rf "$LIB_DIRECTORY" | |||||
tar -xf $LIB_ARCHIVE | |||||
pushd $LIB_DIRECTORY | |||||
# The CI cannot build MoltenVK so we provide prebuild binaries instead. | |||||
# Use mv instead of copy to preserve binary signature integrity. See: | |||||
# https://developer.apple.com/forums/thread/130313?answerId=410541022#410541022 | |||||
mv dylib/libMoltenVK.dylib $INSTALL_DIR | |||||
popd > /dev/null | |||||
echo "$MOLTENVK_VERSION" > .already-built | |||||
else | |||||
already_built | |||||
fi | |||||
popd > /dev/null | |||||
# -------------------------------------------------------------------- | # -------------------------------------------------------------------- | ||||
# The following libraries are shared on different OSes and may | # The following libraries are shared on different OSes and may | ||||
# be customized, so we build and install them from bundled sources | # be customized, so we build and install them from bundled sources | ||||
# -------------------------------------------------------------------- | # -------------------------------------------------------------------- | ||||
# SpiderMonkey - bundled, no download | # SpiderMonkey - bundled, no download | ||||
pushd ../source/spidermonkey/ > /dev/null | pushd ../source/spidermonkey/ > /dev/null | ||||
if [[ "$force_rebuild" = "true" ]] | if [[ "$force_rebuild" = "true" ]] | ||||
Show All 34 Lines |
Wildfire Games · Phabricator