1load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") 2load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test") 3 4# Description: 5# Package for bucketize module 6package( 7 default_applicable_licenses = ["//:license"], 8 default_visibility = ["//visibility:public"], 9) 10 11licenses(["notice"]) 12 13go_binary( 14 name = "bucketize_bin", 15 srcs = ["bucketize_bin.go"], 16 deps = [ 17 ":bucketize", 18 "//src/common/golang:flagfile", 19 ], 20) 21 22go_library( 23 name = "bucketize", 24 srcs = [ 25 "bucketize.go", 26 "partitioner.go", 27 "pipe.go", 28 ], 29 importpath = "src/tools/ak/bucketize/bucketize", 30 deps = [ 31 "//src/common/golang:flags", 32 "//src/common/golang:shard", 33 "//src/common/golang:walk", 34 "//src/common/golang:xml2", 35 "//src/tools/ak:akhelper", 36 "//src/tools/ak:types", 37 "//src/tools/ak/res", 38 ], 39) 40 41go_test( 42 name = "bucketize_test", 43 size = "small", 44 srcs = [ 45 "bucketize_test.go", 46 "partitioner_test.go", 47 ], 48 embed = [":bucketize"], 49 deps = [ 50 "//src/common/golang:shard", 51 "//src/common/golang:walk", 52 "//src/tools/ak/res", 53 ], 54) 55 56go_test( 57 name = "pipe_test", 58 size = "small", 59 srcs = ["pipe_test.go"], 60 embed = [":bucketize"], 61) 62