Skip to content

Commit

Permalink
Simplify JS-Interpreter compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
NeilFraser committed Aug 28, 2023
1 parent a3f3834 commit 38ee178
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Definitions
##############################

REQUIRED_BINS = svn wget java python sed
REQUIRED_BINS = svn wget java python

##############################
# Rules
Expand Down Expand Up @@ -68,16 +68,13 @@ deps:
cp -R third-party/soundfonts appengine/third-party/

svn export --force https://github.com/NeilFraser/JS-Interpreter/trunk/ appengine/third-party/JS-Interpreter
@# Remove @license tag so compiler will strip Google's license.
sed 's/@license//' appengine/third-party/JS-Interpreter/interpreter.js > appengine/third-party/JS-Interpreter/interpreter_.js
@# Compile JS-Interpreter using SIMPLE_OPTIMIZATIONS because the Music game needs to mess with the stack.
java -jar build/third-party-downloads/closure-compiler.jar\
--language_out ECMASCRIPT5\
--language_in ECMASCRIPT5\
--js appengine/third-party/JS-Interpreter/acorn.js\
--js appengine/third-party/JS-Interpreter/interpreter_.js\
--js appengine/third-party/JS-Interpreter/interpreter.js\
--js_output_file appengine/third-party/JS-Interpreter/compressed.js
rm appengine/third-party/JS-Interpreter/interpreter_.js

offline: clean-offline
mkdir offline
Expand Down

0 comments on commit 38ee178

Please sign in to comment.