From 70e7b1ae4a3f3cd0009cbcc81e66330780c16653 Mon Sep 17 00:00:00 2001 From: Evgenii Kliuchnikov Date: Thu, 6 Jul 2023 11:56:38 +0000 Subject: simplify building of fuzzer PiperOrigin-RevId: 545950923 --- js/BUILD | 84 ------------------------------------------------------ js/BUILD.bazel | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ js/WORKSPACE | 17 ----------- js/WORKSPACE.bazel | 17 +++++++++++ 4 files changed, 101 insertions(+), 101 deletions(-) delete mode 100644 js/BUILD create mode 100644 js/BUILD.bazel delete mode 100644 js/WORKSPACE create mode 100644 js/WORKSPACE.bazel (limited to 'js') diff --git a/js/BUILD b/js/BUILD deleted file mode 100644 index d74e42c..0000000 --- a/js/BUILD +++ /dev/null @@ -1,84 +0,0 @@ -load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library", "closure_js_test") - -package( - default_visibility = ["//visibility:public"], -) - -licenses(["notice"]) # MIT - -# 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", - ], -) - -closure_js_library( - name = "jasmine-polyfill", - srcs = ["jasmine-polyfill.js"], - suppress = [ - "JSC_MISSING_JSDOC", - "JSC_UNKNOWN_EXPR_TYPE", - "JSC_MISSING_PROVIDE", - ], - deps = ["@io_bazel_rules_closure//closure/library:testing"], - testonly = True, -) - -# Do NOT use this artifact; it is for test purposes only. -closure_js_library( - name = "decode", - srcs = ["decode.js"], - suppress = ["JSC_USELESS_BLOCK"], - deps = [":polyfill"], -) - -closure_js_test( - name = "decode_test", - srcs = ["decode_test.js"], - entry_points = ["decode_test.js"], - suppress = ["moduleLoad"], - deps = [ - ":decode", - ":jasmine-polyfill", - ":polyfill", - ], -) - -closure_js_test( - name = "decode_synth_test", - srcs = ["decode_synth_test.js"], - entry_points = ["decode_synth_test.js"], - suppress = ["moduleLoad"], - deps = [ - ":decode", - ":jasmine-polyfill", - ":polyfill", - ], -) - -closure_js_library( - name = "test_data_js", - testonly = True, - srcs = ["test_data.js"], - suppress = ["lintChecks"], -) - -closure_js_test( - name = "bundle_test", - srcs = ["bundle_test.js"], - entry_points = ["bundle_test.js"], - suppress = ["moduleLoad"], - deps = [ - ":decode", - ":jasmine-polyfill", - ":polyfill", - ":test_data_js", - ], -) diff --git a/js/BUILD.bazel b/js/BUILD.bazel new file mode 100644 index 0000000..d74e42c --- /dev/null +++ b/js/BUILD.bazel @@ -0,0 +1,84 @@ +load("@io_bazel_rules_closure//closure:defs.bzl", "closure_js_library", "closure_js_test") + +package( + default_visibility = ["//visibility:public"], +) + +licenses(["notice"]) # MIT + +# 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", + ], +) + +closure_js_library( + name = "jasmine-polyfill", + srcs = ["jasmine-polyfill.js"], + suppress = [ + "JSC_MISSING_JSDOC", + "JSC_UNKNOWN_EXPR_TYPE", + "JSC_MISSING_PROVIDE", + ], + deps = ["@io_bazel_rules_closure//closure/library:testing"], + testonly = True, +) + +# Do NOT use this artifact; it is for test purposes only. +closure_js_library( + name = "decode", + srcs = ["decode.js"], + suppress = ["JSC_USELESS_BLOCK"], + deps = [":polyfill"], +) + +closure_js_test( + name = "decode_test", + srcs = ["decode_test.js"], + entry_points = ["decode_test.js"], + suppress = ["moduleLoad"], + deps = [ + ":decode", + ":jasmine-polyfill", + ":polyfill", + ], +) + +closure_js_test( + name = "decode_synth_test", + srcs = ["decode_synth_test.js"], + entry_points = ["decode_synth_test.js"], + suppress = ["moduleLoad"], + deps = [ + ":decode", + ":jasmine-polyfill", + ":polyfill", + ], +) + +closure_js_library( + name = "test_data_js", + testonly = True, + srcs = ["test_data.js"], + suppress = ["lintChecks"], +) + +closure_js_test( + name = "bundle_test", + srcs = ["bundle_test.js"], + entry_points = ["bundle_test.js"], + suppress = ["moduleLoad"], + deps = [ + ":decode", + ":jasmine-polyfill", + ":polyfill", + ":test_data_js", + ], +) diff --git a/js/WORKSPACE b/js/WORKSPACE deleted file mode 100644 index 8e3b2af..0000000 --- a/js/WORKSPACE +++ /dev/null @@ -1,17 +0,0 @@ -workspace(name = "org_brotli_js") - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "io_bazel_rules_closure", - sha256 = "d66deed38a0bb20581c15664f0ab62270af5940786855c7adc3087b27168b529", - strip_prefix = "rules_closure-0.11.0", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz", - "https://github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz", - ], -) - -load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains") -rules_closure_dependencies() -rules_closure_toolchains() diff --git a/js/WORKSPACE.bazel b/js/WORKSPACE.bazel new file mode 100644 index 0000000..8e3b2af --- /dev/null +++ b/js/WORKSPACE.bazel @@ -0,0 +1,17 @@ +workspace(name = "org_brotli_js") + +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "io_bazel_rules_closure", + sha256 = "d66deed38a0bb20581c15664f0ab62270af5940786855c7adc3087b27168b529", + strip_prefix = "rules_closure-0.11.0", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz", + "https://github.com/bazelbuild/rules_closure/archive/0.11.0.tar.gz", + ], +) + +load("@io_bazel_rules_closure//closure:repositories.bzl", "rules_closure_dependencies", "rules_closure_toolchains") +rules_closure_dependencies() +rules_closure_toolchains() -- cgit v1.1