Skip to content

Commit

Permalink
add support for linux static libs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpisciuneri committed Mar 23, 2023
1 parent aae5a3e commit 20c7484
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)
3 changes: 3 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 20c7484

Please sign in to comment.