# Copyright 2016 Google Inc. 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.
#
################################################################################
#

load(
     "//:repositories.bzl",
     "mixerapi_dependencies",
)

mixerapi_dependencies()

bind(
    name = "boringssl_crypto",
    actual = "//external:ssl",
)

local_repository(
    name = "envoy",
    path = "../envoy-proxy-1.8.0+git20181105",
)

load("@envoy//bazel:repositories.bzl", "envoy_dependencies")
envoy_dependencies(
    path = "@envoy//ci/prebuilt",
)

load("@envoy//bazel:cc_configure.bzl", "cc_configure")
cc_configure()

load("@envoy_api//bazel:repositories.bzl", "api_dependencies")
api_dependencies()

load("@io_bazel_rules_go//go:def.bzl", "go_host_sdk", "go_register_toolchains", "go_rules_dependencies")
go_host_sdk(name = "go_sdk")
go_rules_dependencies()
go_register_toolchains()

local_repository(
    name = "org_pubref_rules_protobuf",
    path = "/usr/src/bazel-rules-proto",
)
