blob: 6c56feb88834b654c6ed754cb4f12580c109acfa [file] [log] [blame]
# Copyright 2019 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.
"""Dependencies and toolchains required to use rules_proto."""
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:java.bzl", "java_import_external")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("//proto/private:dependencies.bzl", "dependencies", "maven_dependencies", "protobuf_workspace")
def rules_proto_dependencies():
for name in dependencies:
maybe(http_archive, name, **dependencies[name])
for name in maven_dependencies:
maybe(java_import_external, name, **maven_dependencies[name])
protobuf_workspace(name = "com_google_protobuf")
def rules_proto_toolchains():
# Nothing to do here (yet).
pass