build/meson: only build crypto libraries based on configuration
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.