Bazelrio provides some nice convenience features.
- Easy cross compilation using official toolchains.
If you build a target and specify the roboRIO platform (ex
bazel build <target> --platforms=@bazelrio//platforms/roborio), bazelrio will download an official toolchain for your host and use it.
- Robot code rules.
Bazelrio provides a
robot_cc_binaryrule. Using this rule will generate a regular
cc_binarytarget as well as a runnable
<name>.deploytarget that you can run to deploy code (wip).
- Library targets.
cc_librarytargets for WPILib and (in the future) CTRE, Kauai, and REV libraries. You can easily dep
@bazelrio//libraries/wpilibcto include WPILib in your project.
- Works on macOS, Linux, and Windows.
This project is certainly a work in progress and contributions are welcome. I was heavily inspired by team 971 and 1678 so shoutouts to them as well.