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