Permalink
Browse files

Add owg-optimized.js target

  • Loading branch information...
1 parent 1840ede commit 8234a0f15e5c80cfed1cbd42ce871ceddd1f910d @twpayne twpayne committed Apr 27, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +8 −1 scripts/Makefile
View
@@ -0,0 +1 @@
+/compiled/owg-optimized.js
View
@@ -1,14 +1,21 @@
CLOSURE_LIBRARY=../external/closure-library
COMPILER_JAR=../external/closure/compiler.jar
SOURCES=$(shell find ../source/core ../source/core/layer ../source/core/nodes -maxdepth 1 -name \*.js)
-TARGETS=../compiled/owg.js
+TARGETS=../compiled/owg.js ../compiled/owg-optimized.js
.PHONY: all
all: $(TARGETS)
../compiled/owg.js: $(SOURCES) Makefile $(COMPILER_JAR)
java -jar $(COMPILER_JAR) --js_output_file=$@ $(foreach s,$(SOURCES),--js=$(s))
+../compiled/owg-optimized.js: $(SOURCES) Makefile $(COMPILER_JAR)
+ java -jar $(COMPILER_JAR) \
+ --js_output_file=$@ \
+ --compilation_level=ADVANCED_OPTIMIZATIONS \
+ --warning_level=VERBOSE \
+ $(foreach s,$(SOURCES),--js=$(s))
+
.PHONY: clean
clean:
rm $(TARGETS)

0 comments on commit 8234a0f

Please sign in to comment.