mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-22 01:45:19 +01:00
wscript: try to fix install on windows
This commit is contained in:
parent
0c6b51fa0c
commit
fc665527ae
@ -11,9 +11,9 @@ fi
|
||||
|
||||
# NOTE: to build with other version use --msvc_version during configuration
|
||||
# NOTE: sometimes you may need to add WinSDK to %PATH%
|
||||
./waf.bat configure -s "SDL2_VC" -T "debug" --enable-utils $AMD64 || die
|
||||
./waf.bat configure -s "SDL2_VC" -T "debug" --enable-utils --prefix=`pwd` $AMD64 || die
|
||||
./waf.bat build -v || die
|
||||
./waf.bat install --prefix=`pwd` || die
|
||||
./waf.bat install || die
|
||||
|
||||
if [ "$ARCH" = "i386" ]; then
|
||||
cp SDL2_VC/lib/x86/SDL2.dll . # Install SDL2
|
||||
|
6
wscript
6
wscript
@ -295,8 +295,10 @@ def configure(conf):
|
||||
conf.env.LIBDIR = conf.env.BINDIR = '${PREFIX}/lib/xash3d'
|
||||
conf.env.SHAREDIR = '${PREFIX}/share/xash3d'
|
||||
else:
|
||||
conf.env.PREFIX = '/'
|
||||
conf.env.SHAREDIR = conf.env.LIBDIR = conf.env.BINDIR = '/'
|
||||
if sys.platform != 'win32':
|
||||
conf.env.PREFIX = '/'
|
||||
|
||||
conf.env.SHAREDIR = conf.env.LIBDIR = conf.env.BINDIR = conf.env.PREFIX
|
||||
|
||||
conf.define('XASH_BUILD_COMMIT', conf.env.GIT_VERSION if conf.env.GIT_VERSION else 'notset')
|
||||
conf.define('XASH_LOW_MEMORY', conf.options.LOW_MEMORY)
|
||||
|
Loading…
Reference in New Issue
Block a user