blob: 0fd5a23906da686c299a0833c7dd5fe2438d60fe [file] [log] [blame]
Geoffrey Martin-Noble552d3f82021-05-25 17:56:09 -07001# Copyright 2019 The IREE Authors
Geoffrey Martin-Noble15545b42019-11-09 16:40:38 -08002#
Geoffrey Martin-Noble552d3f82021-05-25 17:56:09 -07003# Licensed under the Apache License v2.0 with LLVM Exceptions.
4# See https://llvm.org/LICENSE.txt for license information.
5# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Geoffrey Martin-Noble15545b42019-11-09 16:40:38 -08006
Stella Laurenzo1128d502019-10-07 14:34:41 -07007# Workspace file for the IREE project.
Stella Laurenzoc4a6edf2019-10-17 16:59:08 -07008# buildozer: disable=positional-args
9
10workspace(name = "iree_core")
Stella Laurenzo196ad742019-10-09 10:33:08 -070011
12load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
Scott Todd69655bc2020-11-30 16:28:52 -080013load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
Stella Laurenzo196ad742019-10-09 10:33:08 -070014
Stella Laurenzoc4a6edf2019-10-17 16:59:08 -070015###############################################################################
Stella Laurenzoe7d9e882019-10-10 14:32:38 -070016# Skylib
Stella Laurenzoe7d9e882019-10-10 14:32:38 -070017http_archive(
18 name = "bazel_skylib",
Geoffrey Martin-Noble645a88b2020-07-13 09:40:59 -070019 sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
Stella Laurenzoe7d9e882019-10-10 14:32:38 -070020 urls = [
21 "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
22 "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
23 ],
Stella Laurenzoe7d9e882019-10-10 14:32:38 -070024)
Geoffrey Martin-Noble645a88b2020-07-13 09:40:59 -070025
Stella Laurenzoe7d9e882019-10-10 14:32:38 -070026load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
Geoffrey Martin-Noble645a88b2020-07-13 09:40:59 -070027
Stella Laurenzoe7d9e882019-10-10 14:32:38 -070028bazel_skylib_workspace()
29###############################################################################
30
31###############################################################################
Stella Laurenzo15d8ae42020-01-03 13:52:12 -080032# llvm-project
Geoffrey Martin-Noble10b3e1e2020-10-27 10:04:35 -070033
Geoffrey Martin-Noble77285732021-08-18 18:18:34 -070034new_local_repository(
35 name = "llvm-raw",
36 build_file_content = "# empty",
37 path = "third_party/llvm-project",
Geoffrey Martin-Noble10b3e1e2020-10-27 10:04:35 -070038)
39
Geoffrey Martin-Noble77285732021-08-18 18:18:34 -070040load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps")
Geoffrey Martin-Noble10b3e1e2020-10-27 10:04:35 -070041
Geoffrey Martin-Noble77285732021-08-18 18:18:34 -070042llvm_configure(name = "llvm-project")
Geoffrey Martin-Noble10b3e1e2020-10-27 10:04:35 -070043
Geoffrey Martin-Noble77285732021-08-18 18:18:34 -070044llvm_disable_optional_support_deps()
Geoffrey Martin-Noble10b3e1e2020-10-27 10:04:35 -070045
Stella Laurenzo15d8ae42020-01-03 13:52:12 -080046###############################################################################
47
48###############################################################################
Scott Todd0d416202019-11-12 16:22:05 -080049# Find and configure the Vulkan SDK, if installed.
50load("//build_tools/third_party/vulkan_sdk:repo.bzl", "vulkan_sdk_setup")
Geoffrey Martin-Noble645a88b2020-07-13 09:40:59 -070051
52maybe(
53 vulkan_sdk_setup,
Scott Todd0d416202019-11-12 16:22:05 -080054 name = "vulkan_sdk",
55)
56###############################################################################
Geoffrey Martin-Noblef5b323e2021-01-12 18:32:08 -080057# All other IREE submodule dependencies
Scott Todd0d416202019-11-12 16:22:05 -080058
Geoffrey Martin-Noblef5b323e2021-01-12 18:32:08 -080059load("//build_tools/bazel:workspace.bzl", "configure_iree_submodule_deps")
60
61configure_iree_submodule_deps()