Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/build/workspaces/update-workspaces.sh
Show All 35 Lines | |||||
# Parse command-line options: | # Parse command-line options: | ||||
premake_args="" | premake_args="" | ||||
with_system_premake5=false | with_system_premake5=false | ||||
without_nvtt=false | without_nvtt=false | ||||
with_system_nvtt=false | with_system_nvtt=false | ||||
with_system_mozjs45=false | with_system_mozjs52=false | ||||
enable_atlas=true | enable_atlas=true | ||||
for i in "$@" | for i in "$@" | ||||
do | do | ||||
case $i in | case $i in | ||||
--with-system-premake5 ) with_system_premake5=true ;; | --with-system-premake5 ) with_system_premake5=true ;; | ||||
--without-nvtt ) without_nvtt=true; premake_args="${premake_args} --without-nvtt" ;; | --without-nvtt ) without_nvtt=true; premake_args="${premake_args} --without-nvtt" ;; | ||||
--with-system-nvtt ) with_system_nvtt=true; premake_args="${premake_args} --with-system-nvtt" ;; | --with-system-nvtt ) with_system_nvtt=true; premake_args="${premake_args} --with-system-nvtt" ;; | ||||
--with-system-mozjs45 ) with_system_mozjs45=true; premake_args="${premake_args} --with-system-mozjs45" ;; | --with-system-mozjs52 ) with_system_mozjs52=true; premake_args="${premake_args} --with-system-mozjs52" ;; | ||||
--enable-atlas ) enable_atlas=true ;; | --enable-atlas ) enable_atlas=true ;; | ||||
--disable-atlas ) enable_atlas=false ;; | --disable-atlas ) enable_atlas=false ;; | ||||
-j* ) JOBS=$i ;; | -j* ) JOBS=$i ;; | ||||
# Assume any other --options are for Premake | # Assume any other --options are for Premake | ||||
--* ) premake_args="${premake_args} $i" ;; | --* ) premake_args="${premake_args} $i" ;; | ||||
esac | esac | ||||
done | done | ||||
Show All 20 Lines | |||||
# (build-osx-libs.sh is used instead) | # (build-osx-libs.sh is used instead) | ||||
if [ "`uname -s`" != "Darwin" ]; then | if [ "`uname -s`" != "Darwin" ]; then | ||||
echo "Updating bundled third-party dependencies..." | echo "Updating bundled third-party dependencies..." | ||||
echo | echo | ||||
# Build/update bundled external libraries | # Build/update bundled external libraries | ||||
(cd ../../libraries/source/fcollada/src && ${MAKE} ${JOBS}) || die "FCollada build failed" | (cd ../../libraries/source/fcollada/src && ${MAKE} ${JOBS}) || die "FCollada build failed" | ||||
echo | echo | ||||
if [ "$with_system_mozjs45" = "false" ]; then | if [ "$with_system_mozjs52" = "false" ]; then | ||||
(cd ../../libraries/source/spidermonkey && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "SpiderMonkey build failed" | (cd ../../libraries/source/spidermonkey && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "SpiderMonkey build failed" | ||||
fi | fi | ||||
echo | echo | ||||
if [ "$with_system_nvtt" = "false" ] && [ "$without_nvtt" = "false" ]; then | if [ "$with_system_nvtt" = "false" ] && [ "$without_nvtt" = "false" ]; then | ||||
(cd ../../libraries/source/nvtt && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "NVTT build failed" | (cd ../../libraries/source/nvtt && MAKE=${MAKE} JOBS=${JOBS} ./build.sh) || die "NVTT build failed" | ||||
fi | fi | ||||
echo | echo | ||||
fi | fi | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator