-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
27 lines (25 loc) · 886 Bytes
/
BUILD
File metadata and controls
27 lines (25 loc) · 886 Bytes
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
package(default_visibility = ["//visibility:public"])
cc_library(
name = "frontend",
srcs = ["FrontEnd.cpp"],
hdrs = ["FrontEnd.h"],
deps = [":impl"],
)
cc_library(
name = "impl",
srcs = ["Implementation.cpp"] + select({
"@bazel_tools//src/conditions:windows": ["ImplementationWin.cpp"],
# "@bazel_tools//src/conditions:darwin": ["ImplementationMacOS.cpp"],
"//conditions:default": ["ImplementationLinux.cpp"],
}),
hdrs = ["Implementation.h"] + select({
"@bazel_tools//src/conditions:windows": ["ImplementationWin.h"],
# "@bazel_tools//src/conditions:darwin": ["ImplementationMacOS.h"],
"//conditions:default": ["ImplementationLinux.h"],
}),
data = select({
"@bazel_tools//src/conditions:windows": ["//data:windows_config.txt"],
# "@bazel_tools//src/conditions:darwin": ["//data:MacOS_config.txt"],
"//conditions:default": ["//data:linux_config.txt"],
}),
)