Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add compiled/deps.js for uncompiled mode

  • Loading branch information...
commit f4b033d81bd7f6eea6a94c3125504441315e15be 1 parent 3052749
@twpayne twpayne authored
Showing with 8 additions and 1 deletion.
  1. +1 −0  .gitignore
  2. +7 −1 scripts/Makefile
View
1  .gitignore
@@ -1 +1,2 @@
+/compiled/deps.js
/compiled/owg-optimized.js
View
8 scripts/Makefile
@@ -1,11 +1,17 @@
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 ../compiled/owg-optimized.js
+TARGETS=../compiled/deps.js ../compiled/owg.js ../compiled/owg-optimized.js
.PHONY: all
all: $(TARGETS)
+../compiled/deps.js: $(SOURCES) Makefile $(COMPILER_JAR) $(CLOSURE_LIBRARY)
+ $(CLOSURE_LIBRARY)/closure/bin/build/depswriter.py \
+ --root_with_prefix="$(CLOSURE_LIBRARY)/closure/ ../" \
+ --root_with_prefix="../source/ ../../../../source/" \
+ --output_file=$@
+
../compiled/owg.js: $(SOURCES) Makefile $(COMPILER_JAR)
java -jar $(COMPILER_JAR) --js_output_file=$@ $(foreach s,$(SOURCES),--js=$(s))
Please sign in to comment.
Something went wrong with that request. Please try again.