summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xdom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh b/dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh
new file mode 100755
index 0000000000..7dcc44c12c
--- /dev/null
+++ b/dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# Helper script for properly invoking the closure compiler in order to
+# type check the ported dEQP tests.
+#
+# Assumes the Closure compiler:
+# https://github.com/google/closure-compiler
+# is installed side-by-side with the WebGL repository, for example:
+#
+# WebGL/
+# doc/
+# extensions/
+# sdk/
+# ...
+# closure/
+# compiler.jar
+#
+# The externs.zip file inside the closure compiler needs to be modified
+# to support WebGL2.
+# and that the shell is cd'd into the directory containing this
+# script.
+#
+
+: ${JAVA:=java}
+
+$JAVA -jar ../../../../closure/compiler.jar --compilation_level ADVANCED_OPTIMIZATIONS --warning_level VERBOSE --externs compiler_additional_extern.js --js functional/**.js framework/**.js modules/**.js --js_output_file /dev/null --js ../closure-library/closure/**.js