fgsfds
2 years ago
3 changed files with 58 additions and 59 deletions
@ -0,0 +1,43 @@
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash |
||||
|
||||
. scripts/lib.sh |
||||
|
||||
export DEVKITPRO=/opt/devkitpro |
||||
source $DEVKITPRO/switchvars.sh || die |
||||
|
||||
# args: branch name, gamedir name |
||||
build_hlsdk() |
||||
{ |
||||
echo "Building HLSDK: $1 branch..." |
||||
git checkout switch-$1 |
||||
./waf configure -T release --nswitch || die_configure |
||||
./waf build || die |
||||
cp build/dlls/$1_nswitch_aarch64.so ../pkgtemp/xash3d/$2/dlls/ |
||||
cp build/cl_dll/client_nswitch_aarch64.so ../pkgtemp/xash3d/$2/cl_dlls/ |
||||
./waf clean |
||||
} |
||||
|
||||
echo "Building libsolder..." |
||||
|
||||
sudo make -C libsolder install || exit 1 |
||||
|
||||
echo "Building engine..." |
||||
|
||||
./waf configure -T release --nswitch || die_configure |
||||
./waf build || die |
||||
|
||||
echo "Building HLSDK..." |
||||
|
||||
# TODO: replace with FWGS/hlsdk-portable.git when PRs are merged |
||||
cd hlsdk-xash3d || die |
||||
build_hlsdk hl valve |
||||
build_hlsdk opfor gearbox |
||||
build_hlsdk bshift bshift |
||||
|
||||
echo "Copying artifacts..." |
||||
|
||||
cp build/engine/xash.nro pkgtemp/xash3d/xash3d.nro |
||||
cp build/ref/gl/libref_gl.so pkgtemp/xash3d/ |
||||
cp build/ref/soft/libref_soft.so pkgtemp/xash3d/ |
||||
cp build/3rdparty/mainui/libmenu.so pkgtemp/xash3d/ |
||||
cp build/3rdparty/extras/extras.pk3 pkgtemp/xash3d/valve/ |
Loading…
Reference in new issue