upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/linux-boot/configure-worktree.sh
diff options
context:
space:
mode:
authorandretuta <andreviniciusmerlia@gmail.com>2026-11-25 00:58:58 -0300
committerandretuta <andreviniciusmerlia@gmail.com>2026-11-25 00:58:58 -0300
commitf9792cc56de10067f1bbdb233eaac23cd5b2074f (patch)
tree29b081c088ccc77ddd184c9937d445ada25e30e2 /scripts/linux-boot/configure-worktree.sh
parentb358d9062d10e63fbd90bfbb08c4bac8b9ef0b30 (diff)
parent5129be10d47e16ecf5d8c41cfec12a59a2f25512 (diff)
Merge remote-tracking branch 'ubiq/main' into feat/gdk-lifecycle-window-hook
# Conflicts: # scripts/build_runtime.ps1
Diffstat (limited to 'scripts/linux-boot/configure-worktree.sh')
-rwxr-xr-xscripts/linux-boot/configure-worktree.sh9
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.
5set -eu; W=$(realpath "$1")
6cmake -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"}