forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
125 lines (105 loc) · 2.62 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
licenses(["notice"]) # Apache 2
package(default_visibility = ["//visibility:public"])
exports_files([
"gen_sh_test_runner.sh",
"sh_test_wrapper.sh",
])
genrule(
name = "gnu_build_id",
outs = ["gnu_build_id.ldscript"],
cmd = """
echo --build-id=0x$$(
grep BUILD_SCM_REVISION bazel-out/volatile-status.txt \\
| sed 's/^BUILD_SCM_REVISION //') \\
> $@
""",
# Undocumented attr to depend on workspace status files.
# https://github.com/bazelbuild/bazel/issues/4942
stamp = 1,
)
# For MacOS, which doesn't have GNU ld's `--build-id` flag.
genrule(
name = "raw_build_id",
outs = ["raw_build_id.ldscript"],
cmd = """
grep BUILD_SCM_REVISION bazel-out/volatile-status.txt \\
| sed 's/^BUILD_SCM_REVISION //' \\
> $@
""",
# Undocumented attr to depend on workspace status files.
# https://github.com/bazelbuild/bazel/issues/4942
stamp = 1,
)
config_setting(
name = "windows_x86_64",
values = {"cpu": "x64_windows"},
)
config_setting(
name = "windows_opt_build",
values = {
"cpu": "x64_windows",
"compilation_mode": "opt",
},
)
config_setting(
name = "windows_dbg_build",
values = {
"cpu": "x64_windows",
"compilation_mode": "dbg",
},
)
config_setting(
name = "windows_fastbuild_build",
values = {
"cpu": "x64_windows",
"compilation_mode": "fastbuild",
},
)
config_setting(
name = "opt_build",
values = {"compilation_mode": "opt"},
)
config_setting(
name = "fastbuild_build",
values = {"compilation_mode": "fastbuild"},
)
config_setting(
name = "dbg_build",
values = {"compilation_mode": "dbg"},
)
config_setting(
name = "coverage_build",
values = {"define": "ENVOY_CONFIG_COVERAGE=1"},
)
config_setting(
name = "disable_tcmalloc",
values = {"define": "tcmalloc=disabled"},
)
config_setting(
name = "disable_signal_trace",
values = {"define": "signal_trace=disabled"},
)
config_setting(
name = "disable_hot_restart",
values = {"define": "hot_restart=disabled"},
)
config_setting(
name = "disable_google_grpc",
values = {"define": "google_grpc=disabled"},
)
cc_proto_library(
name = "grpc_health_proto",
deps = ["@com_github_grpc_grpc//src/proto/grpc/health/v1:_health_proto_only"],
)
config_setting(
name = "enable_exported_symbols",
values = {"define": "exported_symbols=enabled"},
)
config_setting(
name = "enable_perf_annotation",
values = {"define": "perf_annotation=enabled"},
)
config_setting(
name = "force_libcpp",
values = {"define": "force_libcpp=enabled"},
)