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 --- go/BUILD | 2 -- go/BUILD.bazel | 2 ++ go/WORKSPACE | 36 ------------------------------------ go/WORKSPACE.bazel | 36 ++++++++++++++++++++++++++++++++++++ go/cbrotli/BUILD | 26 -------------------------- go/cbrotli/BUILD.bazel | 26 ++++++++++++++++++++++++++ 6 files changed, 64 insertions(+), 64 deletions(-) delete mode 100644 go/BUILD create mode 100644 go/BUILD.bazel delete mode 100644 go/WORKSPACE create mode 100644 go/WORKSPACE.bazel delete mode 100644 go/cbrotli/BUILD create mode 100644 go/cbrotli/BUILD.bazel (limited to 'go') diff --git a/go/BUILD b/go/BUILD deleted file mode 100644 index 72a5317..0000000 --- a/go/BUILD +++ /dev/null @@ -1,2 +0,0 @@ -# Description: -# cbrotli is a CGo wrapper for Brotli, a generic-purpose lossless compression algorithm. diff --git a/go/BUILD.bazel b/go/BUILD.bazel new file mode 100644 index 0000000..72a5317 --- /dev/null +++ b/go/BUILD.bazel @@ -0,0 +1,2 @@ +# Description: +# cbrotli is a CGo wrapper for Brotli, a generic-purpose lossless compression algorithm. diff --git a/go/WORKSPACE b/go/WORKSPACE deleted file mode 100644 index 570e250..0000000 --- a/go/WORKSPACE +++ /dev/null @@ -1,36 +0,0 @@ -workspace(name = "org_brotli_go") - -local_repository( - name = "org_brotli", - path = "..", -) - -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") - -http_archive( - name = "io_bazel_rules_go", - sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", - "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", - ], -) - -load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") - -go_rules_dependencies() - -go_register_toolchains(version = "1.17.1") - -http_archive( - name = "bazel_gazelle", - sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", - "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", - ], -) - -load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") - -gazelle_dependencies() diff --git a/go/WORKSPACE.bazel b/go/WORKSPACE.bazel new file mode 100644 index 0000000..570e250 --- /dev/null +++ b/go/WORKSPACE.bazel @@ -0,0 +1,36 @@ +workspace(name = "org_brotli_go") + +local_repository( + name = "org_brotli", + path = "..", +) + +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "io_bazel_rules_go", + sha256 = "2b1641428dff9018f9e85c0384f03ec6c10660d935b750e3fa1492a281a53b0f", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", + "https://github.com/bazelbuild/rules_go/releases/download/v0.29.0/rules_go-v0.29.0.zip", + ], +) + +load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies") + +go_rules_dependencies() + +go_register_toolchains(version = "1.17.1") + +http_archive( + name = "bazel_gazelle", + sha256 = "de69a09dc70417580aabf20a28619bb3ef60d038470c7cf8442fafcf627c21cb", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", + "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.24.0/bazel-gazelle-v0.24.0.tar.gz", + ], +) + +load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") + +gazelle_dependencies() diff --git a/go/cbrotli/BUILD b/go/cbrotli/BUILD deleted file mode 100644 index 78ad36c..0000000 --- a/go/cbrotli/BUILD +++ /dev/null @@ -1,26 +0,0 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") - -package(default_visibility = ["//visibility:public"]) - -licenses(["notice"]) # MIT - -go_library( - name = "cbrotli", - srcs = [ - "reader.go", - "writer.go", - ], - cdeps = [ - "@org_brotli//:brotlidec", - "@org_brotli//:brotlienc", - ], - cgo = True, - importpath = "github.com/google/brotli/go/cbrotli", -) - -go_test( - name = "cbrotli_test", - size = "small", - srcs = ["cbrotli_test.go"], - embed = [":cbrotli"], -) diff --git a/go/cbrotli/BUILD.bazel b/go/cbrotli/BUILD.bazel new file mode 100644 index 0000000..78ad36c --- /dev/null +++ b/go/cbrotli/BUILD.bazel @@ -0,0 +1,26 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +package(default_visibility = ["//visibility:public"]) + +licenses(["notice"]) # MIT + +go_library( + name = "cbrotli", + srcs = [ + "reader.go", + "writer.go", + ], + cdeps = [ + "@org_brotli//:brotlidec", + "@org_brotli//:brotlienc", + ], + cgo = True, + importpath = "github.com/google/brotli/go/cbrotli", +) + +go_test( + name = "cbrotli_test", + size = "small", + srcs = ["cbrotli_test.go"], + embed = [":cbrotli"], +) -- cgit v1.1