-
Notifications
You must be signed in to change notification settings - Fork 5
/
WORKSPACE.bazel
140 lines (115 loc) · 4.3 KB
/
WORKSPACE.bazel
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
workspace(name = "albatross")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_swiftnav",
sha256 = "8e00b694b6dce9c91d811e2e9e13e148af5f1dd329b85b7c5d2d9d2238aa92dc",
strip_prefix = "rules_swiftnav-1c51c97743c9632169dd7e5a228c6ce915893236",
url = "https://github.com/swift-nav/rules_swiftnav/archive/1c51c97743c9632169dd7e5a228c6ce915893236.tar.gz",
)
load("@rules_swiftnav//cc:repositories.bzl", "register_swift_cc_toolchains", "swift_cc_toolchain")
swift_cc_toolchain()
register_swift_cc_toolchains()
# Rules for integrating with cmake builds
http_archive(
name = "rules_foreign_cc",
strip_prefix = "rules_foreign_cc-c65e8cfbaa002bcd1ce9c26e9fec63b0b866c94b",
url = "https://github.com/bazelbuild/rules_foreign_cc/archive/c65e8cfbaa002bcd1ce9c26e9fec63b0b866c94b.tar.gz",
)
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
rules_foreign_cc_dependencies()
http_archive(
name = "mkl_headers",
build_file = "@rules_swiftnav//third_party:mkl_headers.BUILD",
sha256 = "b24d12a8e18ba23de5c659a33fb184a7ac6019d4b159e78f628d7c8de225f77a",
urls = [
"https://anaconda.org/intel/mkl-include/2023.1.0/download/linux-64/mkl-include-2023.1.0-intel_46342.tar.bz2",
],
)
http_archive(
name = "mkl",
build_file = "@rules_swiftnav//third_party:mkl.BUILD",
sha256 = "c63adbfdbdc7c4992384a2d89cd62211e4a9f8061e3e841af1a269699531cb02",
strip_prefix = "lib",
urls = [
"https://anaconda.org/intel/mkl-static/2023.1.0/download/linux-64/mkl-static-2023.1.0-intel_46342.tar.bz2",
],
)
# Hedron's Compile Commands Extractor for Bazel
# https://github.com/hedronvision/bazel-compile-commands-extractor
http_archive(
name = "hedron_compile_commands",
sha256 = "4b251a482a85de6c5cb0dc34c5671e73190b9ff348e9979fa2c033d81de0f928",
strip_prefix = "bazel-compile-commands-extractor-5bb5ff2f32d542a986033102af771aa4206387b9",
url = "https://github.com/hedronvision/bazel-compile-commands-extractor/archive/5bb5ff2f32d542a986033102af771aa4206387b9.tar.gz",
)
load("@hedron_compile_commands//:workspace_setup.bzl", "hedron_compile_commands_setup")
hedron_compile_commands_setup()
http_archive(
name = "zlib",
build_file = "@rules_swiftnav//third_party:zlib.BUILD",
sha256 = "b3a24de97a8fdbc835b9833169501030b8977031bcb54b3b3ac13740f846ab30",
strip_prefix = "zlib-1.2.13",
urls = [
"https://zlib.net/zlib-1.2.13.tar.gz",
"https://www.zlib.net/fossils/zlib-1.2.13.tar.gz",
],
)
http_archive(
name = "zstd",
sha256 = "9c4396cc829cfae319a6e2615202e82aad41372073482fce286fac78646d3ee4",
strip_prefix = "zstd-1.5.5",
url = "https://github.com/facebook/zstd/releases/download/v1.5.5/zstd-1.5.5.tar.gz",
build_file = "@rules_swiftnav//third_party:zstd.BUILD",
)
http_archive(
name = "suitesparse",
build_file = "@rules_swiftnav//third_party:suitesparse.BUILD",
sha256 = "4cd3d161f9aa4f98ec5fa725ee5dc27bca960a3714a707a7d12b3d0abb504679",
strip_prefix = "SuiteSparse-7.1.0",
urls = [
"https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/refs/tags/v7.1.0.tar.gz",
],
)
local_repository(
name = "gflags",
path = "third_party/googleflags",
)
local_repository(
name = "gtest",
path = "third_party/googletest",
)
new_local_repository(
name = "eigen",
build_file = "@rules_swiftnav//third_party:eigen.BUILD",
path = "third_party/eigen",
)
new_local_repository(
name = "gzip",
build_file = "@rules_swiftnav//third_party:gzip.BUILD",
path = "third_party/gzip-hpp",
)
new_local_repository(
name = "variant",
build_file = "@rules_swiftnav//third_party:variant.BUILD",
path = "third_party/variant",
)
new_local_repository(
name = "cereal",
build_file = "@rules_swiftnav//third_party:cereal.BUILD",
path = "third_party/cereal",
)
new_local_repository(
name = "fast_csv",
build_file = "@rules_swiftnav//third_party:fast_csv.BUILD",
path = "third_party/fast-cpp-csv-parser",
)
new_local_repository(
name = "nlopt",
build_file = "@rules_swiftnav//third_party:nlopt.BUILD",
path = "third_party/nlopt",
)
new_local_repository(
name = "ThreadPool",
build_file = "@rules_swiftnav//third_party:ThreadPool.BUILD",
path = "third_party/ThreadPool",
)