aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/protobuf/BUILD
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2016-03-16 13:17:57 +0000
committerGravatar Lukacs Berki <lberki@google.com>2016-03-17 10:03:45 +0000
commitb78bbd5dd53ecaeb8a736b69ecd3f014232da1d4 (patch)
tree0f13b04b4b05d90c2aab1a881ec73c631fca6b20 /src/main/protobuf/BUILD
parentc4d448fb1841dc007c8053c9940a195634425fb1 (diff)
Add Python protobuf to Bazel third_party and move all protobuf targets into
//third_party/protobuf. -- MOS_MIGRATED_REVID=117336377
Diffstat (limited to 'src/main/protobuf/BUILD')
-rw-r--r--src/main/protobuf/BUILD8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/protobuf/BUILD b/src/main/protobuf/BUILD
index 5d275f3320..979d7543fe 100644
--- a/src/main/protobuf/BUILD
+++ b/src/main/protobuf/BUILD
@@ -1,6 +1,7 @@
package(default_visibility = ["//visibility:public"])
load("//tools/build_rules:genproto.bzl", "java_proto_library")
+load("@bazel_tools//third_party/protobuf:protobuf.bzl", "py_proto_library")
FILES = [
"build",
@@ -26,6 +27,13 @@ FILES = [
src = s + ".proto",
) for s in FILES]
+py_proto_library(
+ name = "build_pb_py",
+ srcs = ["build.proto"],
+ default_runtime = "@bazel_tools//third_party/protobuf:protobuf_python",
+ protoc = "@bazel_tools//third_party/protobuf:protoc",
+)
+
filegroup(
name = "srcs",
srcs = glob(["**"]),