summaryrefslogtreecommitdiffhomepage
path: root/tools/parsers/BUILD
blob: 6932bba9afd4b24e7b576beb9e3650226164e7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load("//tools:defs.bzl", "go_binary", "go_library", "go_test")

package(licenses = ["notice"])

go_test(
    name = "parsers_test",
    size = "small",
    srcs = ["go_parser_test.go"],
    library = ":parsers",
    nogo = False,
    deps = [
        "//tools/bigquery",
        "@com_github_google_go_cmp//cmp:go_default_library",
    ],
)

go_library(
    name = "parsers",
    testonly = 1,
    srcs = [
        "go_parser.go",
    ],
    nogo = False,
    visibility = ["//:sandbox"],
    deps = [
        "//test/benchmarks/tools",
        "//tools/bigquery",
    ],
)

go_binary(
    name = "parser",
    testonly = 1,
    srcs = [
        "parser_main.go",
        "version.go",
    ],
    nogo = False,
    x_defs = {"main.version": "{STABLE_VERSION}"},
    deps = [
        ":parsers",
        "//runsc/flag",
        "//tools/bigquery",
    ],
)