Skip to content

build/meson: only build crypto libraries based on configuration

Maxine Aubrey requested to merge amaxine/NetworkManager:fix_crypto_dep into main

When updating NetworkManager to 1.32.x releases in nixos, I ran into a problem where regardless of what cryptography library was configured to be used, both libnm-crypto-nss and libnm-crypto-gnutls would get built.

These changes to meson seemed to resolve the problem, though I will note I am not 100% certain this is the right way to fix it.

Merge request reports