forked from aeraki-mesh/meta-protocol-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
145 lines (134 loc) · 3.59 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
load(
"@envoy//bazel:envoy_build_system.bzl",
"envoy_cc_library",
)
# compile proto
load("@envoy_api//bazel:api_build_system.bzl", "api_proto_package")
api_proto_package(
deps = ["@com_github_cncf_udpa//udpa/annotations:pkg"],
)
envoy_cc_library(
name = "config",
visibility = ["//visibility:public"],
repository = "@envoy",
srcs = ["config.cc"],
hdrs = ["config.h"],
deps = [
":pkg_cc_proto",
":codec_lib",
"@envoy//envoy/registry",
"//src/meta_protocol_proxy/codec:factory_lib",
],
)
envoy_cc_library(
name = "codec_lib",
repository = "@envoy",
srcs = ["dubbo_codec.cc"],
hdrs = ["dubbo_codec.h"],
deps = [
"@envoy//envoy/buffer:buffer_interface",
"@envoy//source/common/common:logger_lib",
"@envoy//source/common/buffer:buffer_lib",
"//src/meta_protocol_proxy/codec:codec_interface",
":protocol_interface",
":dubbo_protocol_impl_lib",
":dubbo_hessian2_serializer_impl_lib",
],
)
envoy_cc_library(
name = "hessian_utils_lib",
repository = "@envoy",
srcs = ["hessian_utils.cc"],
hdrs = ["hessian_utils.h"],
external_deps = [
"hessian2_codec_codec_impl",
"hessian2_codec_object_codec_lib",
],
deps = [
"@envoy//envoy/buffer:buffer_interface",
"@envoy//source/common/singleton:const_singleton",
],
)
envoy_cc_library(
name = "message_lib",
repository = "@envoy",
srcs = [
"message_impl.cc",
],
hdrs = [
"message.h",
"message_impl.h",
],
deps = [
":hessian_utils_lib",
"@envoy//source/common/buffer:buffer_lib",
"@envoy//source/common/http:header_map_lib",
],
)
envoy_cc_library(
name = "metadata_lib",
repository = "@envoy",
hdrs = ["metadata.h"],
external_deps = ["abseil_optional"],
deps = [
":message_lib",
"@envoy//source/common/buffer:buffer_lib",
"@envoy//source/common/http:header_map_lib",
],
)
envoy_cc_library(
name = "serializer_interface",
repository = "@envoy",
hdrs = [
"protocol_constants.h",
"serializer.h",
],
deps = [
":hessian_utils_lib",
":message_lib",
":metadata_lib",
"@envoy//envoy/buffer:buffer_interface",
"@envoy//envoy/config:typed_config_interface",
"@envoy//source/common/common:assert_lib",
"@envoy//source/common/config:utility_lib",
"@envoy//source/common/singleton:const_singleton",
],
)
envoy_cc_library(
name = "protocol_interface",
repository = "@envoy",
hdrs = ["protocol.h"],
deps = [
":message_lib",
":metadata_lib",
":serializer_interface",
"@envoy//envoy/config:typed_config_interface",
"@envoy//source/common/common:assert_lib",
"@envoy//source/common/config:utility_lib",
"@envoy//source/common/singleton:const_singleton",
],
)
envoy_cc_library(
name = "dubbo_protocol_impl_lib",
repository = "@envoy",
srcs = ["dubbo_protocol_impl.cc"],
hdrs = ["dubbo_protocol_impl.h"],
deps = [
":protocol_interface",
"@envoy//envoy/buffer:buffer_interface",
"@envoy//source/common/singleton:const_singleton",
],
)
envoy_cc_library(
name = "dubbo_hessian2_serializer_impl_lib",
repository = "@envoy",
srcs = ["dubbo_hessian2_serializer_impl.cc"],
hdrs = [
"dubbo_hessian2_serializer_impl.h",
],
deps = [
":hessian_utils_lib",
":serializer_interface",
"@envoy//source/common/singleton:const_singleton",
],
)