aboutsummaryrefslogtreecommitdiff
path: root/Buildscr
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-12-11 14:10:16 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-01-19 20:34:48 +0000
commiteb60f001b7053022539c2737b5c2106c8798bde5 (patch)
treef4a677c1e99b302900baa59e28db1a9cec3b70f7 /Buildscr
parentcc2e94ab2bbbcfcbb2eee58c5878917fadb721ab (diff)
downloadpuzzles-eb60f001b7053022539c2737b5c2106c8798bde5.zip
puzzles-eb60f001b7053022539c2737b5c2106c8798bde5.tar.gz
puzzles-eb60f001b7053022539c2737b5c2106c8798bde5.tar.bz2
puzzles-eb60f001b7053022539c2737b5c2106c8798bde5.tar.xz
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.
Diffstat (limited to 'Buildscr')
-rw-r--r--Buildscr8
1 files changed, 8 insertions, 0 deletions
diff --git a/Buildscr b/Buildscr
index ae69e2e..c28e003 100644
--- a/Buildscr
+++ b/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 $@