-
Notifications
You must be signed in to change notification settings - Fork 4.8k
/
BUILD
108 lines (98 loc) · 2.58 KB
/
BUILD
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
licenses(["notice"]) # Apache 2
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_library",
"envoy_cc_platform_dep",
"envoy_cc_posix_library",
"envoy_cc_win32_library",
"envoy_package",
)
envoy_package()
envoy_cc_library(
name = "directory_lib",
hdrs = ["directory.h"],
deps = envoy_cc_platform_dep("directory_iterator_impl_lib"),
)
envoy_cc_win32_library(
name = "directory_iterator_impl_lib",
srcs = ["win32/directory_iterator_impl.cc"],
hdrs = ["win32/directory_iterator_impl.h"],
strip_include_prefix = "win32",
deps = [
"//include/envoy/filesystem:filesystem_interface",
],
)
envoy_cc_posix_library(
name = "directory_iterator_impl_lib",
srcs = ["posix/directory_iterator_impl.cc"],
hdrs = ["posix/directory_iterator_impl.h"],
strip_include_prefix = "posix",
deps = [
"//include/envoy/filesystem:filesystem_interface",
"//source/common/api:os_sys_calls_lib",
],
)
envoy_cc_library(
name = "filesystem_lib",
deps = envoy_cc_platform_dep("filesystem_impl_lib"),
)
envoy_cc_posix_library(
name = "filesystem_impl_lib",
srcs = ["posix/filesystem_impl.cc"],
hdrs = ["posix/filesystem_impl.h"],
strip_include_prefix = "posix",
deps = [
":file_shared_lib",
],
)
envoy_cc_win32_library(
name = "filesystem_impl_lib",
srcs = ["win32/filesystem_impl.cc"],
hdrs = ["win32/filesystem_impl.h"],
strip_include_prefix = "win32",
deps = [
":file_shared_lib",
],
)
envoy_cc_library(
name = "file_shared_lib",
srcs = ["file_shared_impl.cc"],
hdrs = ["file_shared_impl.h"],
deps = [
"//include/envoy/filesystem:filesystem_interface",
"//source/common/common:assert_lib",
],
)
envoy_cc_library(
name = "watcher_lib",
srcs = select({
"//bazel:apple": [
"kqueue/watcher_impl.cc",
],
"//conditions:default": [
"inotify/watcher_impl.cc",
],
}),
hdrs = select({
"//bazel:apple": [
"kqueue/watcher_impl.h",
],
"//conditions:default": [
"inotify/watcher_impl.h",
],
}),
external_deps = [
"event",
],
strip_include_prefix = select({
"//bazel:apple": "kqueue",
"//conditions:default": "inotify",
}),
deps = [
"//include/envoy/event:dispatcher_interface",
"//source/common/common:assert_lib",
"//source/common/common:linked_object",
"//source/common/common:minimal_logger_lib",
"//source/common/common:utility_lib",
],
)