blob: 967678aa62ec32dd4f9d278086b87ea767e6f369 [file] [log] [blame]
Benoit Jacobf7ea5832020-03-27 21:58:51 -04001# 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")
Fangjun Kuang4452e732020-04-08 21:17:46 -070018
19load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
bjacobf4af2f72021-01-16 14:53:14 -050020load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
Fangjun Kuang4452e732020-04-08 21:17:46 -070021
bjacobf4af2f72021-01-16 14:53:14 -050022maybe(
23 local_repository,
Fangjun Kuang4452e732020-04-08 21:17:46 -070024 name = "com_google_googletest",
bjacobf4af2f72021-01-16 14:53:14 -050025 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",
Fangjun Kuang4452e732020-04-08 21:17:46 -070033)
Benoit Jacob6f142032020-05-27 14:55:39 -070034
35# clog library, used by cpuinfo for logging
36http_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. Alumbaugh53b778a2020-06-03 13:42:58 -070046# skylib utility for additional bazel functionality.
47skylib_version = "0.9.0"
48http_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)
54load("@bazel_skylib//lib:versions.bzl", "versions")
55versions.check(minimum_bazel_version = "2.0.0")