mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Since we currently have both a Bazel build and Gradle build, we need to
keep the Doxygen versions in sync between the two.
40188d9cc6/docs/build.gradle (L71)
It's awkward that these are in very disjoint parts of the repo. This
puts them in the same directory so it's more obvious it should be kept
in sync.
135 lines
4.9 KiB
Python
135 lines
4.9 KiB
Python
module(
|
|
name = "allwpilib",
|
|
version = "0.0.0",
|
|
)
|
|
|
|
include("//docs:doxygen.MODULE.bazel")
|
|
|
|
bazel_dep(name = "apple_support", version = "2.0.0", repo_name = "build_bazel_apple_support")
|
|
|
|
# TODO(austin): Upgrade when the patches land.
|
|
# https://github.com/bazelbuild/rules_cc/pull/430
|
|
# https://github.com/bazelbuild/rules_cc/pull/431
|
|
# https://github.com/bazelbuild/rules_cc/pull/432
|
|
bazel_dep(name = "rules_cc", version = "0.2.13")
|
|
single_version_override(
|
|
module_name = "rules_cc",
|
|
patch_strip = 1,
|
|
patches = ["//:shared/bazel/patches/rules_cc_windows.patch"],
|
|
)
|
|
|
|
bazel_dep(name = "rules_pkg", version = "1.1.0")
|
|
bazel_dep(name = "bazel_features", version = "1.33.0")
|
|
bazel_dep(name = "aspect_bazel_lib", version = "2.14.0")
|
|
bazel_dep(name = "bazel_skylib", version = "1.8.2")
|
|
bazel_dep(name = "platforms", version = "1.0.0")
|
|
bazel_dep(name = "rules_java", version = "8.16.1")
|
|
bazel_dep(name = "rules_python", version = "1.7.0")
|
|
bazel_dep(name = "rules_pycross", version = "0.8.1")
|
|
|
|
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
|
|
python.toolchain(
|
|
python_version = "3.13",
|
|
)
|
|
use_repo(
|
|
python,
|
|
"python_3_13",
|
|
"python_3_13_x86_64-unknown-linux-gnu",
|
|
)
|
|
|
|
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
|
|
pip.parse(
|
|
hub_name = "allwpilib_pip_deps",
|
|
python_version = "3.13",
|
|
requirements_lock = "//:requirements_lock.txt",
|
|
requirements_windows = "//:requirements_windows_lock.txt",
|
|
)
|
|
use_repo(pip, "allwpilib_pip_deps")
|
|
|
|
bazel_dep(name = "rules_jvm_external", version = "6.8")
|
|
|
|
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
|
|
maven.install(
|
|
name = "maven",
|
|
artifacts = [
|
|
"org.ejml:ejml-simple:0.44.0",
|
|
"io.avaje:avaje-jsonb:3.11",
|
|
"io.avaje:avaje-jsonb-generator:3.11",
|
|
"us.hebi.quickbuf:quickbuf-runtime:1.4",
|
|
"com.google.code.gson:gson:2.13.1",
|
|
"edu.wpi.first.thirdparty.frc2025.opencv:opencv-java:4.10.0-3",
|
|
"org.junit.jupiter:junit-jupiter:5.10.1",
|
|
"org.junit.platform:junit-platform-console:1.10.1",
|
|
"org.junit.platform:junit-platform-launcher:1.10.1",
|
|
"org.junit.platform:junit-platform-reporting:1.10.1",
|
|
"org.hamcrest:hamcrest-all:1.3",
|
|
"com.googlecode.junit-toolbox:junit-toolbox:2.4",
|
|
"org.apache.ant:ant:1.10.12",
|
|
"org.apache.ant:ant-junit:1.10.12",
|
|
"org.mockito:mockito-core:4.1.0",
|
|
"com.google.testing.compile:compile-testing:0.21.0",
|
|
],
|
|
lock_file = "//:maven_install.json",
|
|
repositories = [
|
|
"https://repo1.maven.org/maven2",
|
|
"https://frcmaven.wpi.edu/artifactory/release/",
|
|
],
|
|
)
|
|
use_repo(maven, "maven", "unpinned_maven")
|
|
|
|
bazel_dep(name = "caseyduquettesc_rules_python_pytest", version = "1.1.1", repo_name = "rules_python_pytest")
|
|
bazel_dep(name = "eigen", version = "5.0.1")
|
|
local_path_override(
|
|
module_name = "eigen",
|
|
path = "wpimath/src/main/native/thirdparty/eigen/include",
|
|
)
|
|
|
|
bazel_dep(name = "rules_license", version = "1.0.0")
|
|
|
|
http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
|
|
|
|
http_file(
|
|
name = "quickbuffer_protoc_linux",
|
|
executable = True,
|
|
sha256 = "02767f5f662720c121dfaaa9109aefa9b0b1e2415cbe1af9e4713a7b00663696",
|
|
urls = ["https://repo1.maven.org/maven2/us/hebi/quickbuf/protoc-gen-quickbuf/1.3.3/protoc-gen-quickbuf-1.3.3-linux-x86_64.exe"],
|
|
)
|
|
|
|
http_file(
|
|
name = "quickbuffer_protoc_osx_x86-64",
|
|
executable = True,
|
|
sha256 = "cdc0b4b188f944dddd4430bcd6f6266ca1aaf8c33940d7bee1ed63fc962d8525",
|
|
urls = ["https://repo1.maven.org/maven2/us/hebi/quickbuf/protoc-gen-quickbuf/1.3.3/protoc-gen-quickbuf-1.3.3-osx-x86_64.exe"],
|
|
)
|
|
|
|
http_file(
|
|
name = "quickbuffer_protoc_osx_aarch64",
|
|
executable = True,
|
|
sha256 = "95fa0a22ad2d9fa8f84a31cf3a0670b18c0ad954f73035f60cfb77c2814fb41c",
|
|
urls = ["https://repo1.maven.org/maven2/us/hebi/quickbuf/protoc-gen-quickbuf/1.3.3/protoc-gen-quickbuf-1.3.3-osx-aarch_64.exe"],
|
|
)
|
|
|
|
http_file(
|
|
name = "quickbuffer_protoc_windows",
|
|
executable = True,
|
|
sha256 = "8a30b2eaebefbedc3b592118670de1ab6ea1aa19dcf8cdab220e25485ccd4a0a",
|
|
urls = ["https://repo1.maven.org/maven2/us/hebi/quickbuf/protoc-gen-quickbuf/1.3.3/protoc-gen-quickbuf-1.3.3-windows-x86_64.exe"],
|
|
)
|
|
|
|
bazel_dep(name = "rules_bzlmodrio_toolchains", version = "2025-1.bcr6")
|
|
archive_override(
|
|
module_name = "rules_bzlmodrio_toolchains",
|
|
integrity = "sha256-ECtFB2KOlySwweRBcndiw0TkAXD2WsYFFhaBeOozqJo=",
|
|
urls = ["https://github.com/wpilibsuite/rules_bzlmodrio_toolchains/releases/download/2025-1.bcr6/rules_bzlmodrio_toolchains-2025-1.bcr6.tar.gz"],
|
|
)
|
|
|
|
bazel_dep(name = "protobuf", version = "32.1", repo_name = "com_google_protobuf")
|
|
|
|
http_jar = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_jar")
|
|
|
|
http_jar(
|
|
name = "com_github_google_copybara",
|
|
integrity = "sha256-IHW6y6WXJFjX9RYD+IwVAMwAbEo36fLqonIKR+FaqpQ=",
|
|
urls = ["https://github.com/google/copybara/releases/download/v20251027/copybara_deploy.jar"],
|
|
)
|