aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD
diff options
context:
space:
mode:
authorGravatar Vishal Powar <vishalpowar@google.com>2018-11-30 14:27:52 -0800
committerGravatar Vishal Powar <vishalpowar@google.com>2018-12-11 14:59:02 -0800
commit62027b7e14624283f758a7785a0a1347eda0a147 (patch)
tree76db8a6a8a5d3a86353a268f5eb3305e1f4c0523 /BUILD
parent9bd5b3778abbb2564544a69d9c99d3c87a3354eb (diff)
Changes add a script for generating C code and build rule for protobuf
protos All these changes need to go together to make sense - changes to use new version of upb in bazel - allowing includes in build target option - script for generating c code for protos - generated code for example build - adding changes for non-bazel builds - change sanity tests to ignore the generated files.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/BUILD b/BUILD
index 9a2c16c601..0d789ae7c0 100644
--- a/BUILD
+++ b/BUILD
@@ -2272,4 +2272,29 @@ grpc_cc_library(
],
)
+# TODO: Get this into build.yaml once we start using it.
+grpc_cc_library(
+ name = "google_protobuf",
+ srcs = [
+ "src/core/ext/upb-generated/google/protobuf/any.upb.c",
+ "src/core/ext/upb-generated/google/protobuf/descriptor.upb.c",
+ "src/core/ext/upb-generated/google/protobuf/duration.upb.c",
+ "src/core/ext/upb-generated/google/protobuf/struct.upb.c",
+ "src/core/ext/upb-generated/google/protobuf/timestamp.upb.c",
+ "src/core/ext/upb-generated/google/protobuf/wrappers.upb.c",
+ ],
+ hdrs = [
+ "src/core/ext/upb-generated/google/protobuf/any.upb.h",
+ "src/core/ext/upb-generated/google/protobuf/descriptor.upb.h",
+ "src/core/ext/upb-generated/google/protobuf/duration.upb.h",
+ "src/core/ext/upb-generated/google/protobuf/struct.upb.h",
+ "src/core/ext/upb-generated/google/protobuf/timestamp.upb.h",
+ "src/core/ext/upb-generated/google/protobuf/wrappers.upb.h",
+ ],
+ language = "c++",
+ external_deps = [
+ "upb_lib",
+ ],
+)
+
grpc_generate_one_off_targets()