diff options
Diffstat (limited to 'src/libnm-core-impl/meson.build')
-rw-r--r-- | src/libnm-core-impl/meson.build | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/src/libnm-core-impl/meson.build b/src/libnm-core-impl/meson.build index b4a257e9ec..15d8e2787e 100644 --- a/src/libnm-core-impl/meson.build +++ b/src/libnm-core-impl/meson.build @@ -2,20 +2,39 @@ libnm_core_impl_inc = include_directories('.') -# FIXME: compile both crypto backends. -libnm_crypto = static_library( - 'nm-crypto', - sources: 'nm-crypto-@0@.c'.format(crypto), +libnm_crypto_nss = static_library( + 'nm-crypto-nss', + sources: 'nm-crypto-nss.c', dependencies: [ libnm_core_public_dep, - crypto_dep, libnm_glib_aux_dep_link, + crypto_nss_dep, ], c_args: [ '-DG_LOG_DOMAIN="libnm"', ], ) +libnm_crypto_gnutls = static_library( + 'nm-crypto-gnutls', + sources: 'nm-crypto-gnutls.c', + dependencies: [ + libnm_core_public_dep, + libnm_glib_aux_dep_link, + crypto_gnutls_dep, + ], + c_args: [ + '-DG_LOG_DOMAIN="libnm"', + ], +) + +if crypto == 'nss' + libnm_crypto = libnm_crypto_nss +else + assert(crypto == 'gnutls', 'Unexpected setting "crypto=' + crypto + '"') + libnm_crypto = libnm_crypto_gnutls +endif + libnm_core_settings_sources = files( 'nm-setting-6lowpan.c', 'nm-setting-8021x.c', |