forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
102 lines (93 loc) · 2.56 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
licenses(["notice"]) # Apache 2
load(
"//bazel:envoy_build_system.bzl",
"envoy_cc_binary",
"envoy_cc_library",
"envoy_package",
)
load(
"//source/extensions:all_extensions.bzl",
"envoy_all_extensions",
"envoy_windows_extensions",
)
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(),
"//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_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/common:perf_annotation_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_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",
],
)