summaryrefslogtreecommitdiff
path: root/examples/bazel/BUILD
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-05-15 17:33:06 -0700
committerJoshua Haberman <jhaberman@gmail.com>2019-05-15 17:33:06 -0700
commit240bf641de10a056a048b9b7fa0de811a39bb707 (patch)
tree9f39652626744ab3eafd1bfe0820692da9fcdb48 /examples/bazel/BUILD
parent77600acc84be092dac7c58772e8ee01185c7405d (diff)
Working example dir for Bazel.
Diffstat (limited to 'examples/bazel/BUILD')
-rw-r--r--examples/bazel/BUILD18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/bazel/BUILD b/examples/bazel/BUILD
new file mode 100644
index 0000000..2e94d46
--- /dev/null
+++ b/examples/bazel/BUILD
@@ -0,0 +1,18 @@
+
+load("@upb//:upb_proto_library.bzl", "upb_proto_library")
+
+proto_library(
+ name = "foo_proto",
+ srcs = ["foo.proto"],
+)
+
+upb_proto_library(
+ name = "foo_upbproto",
+ deps = [":foo_proto"],
+)
+
+cc_binary(
+ name = "test_binary",
+ srcs = ["test_binary.c"],
+ deps = [":foo_upbproto"],
+)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback