aboutsummaryrefslogtreecommitdiff
path: root/examples/py_proto_library/example.com/another_proto/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py_proto_library/example.com/another_proto/BUILD.bazel')
-rw-r--r--examples/py_proto_library/example.com/another_proto/BUILD.bazel16
1 files changed, 16 insertions, 0 deletions
diff --git a/examples/py_proto_library/example.com/another_proto/BUILD.bazel b/examples/py_proto_library/example.com/another_proto/BUILD.bazel
new file mode 100644
index 0000000..dd58265
--- /dev/null
+++ b/examples/py_proto_library/example.com/another_proto/BUILD.bazel
@@ -0,0 +1,16 @@
+load("@rules_proto//proto:defs.bzl", "proto_library")
+load("@rules_python//python:proto.bzl", "py_proto_library")
+
+py_proto_library(
+ name = "message_proto_py_pb2",
+ visibility = ["//visibility:public"],
+ deps = [":message_proto"],
+)
+
+proto_library(
+ name = "message_proto",
+ srcs = ["message.proto"],
+ # https://bazel.build/reference/be/protocol-buffer#proto_library.strip_import_prefix
+ strip_import_prefix = "/example.com",
+ deps = ["//example.com/proto:pricetag_proto"],
+)