[bazel] Move the easy pieces of the build over to bzlmod (#8542)

bzlmod is the future, and makes it easier to depend on AOS.

---------

Signed-off-by: Austin Schuh <austin.linux@gmail.com>
This commit is contained in:
Austin Schuh
2026-01-12 14:30:31 -08:00
committed by GitHub
parent 0fd8210b5a
commit 1724e59f8d
14 changed files with 1166 additions and 444 deletions

View File

@@ -29,7 +29,12 @@ build:linux --host_cxxopt=-Wno-missing-requires
build:linux --host_cxxopt=-Wno-implicit-fallthrough
build:linux --host_per_file_copt=external/zlib/.*\.c@-Wno-deprecated-non-prototype
build:linux --host_per_file_copt=external/.*@-Wno-pedantic,-Wno-implicit-fallthrough,-Wno-format-nonliteral,-Wno-sign-compare,-Wno-sign-compare,-Wno-type-limits,-Wno-maybe-uninitialized,-Wno-missing-field-initializers,-Wno-trigraphs,-Wno-attributes,-Wno-return-type,-Wno-unused-function,-Wno-format-y2k,-Wno-deprecated-declarations
build:linux --host_per_file_copt=external/.*\.cpp$,external/.*\.cc$@-Wno-missing-requires,-Wno-volatile,-Wno-redundant-move,-Wno-class-memaccess,-Wno-ignored-qualifiers,-Wno-stringop-overflow,-Wno-extra
# Set soname. Needed for robotpy
build:linux --features=set_soname
build:linux --host_features=set_soname
build:linux --host_platform=//shared/bazel:linux_x86_64
build:linux --platforms=//shared/bazel:linux_x86_64