Repository navigation
SDL and FreeType/HarfBuzz build themselves the first time a checkout needs them - #206
Merged
Merged
Conversation
…needs them build-shell.sh and check-android.sh stopped with 'run Scripts/build-sdl.sh first' and 'run Vendor/build.sh android first' whenever the gitignored Vendor/ was empty, which is every fresh clone and worktree. They now build what's missing for the ABI asked for (ensure_sdl, ensure_text in config.sh), and build-shell.sh re-stages SDL into a cleaned App. Vendor/build.sh takes a single ABI, so an on-demand build compiles only that one.
|
Claude review (house rules) |
build-sdl.sh takes --no-stage, which ensure_sdl --unstaged passes: a standalone clone's check built SDL and then copied it, and SDL's Java, into an App beside the clone.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Vendor/is gitignored, so every fresh clone and worktree starts with no SDL and no text stack.build-shell.shandcheck-android.shthen stopped withno SDL for arm64-v8a — run Scripts/build-sdl.sh first, and after that withno FreeType/HarfBuzz … run Vendor/build.sh android first. #204 fixed the same problem for the ASTC encoder.config.sh:ensure_sdl <abi>andensure_text <abi>build whatever is missing for that ABI and send the build output to stderr. If the build still leaves it missing, they fail and point at that output.build-sdl.shrestages it incrementally.check-android.shbuilds the runtime with no game, so it passes--unstaged: it needs SDL built, not staged, and it builds SDL withbuild-sdl.sh --no-stage, so a standalone clone's check never creates an App folder beside the clone.build-shell.shandcheck-android.shcall these helpers in place of their "run X first" checks.Vendor/build.shtakes a single ABI (arm64-v8aorx86_64), so an on-demand build compiles only the one asked for.Checks
Vendor/sdl3orVendor/out:Android/Scripts/build-shell.sh --debug arm64-v8abuilt SDL and staged it, built FreeType/HarfBuzz for arm64-v8a, then built AndroidShell and staged 21 libraries.ensure_sdlandensure_textreturn at once, with no build.libSDL3.soremoved from the game's jniLibs:ensure_sdl --unstagedpasses, andensure_sdlrestages it in under a second (ninja: no work to do).Scripts/check-android.sh arm64-v8a: all four packages build.Vendor/sdl3:check-android.shbuilt SDL and FreeType/HarfBuzz, and nothing appeared beside the clone.No visual change.