aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/cpp/runfiles/BUILD
blob: 4a79245c045efeb7fa0e20ec95c32d5cf92b75c5 (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
package(default_visibility = ["//visibility:private"])

filegroup(
    name = "srcs",
    srcs = glob(
        ["**"],
        exclude = [
            ".*",
            "*~",
        ],
    ),
    visibility = ["//tools:__pkg__"],
)

filegroup(
    name = "embedded_tools",
    srcs = [
        "BUILD.tools",
        "runfiles.cc",
        "runfiles.h",
    ],
    visibility = ["//tools:__pkg__"],
)

cc_library(
    name = "runfiles",
    testonly = 1,
    srcs = ["runfiles.cc"],
    hdrs = ["runfiles.h"],
)

cc_test(
    name = "runfiles_test",
    srcs = ["runfiles_test.cc"],
    visibility = ["//visibility:public"],
    deps = [
        ":runfiles",
        "//src/main/cpp/util:filesystem",
        "@com_google_googletest//:gtest_main",
    ],
)