aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/systemlibs/grpc.BUILD
diff options
context:
space:
mode:
authorGravatar Jason Zaman <jason@perfinion.com>2018-05-30 17:39:53 +0800
committerGravatar Jason Zaman <jason@perfinion.com>2018-07-13 11:25:39 +0800
commite30f97697141255f52a62d191cb5ff81167fa1cf (patch)
tree77c41e46fbc6abab14e50c3a660304609ab1d4ca /third_party/systemlibs/grpc.BUILD
parent4910a2bb53cda036ea78b3eba90c6f30a1fa67da (diff)
workspace: use TF_SYSTEM_LIBS to link to system libraries
Signed-off-by: Jason Zaman <jason@perfinion.com>
Diffstat (limited to 'third_party/systemlibs/grpc.BUILD')
-rw-r--r--third_party/systemlibs/grpc.BUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/third_party/systemlibs/grpc.BUILD b/third_party/systemlibs/grpc.BUILD
new file mode 100644
index 0000000000..fd90eb0dd3
--- /dev/null
+++ b/third_party/systemlibs/grpc.BUILD
@@ -0,0 +1,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"],
+)