aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/systemlibs/grpc.BUILD
blob: fd90eb0dd3d581460267de315c8563d0e5ac4fca (plain)
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
licenses(["notice"])  # Apache v2

filegroup(
    name = "LICENSE",
    visibility = ["//visibility:public"],
)

cc_library(
    name = "grpc",
    linkopts = ["-lgrpc"],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "grpc++",
    linkopts = ["-lgrpc++"],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "grpc_unsecure",
    linkopts = ["-lgrpc_unsecure"],
    visibility = ["//visibility:public"],
)

cc_library(
    name = "grpc++_unsecure",
    linkopts = ["-lgrpc++_unsecure"],
    visibility = ["//visibility:public"],
)

genrule(
    name = "ln_grpc_cpp_plugin",
    outs = ["grpc_cpp_plugin.bin"],
    cmd = "ln -s $$(which grpc_cpp_plugin) $@",
)

sh_binary(
    name = "grpc_cpp_plugin",
    srcs = ["grpc_cpp_plugin.bin"],
    visibility = ["//visibility:public"],
)

genrule(
    name = "ln_grpc_python_plugin",
    outs = ["grpc_python_plugin.bin"],
    cmd = "ln -s $$(which grpc_python_plugin) $@",
)

sh_binary(
    name = "grpc_python_plugin",
    srcs = ["grpc_python_plugin.bin"],
    visibility = ["//visibility:public"],
)