aboutsummaryrefslogtreecommitdiff
path: root/WORKSPACE
diff options
context:
space:
mode:
authorJakob Buchgraber <buchgr@google.com>2017-09-05 17:15:10 +0200
committerJakob Buchgraber <buchgr@google.com>2017-09-05 22:33:54 +0200
commit699c0eb9cf6573f3a00b4db61f60aff92dc3dd7a (patch)
treef8a1f6f97bdea7d0680e65a65a558b3693997e1d /WORKSPACE
parent6699f2cf64c656d96f4d6f93fa9563faf02e94b4 (diff)
downloadprotobuf-699c0eb9cf6573f3a00b4db61f60aff92dc3dd7a.tar.gz
protobuf-699c0eb9cf6573f3a00b4db61f60aff92dc3dd7a.tar.bz2
protobuf-699c0eb9cf6573f3a00b4db61f60aff92dc3dd7a.zip
bazel: Add proto_library rules for well known types. Fixes #2763
Adds a proto_library rule for each well known type proto: $ bazel query "filter(\".*_proto$\", \"...\")" //:wrappers_proto //:timestamp_proto //:struct_proto //:field_mask_proto //:empty_proto //:duration_proto //:compiler_plugin_proto //:descriptor_proto //:api_proto //:type_proto //:source_context_proto //:any_proto Bazel users can reference these proto_library rules for their own language specific rules i.e. java_proto_library( name = "any_java_proto", deps = ["@com_google_protobuf//:any_proto"], ) Also set the workspace name to "com_google_protobuf", as proto_library rules reference protobuf that way.
Diffstat (limited to 'WORKSPACE')
-rw-r--r--WORKSPACE2
1 files changed, 2 insertions, 0 deletions
diff --git a/WORKSPACE b/WORKSPACE
index 2a49e372..1066a0e6 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1,3 +1,5 @@
+workspace(name = "com_google_protobuf")
+
new_git_repository(
name = "googletest",
build_file = "gmock.BUILD",