summaryrefslogtreecommitdiff
path: root/2026/submissions/threecoff/clennis/scripts
diff options
context:
space:
mode:
authorLLLL Colonq <llll@colonq>2026-08-17 20:14:16 -0400
committerLLLL Colonq <llll@colonq>2026-08-17 20:14:16 -0400
commitde99c5f7636a952025ea13de02bafd25bcb6bdec (patch)
treebe359424af4f6717103e3b667b6529ae5a4b4e6a /2026/submissions/threecoff/clennis/scripts
parent4d4d1f24721f27fbf37e1070be6414de130ace61 (diff)
Fix broken
Diffstat (limited to '2026/submissions/threecoff/clennis/scripts')
-rwxr-xr-x2026/submissions/threecoff/clennis/scripts/build-native.sh12
-rwxr-xr-x2026/submissions/threecoff/clennis/scripts/build-web.sh29
-rw-r--r--2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh20
3 files changed, 0 insertions, 61 deletions
diff --git a/2026/submissions/threecoff/clennis/scripts/build-native.sh b/2026/submissions/threecoff/clennis/scripts/build-native.sh
deleted file mode 100755
index 8a0b297..0000000
--- a/2026/submissions/threecoff/clennis/scripts/build-native.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env bash
-# Configure + build the native desktop binary at ./build-native/tennis
-set -euo pipefail
-
-ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
-cd "$ROOT"
-
-cmake -B build-native -DCMAKE_BUILD_TYPE=Debug
-cmake --build build-native -j"$(nproc)"
-
-echo
-echo ">> Built build-native/tennis — run it with: ./build-native/tennis"
diff --git a/2026/submissions/threecoff/clennis/scripts/build-web.sh b/2026/submissions/threecoff/clennis/scripts/build-web.sh
deleted file mode 100755
index 12ca74b..0000000
--- a/2026/submissions/threecoff/clennis/scripts/build-web.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-# Configure + build the WebAssembly version into ./build-web (tennis.html/.js/.wasm)
-set -euo pipefail
-
-ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
-cd "$ROOT"
-
-# Activate the project-local Emscripten SDK if the caller hasn't already.
-if ! command -v emcc >/dev/null 2>&1; then
- if [ -f "$ROOT/vendor/emsdk/emsdk_env.sh" ]; then
- # shellcheck disable=SC1091
- source "$ROOT/vendor/emsdk/emsdk_env.sh"
- else
- echo "error: emcc not found and vendor/emsdk missing. Run scripts/setup-emsdk.sh first." >&2
- exit 1
- fi
-fi
-
-# CMake/emscripten intermediates live in build/web; only the runtime files
-# (index/tennis.html, tennis.js, tennis.wasm, tennis.data) land in build-web.
-emcmake cmake -B build/web -DPLATFORM=Web -DCMAKE_BUILD_TYPE=Release
-cmake --build build/web -j"$(nproc)"
-cmake --install build/web --prefix build-web --component web >/dev/null
-
-echo
-echo ">> Built build-web/tennis.html (+ index.html copy) — serve it"
-echo " (COOP/COEP not required; ports below 1024 need root) with e.g.:"
-echo " python -m http.server -d build-web 8000"
-echo " then open http://localhost:8000/"
diff --git a/2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh b/2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh
deleted file mode 100644
index b711b7f..0000000
--- a/2026/submissions/threecoff/clennis/scripts/setup-emsdk.sh
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/usr/bin/env bash
-# Install the Emscripten SDK into ./vendor/emsdk (needed only for the web build).
-set -euo pipefail
-
-ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
-EMSDK_DIR="$ROOT/vendor/emsdk"
-
-if [ ! -d "$EMSDK_DIR" ]; then
- echo ">> Cloning emsdk into $EMSDK_DIR"
- git clone --depth 1 https://github.com/emscripten-core/emsdk.git "$EMSDK_DIR"
-fi
-
-cd "$EMSDK_DIR"
-echo ">> Installing latest Emscripten toolchain (large download)..."
-./emsdk install latest
-./emsdk activate latest
-
-echo
-echo ">> Done. Activate it in your shell with:"
-echo " source $EMSDK_DIR/emsdk_env.sh"