xref: /llvm-project-15.0.7/utils/bazel/WORKSPACE (revision 4aeb2e60)
1# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2# See https://llvm.org/LICENSE.txt for license information.
3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5load(":configure.bzl", "llvm_configure")
6load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
7load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
8
9llvm_configure(
10    name = "llvm-project",
11    overlay_path = "llvm-project-overlay",
12    src_path = "../..",
13)
14
15load(":terminfo.bzl", "llvm_terminfo_from_env")
16
17maybe(
18    llvm_terminfo_from_env,
19    name = "llvm_terminfo",
20)
21
22maybe(
23    http_archive,
24    name = "zlib",
25    build_file = "//third_party_build:zlib.BUILD",
26    sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1",
27    strip_prefix = "zlib-1.2.11",
28    urls = [
29        "https://storage.googleapis.com/mirror.tensorflow.org/zlib.net/zlib-1.2.11.tar.gz",
30        "https://zlib.net/zlib-1.2.11.tar.gz",
31    ],
32)
33
34load(":zlib.bzl", "llvm_zlib_from_env")
35
36maybe(
37    llvm_zlib_from_env,
38    name = "llvm_zlib",
39    external_zlib = "@zlib",
40)
41
42maybe(
43    http_archive,
44    name = "vulkan_headers",
45    build_file = "//third_party_build:vulkan_headers.BUILD",
46    sha256 = "19f491784ef0bc73caff877d11c96a48b946b5a1c805079d9006e3fbaa5c1895",
47    strip_prefix = "Vulkan-Headers-9bd3f561bcee3f01d22912de10bb07ce4e23d378",
48    urls = [
49        "https://github.com/KhronosGroup/Vulkan-Headers/archive/9bd3f561bcee3f01d22912de10bb07ce4e23d378.tar.gz",
50    ],
51)
52
53load(":vulkan_sdk.bzl", "vulkan_sdk_setup")
54
55maybe(
56    vulkan_sdk_setup,
57    name = "vulkan_sdk",
58)
59
60http_archive(
61    name = "bazel_skylib",
62    sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
63    urls = [
64        "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
65        "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
66    ],
67)
68
69load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
70
71bazel_skylib_workspace()
72
73http_archive(
74    name = "bazel_toolchains",
75    sha256 = "1adf5db506a7e3c465a26988514cfc3971af6d5b3c2218925cd6e71ee443fc3f",
76    strip_prefix = "bazel-toolchains-4.0.0",
77    urls = [
78        "https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/4.0.0/bazel-toolchains-4.0.0.tar.gz",
79        "https://github.com/bazelbuild/bazel-toolchains/releases/download/4.0.0/bazel-toolchains-4.0.0.tar.gz",
80    ],
81)
82
83load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
84rbe_autoconfig(name = "rbe_default")
85