Skip to content

Commit b950180

Browse files
authored
build:fix bazel build script (#48)
1 parent 778648f commit b950180

File tree

2 files changed

+3
-44
lines changed

2 files changed

+3
-44
lines changed

BUILD

+2-37
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ cc_library(
6868
"//visibility:public",
6969
],
7070
deps = [
71+
":request_proto",
72+
":response_proto",
7173
":code_cc_proto",
7274
":murmurhash",
7375
":nghttp2",
7476
":ratelimit_proto_v2",
75-
":trpc_proto",
76-
":trpcapi_cc_trpc",
7777
":yaml-cpp-polaris-internal",
7878
"@com_googlesource_code_re2//:re2",
7979
],
@@ -95,30 +95,13 @@ alias(
9595
],
9696
)
9797

98-
cc_proto_library(
99-
name = "trpcapi_cc_trpc",
100-
srcs = [
101-
"polaris/proto/v1/trpcapi.proto",
102-
],
103-
include = "polaris/proto",
104-
use_grpc_plugin = False,
105-
deps = [
106-
":ratelimit_proto",
107-
":request_proto",
108-
":response_proto",
109-
":routing_proto",
110-
":service_proto",
111-
],
112-
)
113-
11498
cc_proto_library(
11599
name = "response_proto",
116100
srcs = ["polaris/proto/v1/response.proto"],
117101
include = "polaris/proto",
118102
deps = [
119103
":circuit_breaker_proto",
120104
":client_proto",
121-
":dynamicweight_proto",
122105
":metric_proto",
123106
":ratelimit_proto",
124107
":routing_proto",
@@ -202,13 +185,6 @@ cc_proto_library(
202185
deps = ["@com_google_protobuf//:cc_wkt_protos"],
203186
)
204187

205-
cc_proto_library(
206-
name = "dynamicweight_proto",
207-
srcs = ["polaris/proto/v1/dynamicweight.proto"],
208-
include = "polaris/proto",
209-
deps = ["@com_google_protobuf//:cc_wkt_protos"],
210-
)
211-
212188
cc_proto_library(
213189
name = "model_proto",
214190
srcs = ["polaris/proto/v1/model.proto"],
@@ -224,16 +200,6 @@ cc_proto_library(
224200
include = "polaris/proto",
225201
)
226202

227-
#trpc协议头
228-
cc_proto_library(
229-
name = "trpc_proto",
230-
srcs = ["polaris/proto/v1/trpc.proto"],
231-
include = "polaris/proto",
232-
deps = [
233-
"@com_google_protobuf//:cc_wkt_protos",
234-
],
235-
)
236-
237203
cc_library(
238204
name = "test",
239205
srcs = glob([
@@ -255,7 +221,6 @@ cc_library(
255221
":murmurhash",
256222
":nghttp2",
257223
":ratelimit_proto_v2",
258-
":trpcapi_cc_trpc",
259224
":yaml-cpp-polaris-internal",
260225
"@com_googlesource_code_re2//:re2",
261226
],

bazel_build.sh

+1-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
11
#!/bin/sh
22

3-
if [[ $1 == "trpc" ]]
4-
then
5-
bazel build polaris_api_trpc --cxxopt="--std=c++17"
6-
exit 0
7-
fi
8-
9-
bazel build polaris_api
3+
bazel build --verbose_failures polaris_api

0 commit comments

Comments
 (0)