aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/protobuf/proto_alias.bzl
diff options
context:
space:
mode:
authorGravatar Alex Humesky <ahumesky@google.com>2016-09-29 20:19:15 +0000
committerGravatar Yun Peng <pcloudy@google.com>2016-09-30 08:14:30 +0000
commitb35fe6960f6a7eea73221913dd90e72f5cb9a191 (patch)
tree9a0d976991825e1bbe6c55f4246e88f2da9e2e6c /third_party/protobuf/proto_alias.bzl
parent542f87a1f3693c85e2547ebe93c44fa2c85bab5c (diff)
*** Reason for rollback *** Windows protoc compiler fixed: https://github.com/bazelbuild/bazel/issues/1856 *** Original change description *** Automated [] rollback of commit a12aae73ee292fdcb170f4eaeb8939283d05383c. *** Reason for rollback *** Breaks Bazel Windows Bootstrap Fix https://github.com/bazelbuild/bazel/issues/1851 *** Original change description *** Updates protobuf in bazel to version 3.0.0. -- MOS_MIGRATED_REVID=134699683
Diffstat (limited to 'third_party/protobuf/proto_alias.bzl')
-rw-r--r--third_party/protobuf/proto_alias.bzl18
1 files changed, 18 insertions, 0 deletions
diff --git a/third_party/protobuf/proto_alias.bzl b/third_party/protobuf/proto_alias.bzl
new file mode 100644
index 0000000000..e47728f96d
--- /dev/null
+++ b/third_party/protobuf/proto_alias.bzl
@@ -0,0 +1,18 @@
+# Copyright 2016 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+def proto_alias(name, version):
+ native.alias(
+ name = name,
+ actual = "//third_party/protobuf/" + version + ":" + name)