„install-xash3ds.sh“ ändern

This commit is contained in:
DeltaLima 2022-08-21 21:35:06 +00:00
parent d0ec4b5ff2
commit db3daeb09f

View file

@ -16,6 +16,15 @@ else
XASHDS_PORT=$1 XASHDS_PORT=$1
fi fi
if [ "$2" == "client" ]
then
CLIENT=true
else
CLIENT=false
fi
XASH3D_BASEDIR=$(pwd)/build XASH3D_BASEDIR=$(pwd)/build
mkdir -p $XASH3D_BASEDIR/result mkdir -p $XASH3D_BASEDIR/result
@ -32,7 +41,16 @@ cd xash3d-fwgs
## old if you use deprecated xash3d ## old if you use deprecated xash3d
## cmake -DXASH_DEDICATED=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" ../ ## cmake -DXASH_DEDICATED=ON -DCMAKE_C_FLAGS="-m32" -DCMAKE_CXX_FLAGS="-m32" ../
## make ## make
./waf configure -T release -d if [ $CLIENT = false ]
then
WAF_OPTION=""
else
WAF_OPTION="-d"
fi
WAF_OPTION
./waf configure -T release $WAF_OPTION
./waf make ./waf make
./waf install --destdir=bin/ ./waf install --destdir=bin/