diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 22:10:21 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-24 22:10:21 -0500 |
| commit | 2fc4224cda37257071fdf05ecdb5d29b5af31862 (patch) | |
| tree | 643ae7ae5ac7d89f8a7f4b7d02860b0679b72c11 /scripts/linux-boot/configure-worktree.sh | |
| parent | c48cc2353abddb82a81e5cbac342ca81bac6fadf (diff) | |
| parent | b07b9ecb09b47fa6496f01ad9d8fe87d205bd5d8 (diff) | |
Merge commit 'b07b9ecb0' into HEAD
Diffstat (limited to 'scripts/linux-boot/configure-worktree.sh')
| -rwxr-xr-x | scripts/linux-boot/configure-worktree.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/linux-boot/configure-worktree.sh b/scripts/linux-boot/configure-worktree.sh new file mode 100755 index 000000000..c983b3357 --- /dev/null +++ b/scripts/linux-boot/configure-worktree.sh | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # usage: configure-worktree.sh <worktree> | ||
| 3 | # Configures a Windows build of the runtime on Linux with clang-cl and an xwin SDK (XWIN_DIR, default | ||
| 4 | # ~/.local/share/xwin-sdk). SDL3_SRC=<an SDL3 source tree> makes the configure work offline. | ||
| 5 | set -eu; W=$(realpath "$1") | ||
| 6 | cmake -S "$W/runtime" -B "$W/runtime/build/boot" -G Ninja -DCMAKE_BUILD_TYPE=Release \ | ||
| 7 | -DCMAKE_TOOLCHAIN_FILE="$W/runtime/cmake/clang-cl-xwin.cmake" -DXWIN_DIR="${XWIN_DIR:-$HOME/.local/share/xwin-sdk}" \ | ||
| 8 | -DLEONIDA_BUILD_WINDOWS_RUNTIME=ON -DLEONIDA_SDL3=ON \ | ||
| 9 | ${SDL3_SRC:+-DFETCHCONTENT_SOURCE_DIR_SDL3="$SDL3_SRC"} | ||