Преглед изворни кода

Merge pull request #4375 from jo2y/protoc-default

Replace //:protoc and similar default macro arguments with
Feng Xiao пре 7 година
родитељ
комит
6ebfa148a4
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 1 1
      BUILD
  2. 4 4
      protobuf.bzl

+ 1 - 1
BUILD

@@ -254,7 +254,7 @@ internal_copied_filegroup(
     srcs = WELL_KNOWN_PROTOS,
     srcs = WELL_KNOWN_PROTOS,
     dest = "",
     dest = "",
     strip_prefix = "src",
     strip_prefix = "src",
-    visibility = ["//visibility:hidden"],
+    visibility = ["//visibility:private"],
 )
 )
 
 
 [proto_library(
 [proto_library(

+ 4 - 4
protobuf.bzl

@@ -171,10 +171,10 @@ def cc_proto_library(
         deps=[],
         deps=[],
         cc_libs=[],
         cc_libs=[],
         include=None,
         include=None,
-        protoc="//:protoc",
+        protoc="@com_google_protobuf//:protoc",
         internal_bootstrap_hack=False,
         internal_bootstrap_hack=False,
         use_grpc_plugin=False,
         use_grpc_plugin=False,
-        default_runtime="//:protobuf",
+        default_runtime="@com_google_protobuf//:protobuf",
         **kargs):
         **kargs):
   """Bazel rule to create a C++ protobuf library from proto source files
   """Bazel rule to create a C++ protobuf library from proto source files
 
 
@@ -317,8 +317,8 @@ def py_proto_library(
         py_libs=[],
         py_libs=[],
         py_extra_srcs=[],
         py_extra_srcs=[],
         include=None,
         include=None,
-        default_runtime="//:protobuf_python",
-        protoc="//:protoc",
+        default_runtime="@com_google_protobuf//:protobuf_python",
+        protoc="@com_google_protobuf//:protoc",
         use_grpc_plugin=False,
         use_grpc_plugin=False,
         **kargs):
         **kargs):
   """Bazel rule to create a Python protobuf library from proto source files
   """Bazel rule to create a Python protobuf library from proto source files