forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
187 lines (171 loc) · 5.17 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_binary",
"envoy_cc_library",
"envoy_cc_platform_dep",
"envoy_cc_posix_library",
"envoy_cc_win32_library",
"envoy_package",
)
load("//source/extensions:all_extensions.bzl", "envoy_all_core_extensions", "envoy_all_extensions")
load("//bazel:repositories.bzl", "PPC_SKIP_TARGETS", "WINDOWS_SKIP_TARGETS")
licenses(["notice"]) # Apache 2
envoy_package()
alias(
name = "envoy",
actual = ":envoy-static",
)
envoy_cc_binary(
name = "envoy-static",
stamped = True,
deps = [":envoy_main_entry_lib"],
)
envoy_cc_library(
name = "envoy_common_lib",
deps = [
"//source/common/event:libevent_lib",
"//source/common/network:utility_lib",
"//source/common/stats:stats_lib",
"//source/common/stats:thread_local_store_lib",
"//source/server:drain_manager_lib",
"//source/server:options_lib",
"//source/server:server_lib",
"//source/server:listener_hooks_lib",
] + select({
"//bazel:windows_x86_64": envoy_all_extensions(WINDOWS_SKIP_TARGETS),
"//bazel:linux_ppc": envoy_all_extensions(PPC_SKIP_TARGETS),
"//conditions:default": envoy_all_extensions(),
}),
)
envoy_cc_library(
name = "envoy_main_entry_lib",
srcs = ["main.cc"],
external_deps = [
"abseil_symbolize",
],
deps = [
":envoy_main_common_lib",
":platform_impl_lib",
],
)
envoy_cc_library(
name = "main_common_lib",
srcs = ["main_common.cc"],
hdrs = ["main_common.h"],
deps = [
":envoy_common_lib",
":platform_impl_lib",
":process_wide_lib",
"//source/common/api:os_sys_calls_lib",
"//source/common/common:compiler_requirements_lib",
"//source/common/common:perf_annotation_lib",
"//source/common/grpc:google_grpc_context_lib",
"//source/server:hot_restart_lib",
"//source/server:hot_restart_nop_lib",
"//source/server/config_validation:server_lib",
] + select({
"//bazel:disable_signal_trace": [],
"//conditions:default": [
"//source/common/signal:sigaction_lib",
":terminate_handler_lib",
],
}),
)
envoy_cc_library(
name = "envoy_main_common_lib",
deps = [
":main_common_lib",
"//source/common/version:version_linkstamp",
],
)
envoy_cc_library(
name = "envoy_common_with_core_extensions_lib",
deps = [
"//source/common/event:libevent_lib",
"//source/common/network:utility_lib",
"//source/common/stats:stats_lib",
"//source/common/stats:thread_local_store_lib",
"//source/server:drain_manager_lib",
"//source/server:options_lib",
"//source/server:server_lib",
"//source/server:listener_hooks_lib",
] + envoy_all_core_extensions(),
)
envoy_cc_library(
name = "envoy_main_common_with_core_extensions_lib",
srcs = ["main_common.cc"],
hdrs = ["main_common.h"],
deps = [
":envoy_common_with_core_extensions_lib",
":platform_impl_lib",
":process_wide_lib",
"//source/common/api:os_sys_calls_lib",
"//source/common/common:compiler_requirements_lib",
"//source/common/common:perf_annotation_lib",
"//source/common/grpc:google_grpc_context_lib",
"//source/server:hot_restart_lib",
"//source/server:hot_restart_nop_lib",
"//source/server/config_validation:server_lib",
] + select({
"//bazel:disable_signal_trace": [],
"//conditions:default": [
"//source/common/signal:sigaction_lib",
":terminate_handler_lib",
],
}),
)
envoy_cc_library(
name = "process_wide_lib",
srcs = ["process_wide.cc"],
hdrs = ["process_wide.h"],
external_deps = ["ares"],
deps = [
"//source/common/common:assert_lib",
"//source/common/event:libevent_lib",
"//source/common/http/http2:nghttp2_lib",
"//source/server:proto_descriptors_lib",
],
)
envoy_cc_library(
name = "platform_impl_lib",
deps = [":platform_header_lib"] +
envoy_cc_platform_dep("platform_impl_lib"),
)
envoy_cc_library(
name = "platform_header_lib",
hdrs = ["platform_impl.h"],
deps = [
"//include/envoy/filesystem:filesystem_interface",
"//include/envoy/thread:thread_interface",
],
)
envoy_cc_posix_library(
name = "platform_impl_lib",
srcs = ["posix/platform_impl.cc"],
deps = [
":platform_header_lib",
"//source/common/common:thread_lib",
"//source/common/filesystem:filesystem_lib",
],
)
envoy_cc_win32_library(
name = "platform_impl_lib",
srcs = ["win32/platform_impl.cc"],
deps = [
":platform_header_lib",
"//source/common/common:assert_lib",
"//source/common/common:thread_lib",
"//source/common/filesystem:filesystem_lib",
],
)
envoy_cc_library(
name = "terminate_handler_lib",
srcs = ["terminate_handler.cc"],
hdrs = ["terminate_handler.h"],
tags = ["backtrace"],
deps = [
"//source/common/common:minimal_logger_lib",
"//source/common/common:non_copyable",
"//source/server:backtrace_lib",
],
)