Still working on a rule building xmlsec1
, I'm trying to define .la
files to be part of my build artifacts:
configure_make(
name="xmlsec1",
lib_name="xmlsec1",
lib_source=":all_srcs",
configure_command="configure",
configure_in_place=True,
deps=["@openssl"],
out_binaries=["xmlsec1"],
out_shared_libs=[
"libxmlsec1.so",
"libxmlsec1-openssl.so",
"libxmlsec1-openssl.la",
],
targets=["install"],
)
But Bazel doesn't seem to like that - listing both, the .so
and .la
file Bazel complains Can not have libraries with the same name in the same category
. Listing the .la
file alone uncovers Bazel doesn't even like the extensions:
Error in create_library_to_link: 'libxmlsec1-openssl.la' does not have any of the allowed extensions .so, .dylib or .dll
The documentation doesn't seem to cover this use case. And while there is a out_data_dirs
(which seemingly allows to export files of arbitrary type) option, you can't list single files, only directories..
With configure_make
, isn't there a way to let build artifacts contain arbitrary files, or .la
files in particular?