aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Feng Xiao <xfxyjwf@gmail.com>2018-06-03 14:54:53 -0700
committerGravatar GitHub <noreply@github.com>2018-06-03 14:54:53 -0700
commita7252bf42df8f0841cf3a0c85fdbf1a5172adecb (patch)
tree1faaacdc957f50a0b2f0a8819ca47d93f102cae0 /BUILD
parent17ab85deab32b09b751aa28ec9ad548236e7128a (diff)
parent7c6514245b6e256cc97dd31a6da1e2c72de487e6 (diff)
Merge pull request #4698 from ThomasColthurst/proto_c_api
Introduce Proto C API; based on cl/198113115 by amauryfa
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 25bd717f..c4b517cf 100644
--- a/BUILD
+++ b/BUILD
@@ -671,6 +671,7 @@ cc_binary(
linkstatic = 1,
deps = [
":protobuf",
+ ":proto_api",
] + select({
"//conditions:default": [],
":use_fast_cpp_protos": ["//external:python_headers"],
@@ -813,6 +814,15 @@ internal_protobuf_py_tests(
deps = [":python_tests"],
)
+cc_library(
+ name = "proto_api",
+ hdrs = ["python/google/protobuf/proto_api.h"],
+ deps = [
+ ":protobuf_python",
+ "//external:python_headers",
+ ],
+)
+
proto_lang_toolchain(
name = "cc_toolchain",
command_line = "--cpp_out=$(OUT)",