-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathBUILD
More file actions
71 lines (67 loc) · 1.32 KB
/
BUILD
File metadata and controls
71 lines (67 loc) · 1.32 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package(default_visibility = ["//visibility:public"])
cc_library(
name = "die-tk-base",
srcs = glob([
"die-tk/*.cpp",
"die-tk/components/*.cpp",
"die-tk/controls/*.cpp",
"die-tk/custom/*.cpp",
"die-tk/objects/*.cpp",
"die-tk/portable/*.cpp",
"die-tk/util/*.cpp",
]),
hdrs = glob([
"die-tk.h",
"die-tk/*.h",
"die-tk/components/*.h",
"die-tk/controls/*.h",
"die-tk/custom/*.h",
"die-tk/objects/*.h",
"die-tk/portable/*.hpp",
"die-tk/util/*.h",
"die-tk/util/*.hpp",
]),
)
cc_library(
name = "die-tk-win32",
srcs = glob([
"die-tk/win32/*.cpp",
"die-tk/win32/components/*.cpp",
"die-tk/win32/controls/*.cpp",
]),
hdrs = glob([
"die-tk/win32/*.h",
"die-tk/win32/components/*.h",
"die-tk/win32/controls/*.h",
]),
deps = [
":die-tk-base",
"@win32_libs//:win32",
],
)
cc_library(
name = "die-tk-linux",
srcs = glob([
"die-tk/linux/*.cpp",
"die-tk/linux/components/*.cpp",
"die-tk/linux/controls/*.cpp",
"die-tk/linux/utf8/*.cpp",
]),
hdrs = glob([
"die-tk/linux/*.h",
"die-tk/linux/components/*.h",
"die-tk/linux/controls/*.h",
"die-tk/linux/utf8/*.h",
]),
deps = [
":die-tk-base",
"@linux_libs//:x11",
],
)
cc_library(
name = "die-tk",
deps = select({
"@bazel_tools//src/conditions:windows": [":die-tk-win32"],
"//conditions:default": [":die-tk-linux"],
}),
)