Files
Thomas MartinandClaude Opus 5.5 44e53f9833 Build on BozoEngine's releases instead of the submodule
cmake/bozo_engine.json pins BozoEngine 0.5.0 (the release of c27ce41, the
commit the submodule pinned) and the SHA-256 of its archive, hashed here.
cmake/bozo_engine_fetch.cmake (TMB_Recomp's, as in TMB_Recomp#121)
downloads it into BozoEngine/ once (TLS, hash checked), stamps
BozoEngine/.release, and refuses an unstamped BozoEngine/ (an old
submodule checkout). CMakeLists.txt, launcher/ and
tests/native_lifetime/ include it unless BOZO_ENGINE_DIR /
LAUNCHER_BOZO_DIR name another tree; the pin reconfigures the build.

dc_build fetches it in a git checkout; make_release puts the fetched tree
(with its stamp) in source\BozoEngine and records engine_version; scripts/
and CI fetch it; the pin test replaces the submodule test. The submodule,
.gitmodules and .git/modules/BozoEngine are gone; /BozoEngine/ is ignored.

Proved: a clean clone (no BozoEngine/) built with dc_build, and main's
submodule build, ran 3000 frames headless with the same pad script:
ref_compare identical on every field (ram, scratchpad, calls, draws,
sound, threads, eeCycle).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-01 00:08:56 +01:00

11 lines
425 B
Bash

#!/usr/bin/env bash
source "$(dirname "$0")/common.sh"
mkdir -p "$ROOT/build"
extra=()
[ ! -f "$GAME_BUILD/dc_gen/dc.elf" ] || extra+=("-DBOZO_TEST_ELF=$GAME_BUILD/dc_gen/dc.elf")
fetch_engine
cmake -S "$ENGINE" -B "$TOOLS_BUILD" -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTING=ON -DBOZO_BUILD_TOOLS=OFF "${extra[@]}" "$@"
cmake --build "$TOOLS_BUILD" -j "$JOBS"
ctest --test-dir "$TOOLS_BUILD" --output-on-failure