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 compile module 6package(default_visibility = ["//visibility:public"]) 7 8licenses(["notice"]) 9 10go_binary( 11 name = "compile_bin", 12 srcs = ["compile_bin.go"], 13 deps = [ 14 ":compile", 15 "//src/common/golang:flagfile", 16 ], 17) 18 19go_library( 20 name = "compile", 21 srcs = [ 22 "compile.go", 23 ], 24 importpath = "src/tools/ak/compile/compile", 25 deps = [ 26 "//src/common/golang:ziputils", 27 "//src/tools/ak:types", 28 ], 29) 30 31go_test( 32 name = "compile_test", 33 size = "small", 34 srcs = [ 35 "compile_test.go", 36 ], 37 embed = [":compile"], 38) 39