mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
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:
8
Buildscr
8
Buildscr
@ -24,6 +24,9 @@ in puzzles do echo '$#define VER "Version $(Version)"' >> version.h
|
||||
# them!)
|
||||
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
|
||||
# Run enough of a native Unix build to produce the various icons.
|
||||
# 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/unfinished/group.js
|
||||
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
|
||||
|
||||
# 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/html/*.html html/$@
|
||||
deliver puzzles/html/*.pl html/$@
|
||||
deliver puzzles/build-kaios/kaios/*.zip kaios/$@
|
||||
endif
|
||||
deliver puzzles/wwwspans.html $@
|
||||
deliver puzzles/wwwlinks.html $@
|
||||
|
Reference in New Issue
Block a user