-
Notifications
You must be signed in to change notification settings - Fork 6
/
WORKSPACE
79 lines (68 loc) · 2.23 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
workspace(name = "psim")
load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
# Standard cc rules
git_repository(
name = "rules_cc",
remote = "https://github.com/bazelbuild/rules_cc",
commit = "bea600c25d246a79398a1c1a73e9261aee35a6b1",
)
# Standard Python rules
http_archive(
name = "rules_python",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz",
sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0",
)
# Load and install python three requirements
load("@rules_python//python:pip.bzl", "pip_install")
pip_install(
name = "python_requirements",
python_interpreter = "python3",
quiet = False,
requirements = "//bazel:requirements.txt",
)
# Pybind11
http_archive(
name = "pybind11",
build_file = "//bazel:pybind11.BUILD",
url = "https://github.com/pybind/pybind11/archive/v2.6.1.tar.gz",
sha256 = "cdbe326d357f18b83d10322ba202d69f11b2f49e2d87ade0dc2be0c5c34f8e2a",
strip_prefix = "pybind11-2.6.1",
)
# Googletest
http_archive(
name = "gtest",
url = "https://github.com/google/googletest/archive/release-1.10.0.zip",
sha256 = "94c634d499558a76fa649edb13721dce6e98fb1e7018dfaeba3cd7a083945e91",
strip_prefix = "googletest-release-1.10.0",
)
# Sofa/IAU Coordinate Transformations
http_archive(
name = "sofa",
url = "https://github.com/pathfinder-for-autonomous-navigation/sofa/archive/v1.0.zip",
sha256 = "a5660ff94270934c33b3fdaaf891620c9a454181dad7fb12378e66a5b73c205f",
strip_prefix = "sofa-1.0",
)
# std::variant alternative for use in C++ 14
http_archive(
name = "variant",
build_file = "//bazel:variant.BUILD",
url = "https://github.com/mapbox/variant/archive/v1.2.0.zip",
sha256 = "48df02096b954ea35c447edc3e662e7f163a92e1de2ab5f226445d6001a4537d",
strip_prefix = "variant-1.2.0",
)
# geograv
local_repository(
name = "geograv",
path = "lib/geograv",
)
# lin
local_repository(
name = "lin",
path = "lib/lin",
)
# Grabs the system's Python3 headers in preparation for building with Pybind11
load("//bazel:psim_workspace.bzl", "psim_configure")
psim_configure(
name = "psim_configuration"
)