diff --git a/BUILD b/BUILD index 0a0c5e5..505ecb4 100644 --- a/BUILD +++ b/BUILD @@ -7,6 +7,11 @@ cmake( "OPENBLAS_PROVIDES_LAPACK": "true", }, lib_source = "@net_sourceforge_projects_arma//:all-src", + out_data_dirs = ["share"], + out_static_libs = select({ + "@bazel_tools//src/conditions:linux": ["libarmadillo.a"], + "@bazel_tools//src/conditions:windows": ["armadillo.lib"], + }), visibility = ["//visibility:public"], deps = ["@openblas"], ) diff --git a/WORKSPACE b/WORKSPACE index 1cee0d2..247e9b8 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -2,10 +2,13 @@ workspace(name = "armadillo") ## Below included for building examples load("@armadillo//armadillo:deps.bzl", "rules_armadillo_dependencies") + rules_armadillo_dependencies() load("@openblas//openblas:deps.bzl", "rules_openblas_dependencies") + rules_openblas_dependencies() load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") + rules_foreign_cc_dependencies()