-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
51 lines (45 loc) · 1.81 KB
/
MODULE.bazel
File metadata and controls
51 lines (45 loc) · 1.81 KB
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
###############################################################################
# Bazel now uses Bzlmod by default to manage external dependencies.
# Please consider migrating your external dependencies from WORKSPACE to MODULE.bazel.
#
# For more details, please check https://github.com/bazelbuild/bazel/issues/18958
###############################################################################
module(
name="spacemouse"
)
bazel_dep(name="rules_cc", version="0.2.9")
bazel_dep(name = "rules_python", version = "1.2.0")
bazel_dep(name = "bazel_skylib", version = "1.7.1")
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
# Add LCM dependency through Drake
drake_dep_repositories = use_extension(
"@drake//tools/workspace:default.bzl",
"drake_dep_repositories",
)
use_repo(drake_dep_repositories, "lcm", "gflags", "drake_models")
bazel_dep(name = "drake")
DRAKE_VERSION = "v1.42.0"
DRAKE_CHECKSUM = "d860c15f50397c8a946fcc79e0a58a91ebc56f2189ef9edfcac929aa04157f8b"
archive_override(
module_name = "drake",
urls = [x.format(DRAKE_VERSION) for x in [
"https://github.com/RobotLocomotion/drake/archive/{}.tar.gz",
]],
sha256 = DRAKE_CHECKSUM,
strip_prefix = "drake-{}".format(DRAKE_VERSION.lstrip("v")),
)
# Add libspnav dependency
libspnav_extension = use_extension("@spacemouse//tools/libspacenav:repository.bzl", "libspnav_extension")
use_repo(libspnav_extension, "libspnav")
drake_models_extension = use_extension("@spacemouse//tools/drake_models:repository.bzl", "drake_models_extension")
use_repo(drake_models_extension, "my_drake_models")
override_repo(
drake_dep_repositories,
drake_models = "my_drake_models",
)
bazel_dep(name = "robotiq-driver")
git_override(
module_name = "robotiq-driver",
remote = "https://github.com/DAIRLab/robotiq_gripper.git",
branch = "main",
)