Benoit Jacob | f7ea583 | 2020-03-27 21:58:51 -0400 | [diff] [blame] | 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 | |
| 17 | workspace(name = "com_google_ruy") |
Fangjun Kuang | 4452e73 | 2020-04-08 21:17:46 -0700 | [diff] [blame] | 18 | |
| 19 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
bjacob | f4af2f7 | 2021-01-16 14:53:14 -0500 | [diff] [blame] | 20 | load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") |
Fangjun Kuang | 4452e73 | 2020-04-08 21:17:46 -0700 | [diff] [blame] | 21 | |
bjacob | f4af2f7 | 2021-01-16 14:53:14 -0500 | [diff] [blame] | 22 | maybe( |
| 23 | local_repository, |
Fangjun Kuang | 4452e73 | 2020-04-08 21:17:46 -0700 | [diff] [blame] | 24 | name = "com_google_googletest", |
bjacob | f4af2f7 | 2021-01-16 14:53:14 -0500 | [diff] [blame] | 25 | path = "third_party/googletest", |
| 26 | ) |
| 27 | |
| 28 | maybe( |
| 29 | new_local_repository, |
| 30 | name = "cpuinfo", |
| 31 | path = "third_party/cpuinfo", |
| 32 | build_file = "@//third_party:cpuinfo.BUILD", |
Fangjun Kuang | 4452e73 | 2020-04-08 21:17:46 -0700 | [diff] [blame] | 33 | ) |
Benoit Jacob | 6f14203 | 2020-05-27 14:55:39 -0700 | [diff] [blame] | 34 | |
| 35 | # clog library, used by cpuinfo for logging |
| 36 | http_archive( |
| 37 | name = "clog", |
| 38 | strip_prefix = "cpuinfo-d5e37adf1406cf899d7d9ec1d317c47506ccb970", |
| 39 | sha256 = "3f2dc1970f397a0e59db72f9fca6ff144b216895c1d606f6c94a507c1e53a025", |
| 40 | urls = [ |
| 41 | "https://github.com/pytorch/cpuinfo/archive/d5e37adf1406cf899d7d9ec1d317c47506ccb970.tar.gz", |
| 42 | ], |
| 43 | build_file = "@//third_party:clog.BUILD", |
| 44 | ) |
| 45 | |
T.J. Alumbaugh | 53b778a | 2020-06-03 13:42:58 -0700 | [diff] [blame] | 46 | # skylib utility for additional bazel functionality. |
| 47 | skylib_version = "0.9.0" |
| 48 | http_archive( |
| 49 | name = "bazel_skylib", |
| 50 | type = "tar.gz", |
| 51 | url = "https://github.com/bazelbuild/bazel-skylib/releases/download/{}/bazel_skylib-{}.tar.gz".format (skylib_version, skylib_version), |
| 52 | sha256 = "1dde365491125a3db70731e25658dfdd3bc5dbdfd11b840b3e987ecf043c7ca0", |
| 53 | ) |
| 54 | load("@bazel_skylib//lib:versions.bzl", "versions") |
| 55 | versions.check(minimum_bazel_version = "2.0.0") |