-
Notifications
You must be signed in to change notification settings - Fork 3
/
BUILD
52 lines (47 loc) · 1.57 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
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 = [
":amqp_bridge_lib",
"@envoy//source/exe:envoy_main_entry_lib",
],
)
envoy_cc_library(
name = "amqp_bridge_lib",
srcs = ["amqp_bridge.cc"],
repository = "@envoy",
# external_deps = ["http_parser"],
deps = [
"//api/v2:amqp_bridge_cc",
"@envoy//include/envoy/buffer:buffer_interface",
"@envoy//include/envoy/network:connection_interface",
"@envoy//include/envoy/network:filter_interface",
"@envoy//include/envoy/registry:registry",
"@envoy//include/envoy/server:filter_config_interface",
"@envoy//source/common/common:assert_lib",
"@envoy//source/common/common:logger_lib",
"@envoy//source/common/http/http1:codec_lib",
"@envoy//source/common/http/http2:codec_lib",
"@envoy//source/common/http:conn_manager_lib",
"@envoy//source/common/http:utility_lib",
"@envoy//source/extensions/filters/network/common:factory_base_lib",
"@proton//:cpp_interface",
"@proton//:cpp_lib",
"@system_libs//:sasl2",
],
)
sh_test(
# Test the amqp_server downstream filter
name = "integration_tests",
srcs = ["run_test.sh"],
args = ["test_client.rb", "test_server.rb"],
data = [":envoy", "@proton//:ruby", "test_server.rb", "test_client.rb", "amqp_bridge.yaml"],
size = "small"
)