Changeset View
Changeset View
Standalone View
Standalone View
build/workspaces/update-workspaces.sh
Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | case $i in | ||||
-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 | ||||
if [ "$enable_atlas" = "true" ]; then | if [ "$enable_atlas" = "true" ]; then | ||||
premake_args="${premake_args} --atlas" | premake_args="${premake_args} --atlas" | ||||
if [ "$(uname -s)" = "Darwin" ]; then | |||||
# Provide path to wx-config on OS X (as wxwidgets doesn't support pkgconfig) | |||||
export WX_CONFIG="${WX_CONFIG:="$(pwd)/../../libraries/osx/wxwidgets/bin/wx-config"}" | |||||
else | |||||
export WX_CONFIG="${WX_CONFIG:="wx-config"}" | |||||
fi | |||||
if [ ! -x "$(command -v $WX_CONFIG)" ] | |||||
andy5995: If wx-config is run with no args, it return 1. If passed '--version' or '--libs', it returns 0. | |||||
StanAuthorUnsubmitted Done Inline ActionsI'm not that proficient with shell feel free to provide a code inline. All my attempts resulted in command complaining about too many or invalid args ;) Stan: I'm not that proficient with shell feel free to provide a code inline. All my attempts resulted… | |||||
andy5995Unsubmitted Done Inline Actions
Oh... nvm. I see it's not actually running. LGTM! andy5995: > If wx-config is run with no args, it return 1. If passed '--version' or '--libs', it returns… | |||||
then | |||||
echo 'WX_CONFIG must be set and valid or wx-config must be present when --atlas is passed as argument.' | |||||
exit 1 | |||||
fi | |||||
fi | fi | ||||
cd "$(dirname $0)" | cd "$(dirname $0)" | ||||
# Now in build/workspaces/ (where we assume this script resides) | # Now in build/workspaces/ (where we assume this script resides) | ||||
if [ "`uname -s`" = "Darwin" ]; then | if [ "`uname -s`" = "Darwin" ]; then | ||||
# Set minimal SDK version | # Set minimal SDK version | ||||
export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.12"} | export MIN_OSX_VERSION=${MIN_OSX_VERSION:="10.12"} | ||||
# Provide path to wx-config on OS X (as wxwidgets doesn't support pkgconfig) | |||||
export WX_CONFIG=${WX_CONFIG:="$(pwd)/../../libraries/osx/wxwidgets/bin/wx-config"} | |||||
fi | fi | ||||
# Don't want to build bundled libs on OS X | # Don't want to build bundled libs on OS X | ||||
# (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 | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
If wx-config is run with no args, it return 1. If passed '--version' or '--libs', it returns 0.