-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
54 lines (47 loc) · 1.29 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
workspace(name = "rttopp")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
# Google test
# Get it from https://github.com/google/benchmark/blob/main/WORKSPACE#L13
git_repository(
name = "com_google_googletest",
remote = "https://github.com/google/googletest.git",
tag = "release-1.11.0",
)
git_repository(
name = "com_google_benchmark",
remote = "https://github.com/google/benchmark.git",
tag = "v1.6.1",
)
http_archive(
name = "com_gitlab_libeigen_eigen",
sha256 = "0215c6593c4ee9f1f7f28238c4e8995584ebf3b556e9dbf933d84feb98d5b9ef",
strip_prefix = "eigen-3.3.8",
urls = [
"https://gitlab.com/libeigen/eigen/-/archive/3.3.8/eigen-3.3.8.tar.bz2",
],
build_file_content =
"""
# See https://github.com/ceres-solver/ceres-solver/issues/337.
cc_library(
name = 'eigen',
srcs = [],
includes = ['.'],
hdrs = glob(['Eigen/**',
'unsupported/Eigen/**']),
visibility = ['//visibility:public'],
)
"""
)
# Boost
new_local_repository(
name = "boost",
path = "/usr/include/boost",
build_file = "external/boost.BUILD",
)
# json
new_local_repository(
name = "json",
path = "external/json",
build_file = "external/json.BUILD",
)