-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathMODULE.bazel
More file actions
83 lines (74 loc) · 3.52 KB
/
Copy pathMODULE.bazel
File metadata and controls
83 lines (74 loc) · 3.52 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
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
module(
name = "dds",
version = "3.0.1"
)
bazel_dep(name = "rules_cc", version = "0.2.18")
bazel_dep(name = "platforms", version = "1.1.0")
# copy_file (shell-free, cross-platform) for staging the native lib into the jar.
# Pin to the version the graph resolves (via rules_jvm_external) to avoid a
# direct-dependency mismatch warning on every invocation.
bazel_dep(name = "bazel_skylib", version = "1.9.0")
# sh_test for //:benchmark_git_prep_test (already pulled in transitively;
# pin directly so the load path stays stable).
bazel_dep(name = "rules_shell", version = "0.6.1")
bazel_dep(name = "googletest", version = "1.17.0.bcr.2")
bazel_dep(name = "pybind11_bazel", version = "3.0.1")
bazel_dep(name = "rules_python", version = "2.0.1")
bazel_dep(name = "toolchains_llvm", version = "1.7.0")
# Xcode CC toolchain for macOS AddressSanitizer builds (--config=asan). LLVM's ASAN
# runtime hangs on current macOS; see .bazelrc build:asan_macos.
bazel_dep(name = "apple_support", version = "1.24.2")
# WASM builds (//wasm:*, //web:dds_mvp_wasm). If you bump this version,
# rebuild and run web/update_wasm.sh; see docs/wasm_build.md and patch_mvp_wasm.py.
bazel_dep(name = "emsdk", version = "5.0.7")
# Java bindings (//jni:*). Provides the hermetic remote JDK used to build and run
# the FFM (java.lang.foreign) smoke test. rules_java 9.6.1 registers remotejdk_21
# and remotejdk_25; we pin JDK 25 (>= 22, so the Foreign Function & Memory API is
# stable, not preview) via --java_*_version in .bazelrc.
bazel_dep(name = "rules_java", version = "9.6.1")
# Java packaging (//jni:dds_ffm_dist). Provides java_export -> a Maven-coordinate
# jar plus a generated .publish target that supports file:// local repos, used to
# install into ~/.m2 (Phase 1; no remote/public publishing yet).
bazel_dep(name = "rules_jvm_external", version = "7.0")
# Prefer GitHub, fall back to codeload CDN on transient timeouts (see CI flakes).
# Integrity and strip_prefix match BCR emsdk 5.0.7 source.json.
archive_override(
module_name = "emsdk",
integrity = "sha256-Jm30uWRN3hgwOvBdzn0EhUJzsLtSckbLf7aglZF3TM8=",
strip_prefix = "emsdk-5.0.7/bazel",
urls = [
"https://github.com/emscripten-core/emsdk/archive/refs/tags/5.0.7.tar.gz",
"https://codeload.github.com/emscripten-core/emsdk/tar.gz/refs/tags/5.0.7",
],
)
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm")
llvm.toolchain(
name = "llvm_toolchain",
# When bumping these versions, also update .bazelrc build:tsan_macos rpath
# (clang/N) and confirm Xcode ships the same major; see docs/BUILD_SYSTEM.md.
llvm_versions = {
"darwin-aarch64": "21.1.8",
"linux-x86_64": "21.1.8",
"windows-x86_64": "21.1.8",
},
)
use_repo(llvm, "llvm_toolchain")
# Apple toolchain repo; selected only for --config=asan via .bazelrc (not registered globally).
apple_cc_configure = use_extension("@apple_support//crosstool:setup.bzl", "apple_cc_configure_extension")
use_repo(apple_cc_configure, "local_config_apple_cc", "local_config_apple_cc_toolchains")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
is_default = True,
python_version = "3.14",
)
use_repo(python, "python_3_14")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pypi",
python_version = "3.14",
requirements_lock = "//web:requirements_lock.txt",
)
use_repo(pip, "pypi")
register_toolchains("@llvm_toolchain//:all")
register_toolchains("@emsdk//:all")