aboutsummaryrefslogtreecommitdiffstats
path: root/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD
diff options
context:
space:
mode:
authorAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
committerAngelos Mouzakitis <a.mouzakitis@virtualopensystems.com>2023-10-10 14:33:42 +0000
commitaf1a266670d040d2f4083ff309d732d648afba2a (patch)
tree2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD
parente02cda008591317b1625707ff8e115a4841aa889 (diff)
Add submodule dependency filesHEADmaster
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD')
-rw-r--r--roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD b/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD
new file mode 100644
index 000000000..49c17287c
--- /dev/null
+++ b/roms/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/js/BUILD
@@ -0,0 +1,43 @@
+package(
+ default_visibility = ["//visibility:public"],
+)
+
+licenses(["notice"]) # MIT
+
+load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library")
+
+# Not a real polyfill. Do NOT use for anything, but tests.
+closure_js_library(
+ name = "polyfill",
+ srcs = ["polyfill.js"],
+ suppress = [
+ "JSC_INVALID_OPERAND_TYPE",
+ "JSC_MISSING_JSDOC",
+ "JSC_STRICT_INEXISTENT_PROPERTY",
+ "JSC_TYPE_MISMATCH",
+ "JSC_UNKNOWN_EXPR_TYPE",
+ ],
+)
+
+# Do NOT use this artifact; it is for test purposes only.
+closure_js_library(
+ name = "decode",
+ srcs = ["decode.js"],
+ suppress = [
+ "JSC_DUP_VAR_DECLARATION",
+ "JSC_USELESS_BLOCK",
+ ],
+ deps = [":polyfill"],
+)
+
+load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_test")
+
+closure_js_test(
+ name = "all_tests",
+ srcs = ["decode_test.js"],
+ deps = [
+ ":decode",
+ ":polyfill",
+ "@io_bazel_rules_closure//closure/library:testing",
+ ],
+)