aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/cgo_sys_hdr/BUILD.bazel
blob: 49daeee44dcd0d8f651bcbcfb31f059df53a2c54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = [
        "foo.go",
        "sub/foo.h",
    ],
    cgo = True,
    importpath = "github.com/bazelbuild/rules_go/tests/cgo_sys_hdr",
)

go_test(
    name = "go_default_test",
    size = "small",
    srcs = ["foo_test.go"],
    embed = [":go_default_library"],
)