Buildscr bits for making KaiOS builds

These are currently treated as just another JavaScript build, so they
don't have their own variable to turn them off.
This commit is contained in:
Ben Harris
2022-12-11 14:10:16 +00:00
parent cc2e94ab2b
commit eb60f001b7

View File

@ -24,6 +24,9 @@ in puzzles do echo '$#define VER "Version $(Version)"' >> version.h
# them!) # them!)
in puzzles do perl -i -pe 's/Unidentified build/$(Version)/' osx/Info.plist in puzzles do perl -i -pe 's/Unidentified build/$(Version)/' osx/Info.plist
# And in the KaiOS metadata generator.
in puzzles do perl -i -pe 's/Unidentified build/$(Version)/' kaios/manifest.pl
ifneq "$(NOICONS)" yes then ifneq "$(NOICONS)" yes then
# Run enough of a native Unix build to produce the various icons. # Run enough of a native Unix build to produce the various icons.
# This also checks that the build completes in 'strict' mode (with # This also checks that the build completes in 'strict' mode (with
@ -137,6 +140,10 @@ ifneq "$(NOJS)" yes then
return puzzles/build-emscripten/*.wasm return puzzles/build-emscripten/*.wasm
return puzzles/build-emscripten/unfinished/group.js return puzzles/build-emscripten/unfinished/group.js
return puzzles/build-emscripten/unfinished/group.wasm return puzzles/build-emscripten/unfinished/group.wasm
in puzzles do emcmake cmake -B build-kaios -DWASM=NO -DICON_DIR=$$PWD/../build-icons/icons -DCMAKE_BUILD_TYPE=Release .
in puzzles/build-kaios do make -j$(nproc) VERBOSE=1 install
in puzzles/build-kaios/kaios do for p in *; do (cd $$p && zip -rDn .png ../$$p.zip *); done
return puzzles/build-kaios/kaios/*.zip
enddelegate enddelegate
# Build a set of wrapping HTML pages for easy testing of the # Build a set of wrapping HTML pages for easy testing of the
@ -199,6 +206,7 @@ ifneq "$(NOJS)" yes then
deliver puzzles/jstest/*.html jstest/$@ deliver puzzles/jstest/*.html jstest/$@
deliver puzzles/html/*.html html/$@ deliver puzzles/html/*.html html/$@
deliver puzzles/html/*.pl html/$@ deliver puzzles/html/*.pl html/$@
deliver puzzles/build-kaios/kaios/*.zip kaios/$@
endif endif
deliver puzzles/wwwspans.html $@ deliver puzzles/wwwspans.html $@
deliver puzzles/wwwlinks.html $@ deliver puzzles/wwwlinks.html $@