mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
Merge branch 'crypto-options' into 'master'
meson: Fix crypto option being silently ignored See merge request GNOME/libsecret!137
This commit is contained in:
commit
bf362eeef0
@ -1,4 +1,4 @@
|
|||||||
image: registry.gitlab.gnome.org/gnome/libsecret/master:v5
|
image: registry.gitlab.gnome.org/gnome/libsecret/master:v6
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
18
meson.build
18
meson.build
@ -41,25 +41,19 @@ if get_option('crypto') == 'libgcrypt'
|
|||||||
gcrypt_dep = dependency(
|
gcrypt_dep = dependency(
|
||||||
'libgcrypt',
|
'libgcrypt',
|
||||||
version: '>=' + min_libgcrypt_version,
|
version: '>=' + min_libgcrypt_version,
|
||||||
required: false,
|
|
||||||
)
|
)
|
||||||
if gcrypt_dep.found()
|
with_gcrypt = true
|
||||||
with_gcrypt = true
|
with_crypto = true
|
||||||
with_crypto = true
|
crypto_deps += gcrypt_dep
|
||||||
crypto_deps += gcrypt_dep
|
|
||||||
endif
|
|
||||||
elif get_option('crypto') == 'gnutls'
|
elif get_option('crypto') == 'gnutls'
|
||||||
min_gnutls_version = '3.8.2'
|
min_gnutls_version = '3.8.2'
|
||||||
gnutls_dep = dependency(
|
gnutls_dep = dependency(
|
||||||
'gnutls',
|
'gnutls',
|
||||||
version: '>=' + min_gnutls_version,
|
version: '>=' + min_gnutls_version,
|
||||||
required: false,
|
|
||||||
)
|
)
|
||||||
if gnutls_dep.found()
|
with_gnutls = true
|
||||||
with_gnutls = true
|
with_crypto = true
|
||||||
with_crypto = true
|
crypto_deps += gnutls_dep
|
||||||
crypto_deps += gnutls_dep
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
min_tss2_version = '3.0.3'
|
min_tss2_version = '3.0.3'
|
||||||
|
Loading…
Reference in New Issue
Block a user