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.log
under$(GENDIR)/armadillo_foreign_cc
for any errors. Usebazel info --show_make_env
if you are unsure ofGENDIR
. - Then, clone this repository.
- Replace the
http_archive
function with alocal_repository
function pointing to the cloned repo inWORKSPACE
. - Adjust the
cmake
rule inBUILD
with 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.