aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/native/windows/BUILD
blob: c7dead2469b8f9c11701af32e44b8852c9426613 (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
package(default_visibility = ["//visibility:private"])

filegroup(
    name = "srcs",
    srcs = glob(["**"]),
    visibility = ["//src/main/native:__pkg__"],
)

# TODO(xingao): verify that this filegroup contains exactly what it has to wrt.
# where it is used (//src/main/native:embedded_tools).
# Context: https://github.com/bazelbuild/bazel/commit/33d05f6b551cf2fdb257cb536a5e864d095144a1
filegroup(
    name = "embedded_tools",
    srcs = [":srcs"],
    visibility = ["//src/main/native:__pkg__"],
)

filegroup(
    name = "raw-sources",
    srcs = glob([
        "*.cc",
        "*.h",
    ]),
    visibility = ["//src/main/native:__pkg__"],
)

cc_library(
    name = "lib-file",
    srcs = ["file.cc"],
    hdrs = ["file.h"],
    visibility = [
        "//src/main/cpp:__subpackages__",
        "//src/test/cpp:__subpackages__",
        "//src/test/native:__subpackages__",
    ],
    deps = [":lib-util"],
)

cc_library(
    name = "lib-util",
    srcs = ["util.cc"],
    hdrs = ["util.h"],
)