aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/transitive_data/BUILD.bazel
blob: e678f4eb7ea85ed3c675d6846b1f7184667c7994 (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
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_test(
    name = "go_default_test",
    size = "small",
    srcs = ["transitive_data_test.go"],
    args = [
        "go_data.txt",
        "cgo_data.txt",
        "c_data.txt",
    ],
    deps = [":go_lib"],
)

go_library(
    name = "go_lib",
    srcs = [
        "empty.go",
        "empty_cgo.go",
    ],
    cdeps = [":c_lib"],
    cgo = True,
    data = [
        "cgo_data.txt",
        "go_data.txt",
    ],
    importpath = "github.com/bazelbuild/rules_go/tests/transitive_data",
)

cc_library(
    name = "c_lib",
    srcs = [],
    data = ["c_data.txt"],
)