github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/tools/parsers/BUILD (about) 1 load("//tools:defs.bzl", "go_binary", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_test( 6 name = "parsers_test", 7 size = "small", 8 srcs = ["go_parser_test.go"], 9 library = ":parsers", 10 nogo = False, 11 deps = [ 12 "//tools/bigquery", 13 "@com_github_google_go_cmp//cmp:go_default_library", 14 ], 15 ) 16 17 go_library( 18 name = "parsers", 19 testonly = 1, 20 srcs = [ 21 "go_parser.go", 22 ], 23 nogo = False, 24 visibility = ["//:sandbox"], 25 deps = [ 26 "//test/benchmarks/tools", 27 "//tools/bigquery", 28 ], 29 ) 30 31 go_binary( 32 name = "parser", 33 testonly = 1, 34 srcs = [ 35 "parser_main.go", 36 "version.go", 37 ], 38 nogo = False, 39 x_defs = {"main.version": "{STABLE_VERSION}"}, 40 deps = [ 41 ":parsers", 42 "//runsc/flag", 43 "//tools/bigquery", 44 ], 45 )