1*bb86c7edSAndroid Build Coastguard Worker# Copyright 2020 Google LLC 2*bb86c7edSAndroid Build Coastguard Worker# 3*bb86c7edSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*bb86c7edSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*bb86c7edSAndroid Build Coastguard Worker# You may obtain a copy of the License at 6*bb86c7edSAndroid Build Coastguard Worker# 7*bb86c7edSAndroid Build Coastguard Worker# https://www.apache.org/licenses/LICENSE-2.0 8*bb86c7edSAndroid Build Coastguard Worker# 9*bb86c7edSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*bb86c7edSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*bb86c7edSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*bb86c7edSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*bb86c7edSAndroid Build Coastguard Worker# limitations under the License. 14*bb86c7edSAndroid Build Coastguard Worker 15*bb86c7edSAndroid Build Coastguard Worker# Workspace file for the Ruy project. 16*bb86c7edSAndroid Build Coastguard Worker 17*bb86c7edSAndroid Build Coastguard Workerworkspace(name = "com_google_ruy") 18*bb86c7edSAndroid Build Coastguard Worker 19*bb86c7edSAndroid Build Coastguard Workerload("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") 20*bb86c7edSAndroid Build Coastguard Workerload("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") 21*bb86c7edSAndroid Build Coastguard Worker 22*bb86c7edSAndroid Build Coastguard Workermaybe( 23*bb86c7edSAndroid Build Coastguard Worker local_repository, 24*bb86c7edSAndroid Build Coastguard Worker name = "com_google_googletest", 25*bb86c7edSAndroid Build Coastguard Worker path = "third_party/googletest", 26*bb86c7edSAndroid Build Coastguard Worker) 27*bb86c7edSAndroid Build Coastguard Worker 28*bb86c7edSAndroid Build Coastguard Workermaybe( 29*bb86c7edSAndroid Build Coastguard Worker new_local_repository, 30*bb86c7edSAndroid Build Coastguard Worker name = "cpuinfo", 31*bb86c7edSAndroid Build Coastguard Worker path = "third_party/cpuinfo", 32*bb86c7edSAndroid Build Coastguard Worker build_file = "@//third_party:cpuinfo.BUILD", 33*bb86c7edSAndroid Build Coastguard Worker) 34*bb86c7edSAndroid Build Coastguard Worker 35*bb86c7edSAndroid Build Coastguard Worker# skylib utility for additional bazel functionality. 36*bb86c7edSAndroid Build Coastguard Workerskylib_version = "0.9.0" 37*bb86c7edSAndroid Build Coastguard Workerhttp_archive( 38*bb86c7edSAndroid Build Coastguard Worker name = "bazel_skylib", 39*bb86c7edSAndroid Build Coastguard Worker type = "tar.gz", 40*bb86c7edSAndroid Build Coastguard Worker url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel_skylib-{}.tar.gz".format (skylib_version, skylib_version), 41*bb86c7edSAndroid Build Coastguard Worker sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", 42*bb86c7edSAndroid Build Coastguard Worker) 43*bb86c7edSAndroid Build Coastguard Workerload("@bazel_skylib//lib:versions.bzl", "versions") 44*bb86c7edSAndroid Build Coastguard Workerversions.check(minimum_bazel_version = "2.0.0") 45