X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=build.sh;h=bb59b6faf6ff3f181f6d46a43ac738727559dc09;hb=d00b1df8f80e4714dc2f9aa2189d242bb4d09a2f;hp=a4683b70ee2d26d5c26023928a9f08f454140761;hpb=0945c6c301e38138b6ac54a02d5b3aea602de526;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/build.sh b/build.sh index a4683b7..bb59b6f 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,6 @@ #!/bin/bash -# Copyright (C) 2021-2022 Harry Godden (hgn) - All Rights Reserved +# +# Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved # # Main cross-compiling build script for Skate Rift # Supports Linux and Windows building from a Linux Host @@ -144,10 +145,11 @@ vg_command(){ # Dependencies cp vg/dep/steam/steamclient.so bin/linux_server/ cp vg/dep/steam/libsteam_api.so bin/linux_server/ + cp vg/dep/steam/libsdkencryptedappticket.so bin/linux_server/ _compiler=$_linux_compiler _options=$_linux_options - _link="-lm $_linux_linksteam" + _link="-pthread -lm -lsdkencryptedappticket $_linux_linksteam" _src="server.c" _folder=$_linux_server_folder _dst="skaterift_server" @@ -155,6 +157,20 @@ vg_command(){ compile_x ;; + testaa) + titleit "Dev" + mkdir -p bin/aatest/cfg + + _compiler=$_linux_compiler + _options=$_linux_options + _link="-lm" + _src="testaa.c" + _folder=bin/aatest + _dst="testaa" + _ext="" + + compile_x + ;; #TODO: These are not cross platform in the build script, a full build # from source is therefore not possible on windows, only a linux @@ -213,10 +229,19 @@ vg_command(){ run_server wait ;; + aa) + run_command testaa + cd bin/aatest + ./testaa + cd ./../ + ;; *) echo "Unrecognised command $1" esac } +lsan_file=$(realpath ".lsan_suppress.txt") +export LSAN_OPTIONS="suppressions=$lsan_file" + vg_command debug source vg/vg_build.sh