forked from spaceandtimelabs/blitzar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWORKSPACE
114 lines (93 loc) · 2.7 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
workspace(name = "dev_spaceandtime_blitzar")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_skylib",
sha256 = "66ffd9315665bfaafc96b52278f57c7e2dd09f5ede279ea6d39b2be471e7e3aa",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.4.2/bazel-skylib-1.4.2.tar.gz",
],
)
# rules_foreign_cc
git_repository(
name = "rules_foreign_cc",
commit = "a87e754",
remote = "https://github.com/bazelbuild/rules_foreign_cc",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies()
# libbacktrace
git_repository(
name = "com_github_ianlancetaylor_libbacktrace",
build_file_content = """
load("@rules_foreign_cc//foreign_cc:defs.bzl", "configure_make")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "all_srcs",
srcs = glob(
include = ["**"],
exclude = ["*.bazel"],
),
)
configure_make(
name = "libbacktrace",
lib_source = ":all_srcs",
)
""",
commit = "14818b7",
remote = "https://github.com/ianlancetaylor/libbacktrace",
)
# spdlog
git_repository(
name = "com_github_gabime_spdlog",
build_file_content = """
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake")
package(default_visibility = ["//visibility:public"])
filegroup(
name = "all_srcs",
srcs = glob(
include = ["**"],
exclude = ["*.bazel"],
),
)
cmake(
name = "libspdlog",
cache_entries = {
"SPDLOG_BUILD_EXAMPLE": "OFF",
"CMAKE_CXX_FLAGS": "-stdlib=libc++",
},
lib_source = ":all_srcs",
)
""",
commit = "7c02e20",
remote = "https://github.com/gabime/spdlog",
)
# catch2
git_repository(
name = "com_github_catchorg_catch2",
commit = "53d0d91",
remote = "https://github.com/catchorg/Catch2",
)
# boost
git_repository(
name = "com_github_nelhage_rules_boost",
commit = "ff4fefd",
# Patch build to add libbacktrace dependency.
# See https://github.com/nelhage/rules_boost/issues/534
patches = [
"//bazel:stacktrace.patch",
],
remote = "https://github.com/nelhage/rules_boost",
)
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
boost_deps()
# rules_cuda
git_repository(
name = "rules_cuda",
commit = "7a29239",
remote = "https://github.com/bazel-contrib/rules_cuda",
)
load("@rules_cuda//cuda:repositories.bzl", "register_detected_cuda_toolchains", "rules_cuda_dependencies")
rules_cuda_dependencies()
register_detected_cuda_toolchains()