-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextensions.bzl
More file actions
25 lines (22 loc) · 832 Bytes
/
extensions.bzl
File metadata and controls
25 lines (22 loc) · 832 Bytes
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
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
def _non_module_deps_impl(ctx):
# MuJoCo binary release
http_archive(
name = "mujoco",
urls = ["https://github.com/google-deepmind/mujoco/releases/download/3.3.4/mujoco-3.3.4-linux-x86_64.tar.gz"],
sha256 = "ecf1a17459a342badf2b4f32dd4677a6a0e5fd393c5143993eb3e81b8e44609b",
strip_prefix = "mujoco-3.3.4",
build_file_content = """load("@rules_cc//cc:defs.bzl", "cc_library")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "mujoco",
hdrs = glob(["include/**/*.h"]),
includes = ["include"],
srcs = ["lib/libmujoco.so.3.3.4"],
linkopts = ["-Wl,-rpath,lib"], # Optional help
)
""",
)
non_module_deps = module_extension(
implementation = _non_module_deps_impl,
)