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