This repository has been archived by the owner on Jul 12, 2022. It is now read-only.
forked from envoyproxy/envoy-filter-example
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathBUILD
59 lines (54 loc) · 1.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
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 = [
":extauth_config",
"@envoy//source/exe:envoy_main_lib",
],
)
envoy_cc_library(
name = "extauth_lib",
srcs = ["extauth.cc"],
hdrs = ["extauth.h"],
repository = "@envoy",
deps = [
"@envoy//include/envoy/buffer:buffer_interface",
"@envoy//include/envoy/http:filter_interface",
"@envoy//include/envoy/upstream:cluster_manager_interface",
"@envoy//source/common/common:assert_lib",
"@envoy//source/common/common:logger_lib",
"@envoy//source/common/common:enum_to_int",
"@envoy//source/common/http:message_lib",
"@envoy//source/common/http:utility_lib"
],
)
envoy_cc_library(
name = "extauth_config",
srcs = ["extauth_config.cc"],
hdrs = ["extauth_config.h"],
repository = "@envoy",
deps = [
":extauth_lib",
"@envoy//source/server:configuration_lib",
"@envoy//source/server/config/network:http_connection_manager_lib"
],
)
envoy_cc_test(
name = "extauth_integration_test",
srcs = ["extauth_integration_test.cc"],
data = ["extauth_server.json"],
repository = "@envoy",
deps = [
":extauth_config",
"@envoy//test/mocks/buffer:buffer_mocks",
"@envoy//test/mocks/http:http_mocks",
"@envoy//test/mocks/upstream:upstream_mocks"
],
)