forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
131 lines (120 loc) · 3.55 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
licenses(["notice"]) # Apache 2
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_extensions",
"envoy_windows_extensions",
)
load("//bazel:repositories.bzl", "PPC_SKIP_TARGETS")
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/compressor:compressor_lib",
"//source/common/decompressor:decompressor_lib",
"//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:test_hooks_lib",
] + select({
"//bazel:windows_x86_64": envoy_windows_extensions(),
"//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",
] + envoy_cc_platform_dep("platform_impl_lib"),
)
envoy_cc_library(
name = "envoy_main_common_lib",
srcs = ["main_common.cc"],
hdrs = ["main_common.h"],
deps = [
":envoy_common_lib",
"//source/common/api:os_sys_calls_lib",
"//source/common/common:compiler_requirements_lib",
"//source/common/http/http2:codec_lib",
"//source/common/common:perf_annotation_lib",
"//source/common/stats:fake_symbol_table_lib",
"//source/common/thread:thread_factory_singleton_lib",
"//source/server:hot_restart_lib",
"//source/server:hot_restart_nop_lib",
"//source/server:proto_descriptors_lib",
"//source/server/config_validation:server_lib",
] + select({
"//bazel:disable_signal_trace": [],
"//conditions:default": [
":sigaction_lib",
":terminate_handler_lib",
],
}) + envoy_cc_platform_dep("platform_impl_lib"),
)
envoy_cc_posix_library(
name = "platform_impl_lib",
hdrs = ["posix/platform_impl.h"],
strip_include_prefix = "posix",
deps = [
"//source/common/common:thread_lib",
"//source/common/filesystem:filesystem_lib",
],
)
envoy_cc_win32_library(
name = "platform_impl_lib",
hdrs = ["win32/platform_impl.h"],
strip_include_prefix = "win32",
deps = [
"//source/common/common:assert_lib",
"//source/common/common:thread_lib",
"//source/common/filesystem:filesystem_lib",
],
)
envoy_cc_library(
name = "sigaction_lib",
srcs = ["signal_action.cc"],
hdrs = ["signal_action.h"],
tags = ["backtrace"],
deps = [
"//source/common/common:assert_lib",
"//source/common/common:non_copyable",
"//source/server:backtrace_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",
],
)