diff options
author | Thierry Crozat | 2016-03-05 23:07:21 +0000 |
---|---|---|
committer | Thierry Crozat | 2016-03-05 23:08:07 +0000 |
commit | 8f0f9daeb7625b06a0cdbc540340ee51f7ed9b9b (patch) | |
tree | 063b37bd1abd2386fff261528316a1dc4b6ef33c /configure | |
parent | 716dcbc1d869c168e90eaf7f3cf33c60b9a2875e (diff) | |
download | scummvm-rg350-8f0f9daeb7625b06a0cdbc540340ee51f7ed9b9b.tar.gz scummvm-rg350-8f0f9daeb7625b06a0cdbc540340ee51f7ed9b9b.tar.bz2 scummvm-rg350-8f0f9daeb7625b06a0cdbc540340ee51f7ed9b9b.zip |
BUILD: Use xcode-select to determine the path to the Xcode tools on OS X
We hardcoded the path as /Developer/Tools, but that path changed
with more recent versions of Xcode. There is actually a command line
tool to get this path, so use that. But also add an undocumented
configure option to allow specifying the path manually.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -182,6 +182,7 @@ _stagingpath="staging" _win32path="c:/scummvm" _amigaospath="Games:ScummVM" _staticlibpath= +_xcodetoolspath= _sdlconfig=sdl-config _freetypeconfig=freetype-config _sdlpath="$PATH" @@ -1235,6 +1236,9 @@ for ac_option in $@; do --with-staticlib-prefix=*) _staticlibpath=`echo $ac_option | cut -d '=' -f 2` ;; + --with-xcodetools-path=*) + _xcodetoolspath=`echo $ac_option | cut -d '=' -f 2` + ;; --host=*) _host=`echo $ac_option | cut -d '=' -f 2` ;; @@ -2350,6 +2354,18 @@ case $_host_os in echo "Could not determine prefix for static libraries" fi fi + + # If _xcodetoolspath is not set yet try first /Developers/Tools and then + # /Applications/Xcode.app/Contents/Developer/Tools + if test -z "$_xcodetoolspath"; then + _xcodetoolspath=`xcode-select -print-path`/Tools + if test -d "$_xcodetoolspath"; then + echo "Set xcodetools-path to ${_xcodetoolspath}" + else + _xcodetoolspath= + echo "Could not determine path for Xcode Tools" + fi + fi ;; dreamcast) append_var DEFINES "-D__DC__" @@ -4732,6 +4748,7 @@ STAGINGPATH=$_stagingpath WIN32PATH=$_win32path AMIGAOSPATH=$_amigaospath STATICLIBPATH=$_staticlibpath +XCODETOOLSPATH=$_xcodetoolspath SDLCONFIG=$_sdlconfig ABI := $ABI |