aboutsummaryrefslogtreecommitdiff
path: root/src/tools/ak/bucketize/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/ak/bucketize/BUILD')
-rw-r--r--src/tools/ak/bucketize/BUILD58
1 files changed, 58 insertions, 0 deletions
diff --git a/src/tools/ak/bucketize/BUILD b/src/tools/ak/bucketize/BUILD
new file mode 100644
index 0000000..750400a
--- /dev/null
+++ b/src/tools/ak/bucketize/BUILD
@@ -0,0 +1,58 @@
+load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
+
+# Description:
+# Package for bucketize module
+package(default_visibility = ["//visibility:public"])
+
+licenses(["notice"])
+
+go_binary(
+ name = "bucketize_bin",
+ srcs = ["bucketize_bin.go"],
+ deps = [
+ ":bucketize",
+ "//src/common/golang:flagfile",
+ ],
+)
+
+go_library(
+ name = "bucketize",
+ srcs = [
+ "bucketize.go",
+ "partitioner.go",
+ "pipe.go",
+ ],
+ importpath = "src/tools/ak/bucketize/bucketize",
+ deps = [
+ "//src/common/golang:flags",
+ "//src/common/golang:shard",
+ "//src/common/golang:walk",
+ "//src/common/golang:xml2",
+ "//src/tools/ak:akhelper",
+ "//src/tools/ak:types",
+ "//src/tools/ak/res",
+ ],
+)
+
+go_test(
+ name = "bucketize_test",
+ size = "small",
+ srcs = [
+ "bucketize_test.go",
+ "partitioner_test.go",
+ ],
+ embed = [":bucketize"],
+ deps = [
+ "//src/common/golang:shard",
+ "//src/common/golang:walk",
+ "//src/tools/ak/res",
+ ],
+)
+
+go_test(
+ name = "pipe_test",
+ size = "small",
+ srcs = ["pipe_test.go"],
+ embed = [":bucketize"],
+)