forked from envoyproxy/envoy-filter-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
60 lines (54 loc) · 1.41 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
package(default_visibility = ["//visibility:public"])
load(
"@envoy//bazel:envoy_build_system.bzl",
"envoy_cc_binary",
"envoy_cc_library",
"envoy_cc_test",
)
envoy_cc_binary(
name = "envoy",
repository = "@envoy",
deps = [
":echo2_config",
"@envoy//source/exe:envoy_main_entry_lib",
],
)
envoy_cc_library(
name = "echo2_lib",
srcs = ["echo2.cc"],
hdrs = ["echo2.h"],
repository = "@envoy",
deps = [
"@envoy//include/envoy/buffer:buffer_interface",
"@envoy//include/envoy/network:connection_interface",
"@envoy//include/envoy/network:filter_interface",
"@envoy//source/common/common:assert_lib",
"@envoy//source/common/common:logger_lib",
],
)
envoy_cc_library(
name = "echo2_config",
srcs = ["echo2_config.cc"],
repository = "@envoy",
deps = [
":echo2_lib",
"@envoy//include/envoy/network:filter_interface",
"@envoy//include/envoy/registry:registry",
"@envoy//include/envoy/server:filter_config_interface",
],
)
envoy_cc_test(
name = "echo2_integration_test",
srcs = ["echo2_integration_test.cc"],
data = ["echo2_server.yaml"],
repository = "@envoy",
deps = [
":echo2_config",
"@envoy//test/integration:integration_lib"
],
)
sh_test(
name = "envoy_binary_test",
srcs = ["envoy_binary_test.sh"],
data = [":envoy"],
)