summaryrefslogtreecommitdiffstats
path: root/dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:44:51 +0000
commit9e3c08db40b8916968b9f30096c7be3f00ce9647 (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh
parentInitial commit. (diff)
downloadthunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.tar.xz
thunderbird-9e3c08db40b8916968b9f30096c7be3f00ce9647.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/canvas/test/webgl-conf/checkout/deqp/run-closure.sh')
-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