forked from grpc/grpc-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
44 lines (39 loc) · 796 Bytes
/
BUILD.bazel
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
load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
proto_library(
name = "echo_proto",
srcs = [
"echo.proto",
],
)
# Server
cc_proto_library(
name = "echo_cc_proto",
deps = [
":echo_proto",
],
)
cc_grpc_library(
name = "echo_cc_grpc",
srcs = [
":echo_proto",
],
grpc_only = True,
deps = [
":echo_cc_proto",
],
)
cc_binary(
name = "server",
srcs = [
"echo_server.cc",
"echo_service_impl.cc",
"echo_service_impl.h",
],
deps = [
":echo_cc_grpc",
":echo_cc_proto",
"@com_github_grpc_grpc//:grpc++",
],
)