-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
46 lines (37 loc) · 1.72 KB
/
WORKSPACE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
workspace(name = "braiser")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Group the sources of the library so that CMake rule have access to it
all_content = """filegroup(name = "all", srcs = glob(["**"]), visibility = ["//visibility:public"])"""
# Rule repository
http_archive(
name = "rules_foreign_cc",
strip_prefix = "rules_foreign_cc-master",
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/master.zip",
)
load("@rules_foreign_cc//:workspace_definitions.bzl", "rules_foreign_cc_dependencies")
# Call this function from the WORKSPACE file to initialize rules_foreign_cc
# dependencies and let neccesary code generation happen
# (Code generation is needed to support different variants of the C++ Starlark API.).
#
# Args:
# native_tools_toolchains: pass the toolchains for toolchain types
# '@rules_foreign_cc//tools/build_defs:cmake_toolchain' and
# '@rules_foreign_cc//tools/build_defs:ninja_toolchain' with the needed platform constraints.
# If you do not pass anything, registered default toolchains will be selected (see below).
#
# register_default_tools: if True, the cmake and ninja toolchains, calling corresponding
# preinstalled binaries by name (cmake, ninja) will be registered after
# 'native_tools_toolchains' without any platform constraints.
# The default is True
rules_foreign_cc_dependencies([
"//:built_cmake_toolchain",
"//:built_ninja_toolchain_linux",
])
http_archive(
name = "openblas",
build_file_content = all_content,
strip_prefix = "OpenBLAS-0.3.2",
urls = ["https://github.com/xianyi/OpenBLAS/archive/v0.3.2.tar.gz"],
)
load(":braiser_repos.bzl", "include_braiser_repositories")
include_braiser_repositories()