Bazel build rules for Armadillo.
Uses rules_foreign_cc to do a CMake configuration, build, and install of Armadillo from source. This allows the user to include @armadillo in the deps argument in project BUILD files. See the examples folder for a simple example.
This leverages rules_openblas to first install OpenBLAS and enables LAPACK support for Armadillo.
For usage see the instructions with the latest release.
- Windows 10
- Ubuntu 20.04.5 LTS
If the CMake configuration or build encounters any errors I recommend:
- Checking the
CMake.logunder$(GENDIR)/armadillo_foreign_ccfor any errors. Usebazel info --show_make_envif you are unsure ofGENDIR. - Then, clone this repository.
- Replace the
http_archivefunction with alocal_repositoryfunction pointing to the cloned repo inWORKSPACE. - Adjust the
cmakerule inBUILDwith custom settings for your system.
- I'd like to expose options for the user to have more control over the cmake rule. For now, you are limited to default options.
- Expand portability to a broader range of systems and environments.