aboutsummaryrefslogtreecommitdiff
path: root/Buildscr
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2013-03-30 20:16:21 +0000
committerSimon Tatham <anakin@pobox.com>2013-03-30 20:16:21 +0000
commit49fba922eac8c4022b002e340080be9a7134132e (patch)
tree57b6947202a0235c3d3053a31fff36d9f8a69d2f /Buildscr
parente2c84a5fd2b1ca6d3d8be0279466079b35b6c189 (diff)
downloadpuzzles-49fba922eac8c4022b002e340080be9a7134132e.zip
puzzles-49fba922eac8c4022b002e340080be9a7134132e.tar.gz
puzzles-49fba922eac8c4022b002e340080be9a7134132e.tar.bz2
puzzles-49fba922eac8c4022b002e340080be9a7134132e.tar.xz
New front end! To complement the webification of my puzzles via Java
applets, here's an alternative webification in Javascript, using Emscripten in asm.js mode (so that as browsers incorporate asm.js optimisation, the game generation should run really fast). [originally from svn r9781]
Diffstat (limited to 'Buildscr')
-rw-r--r--Buildscr11
1 files changed, 11 insertions, 0 deletions
diff --git a/Buildscr b/Buildscr
index 6d2237d..6925ce3 100644
--- a/Buildscr
+++ b/Buildscr
@@ -112,6 +112,16 @@ ifneq "$(JAVA_UNFINISHED)" "" in puzzles do perl mkfiles.pl
# compiler and tools.
in puzzles do make -f Makefile.nestedvm NESTEDVM=$(NESTEDVM) VER=-DREVISION=$(revision)
+# Build the Javascript applets. Since my master build machine doesn't
+# have the right dependencies installed for Emscripten, I do this by a
+# delegation.
+in puzzles do mkdir js # so we can tell output .js files from emcc*.js
+delegate emscripten
+ in puzzles do make -f Makefile.emcc OUTPREFIX=js/ clean
+ in puzzles do make -f Makefile.emcc OUTPREFIX=js/
+ return puzzles/js/*.js
+enddelegate
+
# Set up .htaccess containing a redirect for the archive filename.
in puzzles do echo "AddType application/octet-stream .chm" > .htaccess
in puzzles do echo "AddType application/octet-stream .hlp" >> .htaccess
@@ -132,6 +142,7 @@ deliver puzzles/puzzles.cnt $@
deliver puzzles/puzzles.zip $@
deliver puzzles/Output/setup.exe puzzles-r$(revision)-installer.exe
deliver puzzles/*.jar java/$@
+deliver puzzles/js/*.js js/$@
deliver puzzles/html/*.html html/$@
deliver puzzles/html/*.pl html/$@