meson: support building .standalone variants for shared modules

Extend the module building logic to automatically generate '.standalone'
variants for non-NSS/PAM shared modules (such as cryptsetup tokens).

Like standalone executables, these are not built by default to keep
the base build time unaffected, but can be built explicitly on demand
via `ninja <module_name>.standalone`.
This commit is contained in:
Yu Watanabe
2026-07-10 16:29:54 +09:00
parent 1f76654f94
commit 39d00e1d20
2 changed files with 35 additions and 1 deletions
@@ -9,7 +9,6 @@ lib_cryptsetup_token_common = static_library(
libcryptsetup_cflags,
userspace,
],
link_with : libshared,
build_by_default : false)
cryptsetup_token_systemd_tpm2_sources = files(