From 7c6514245b6e256cc97dd31a6da1e2c72de487e6 Mon Sep 17 00:00:00 2001 From: Thomas Colthurst Date: Tue, 29 May 2018 18:26:11 -0400 Subject: Introduce Proto C API; based on cl/198113115 by amauryfa --- BUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'BUILD') diff --git a/BUILD b/BUILD index 191ab929..48c5aa7b 100644 --- a/BUILD +++ b/BUILD @@ -689,6 +689,7 @@ cc_binary( linkstatic = 1, deps = [ ":protobuf", + ":proto_api", ] + select({ "//conditions:default": [], ":use_fast_cpp_protos": ["//external:python_headers"], @@ -831,6 +832,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)", -- cgit v1.2.3