Init squashed

This commit is contained in:
Lauri Räsänen 2024-09-17 19:14:58 +03:00
commit 4aac4b824f
95 changed files with 7582 additions and 0 deletions

27
scripts/compile_jolt.sh Executable file
View file

@ -0,0 +1,27 @@
#!/bin/bash -x
set -euo pipefail
mode=${1:-"Debug"}
CWD="$(pwd)"
mkdir -p lib
cd include/JoltPhysics/Build
rm -rf Linux_Debug
rm -rf Linux_Release
rm -rf Linux_Distribution
./cmake_linux_clang_gcc.sh "$mode" clang++ \
-DBUILD_SHARED_LIBS=ON \
-DCPP_RTTI_ENABLED=ON
cd "Linux_$mode"
make -j "$(nproc)"
./UnitTests
cp libJolt.so "$CWD/lib/libJolt.so"

11
scripts/get_steamworks_sdk.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail
SDK_VER=160
rm -rf include/steamworks
curl "https://partner.steamgames.com/downloads/steamworks_sdk_$SDK_VER.zip" -o /tmp/steamworks.zip
unzip /tmp/steamworks.zip -d include/steamworks
head -n 32 include/steamworks/sdk/Readme.txt

8
scripts/run.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
cd build
meson compile
LSAN_OPTIONS="suppressions=../suppr.txt" ./examples/02_systems/02_systems

15
scripts/setup_debug.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
# TODO: gcc busted
export CXX=clang++
# TODO: ubsan doesn't link with jolt
meson setup --reconfigure \
-D examples=true \
-D buildtype=debug \
-D b_sanitize=address \
-D b_lundef=false \
build

9
scripts/setup_release.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -euo pipefail
meson setup --reconfigure \
-D examples=true \
-D buildtype=release \
build