mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-29 16:24:16 +00:00
ci: nswitch: use waf install to copy build artifacts
This commit is contained in:
parent
2aeee59a31
commit
f7f9cfecfc
@ -2,16 +2,13 @@
|
|||||||
|
|
||||||
. scripts/lib.sh
|
. scripts/lib.sh
|
||||||
|
|
||||||
# args: branch name, gamedir name
|
|
||||||
build_hlsdk()
|
build_hlsdk()
|
||||||
{
|
{
|
||||||
echo "Building HLSDK: $1 branch..."
|
echo "Building HLSDK: $1 branch..."
|
||||||
git checkout switch-$1
|
git checkout $1
|
||||||
./waf configure -T release --nswitch || die_configure
|
./waf configure -T release --nswitch || die_configure
|
||||||
./waf build || die
|
./waf build install --destdir=../pkgtemp/xash3d || die
|
||||||
cp build/dlls/$1_nswitch_arm64.so ../pkgtemp/xash3d/$2/dlls/
|
./waf clean
|
||||||
cp build/cl_dll/client_nswitch_arm64.so ../pkgtemp/xash3d/$2/cl_dlls/
|
|
||||||
./waf clean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "Setting up environment..."
|
echo "Setting up environment..."
|
||||||
@ -43,22 +40,13 @@ make -C libsolder install || die
|
|||||||
echo "Building engine..."
|
echo "Building engine..."
|
||||||
|
|
||||||
./waf configure -T release --nswitch || die_configure
|
./waf configure -T release --nswitch || die_configure
|
||||||
./waf build || die
|
./waf build install --destdir=pkgtemp/xash3d || die
|
||||||
|
|
||||||
echo "Building HLSDK..."
|
echo "Building HLSDK..."
|
||||||
|
|
||||||
# TODO: replace with hlsdk-portable when PRs are merged
|
# TODO: replace with hlsdk-portable when PRs are merged
|
||||||
pushd hlsdk-xash3d
|
pushd hlsdk-portable
|
||||||
build_hlsdk hl valve
|
build_hlsdk mobile_hacks valve
|
||||||
build_hlsdk opfor gearbox
|
build_hlsdk opfor gearbox
|
||||||
build_hlsdk bshift bshift
|
build_hlsdk bshift bshift
|
||||||
popd
|
popd
|
||||||
|
|
||||||
echo "Copying artifacts..."
|
|
||||||
|
|
||||||
cp build/engine/xash.nro pkgtemp/xash3d/xash3d.nro
|
|
||||||
cp build/filesystem/filesystem_stdio.so pkgtemp/xash3d/
|
|
||||||
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/
|
|
||||||
|
@ -9,10 +9,9 @@ docker pull devkitpro/devkita64:latest || exit 1
|
|||||||
echo "Downloading libsolder..."
|
echo "Downloading libsolder..."
|
||||||
|
|
||||||
rm -rf libsolder
|
rm -rf libsolder
|
||||||
git clone https://github.com/fgsfdsfgs/libsolder.git || exit 1
|
git clone https://github.com/fgsfdsfgs/libsolder.git --depth=1 || exit 1
|
||||||
|
|
||||||
echo "Downloading HLSDK..."
|
echo "Downloading HLSDK..."
|
||||||
|
|
||||||
# TODO: change to FWGS/hlsdk-portable.git when changes are merged in
|
|
||||||
rm -rf hlsdk-xash3d hlsdk-portable
|
rm -rf hlsdk-xash3d hlsdk-portable
|
||||||
git clone --recursive https://github.com/fgsfdsfgs/hlsdk-xash3d.git || exit 1
|
git clone --recursive https://github.com/FWGS/hlsdk-portable || exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user