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