From 41544e2467dbe53051df2999ffd0f371a0095878 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 1 Dec 2021 19:50:55 +0100 Subject: [PATCH] build: set HAVE_LIBSIGNAL_LT_2_3_2 in meson See https://github.com/profanity-im/profanity/pull/1619#discussion_r760472475 --- meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 13cb4f98..43caa232 100644 --- a/meson.build +++ b/meson.build @@ -59,9 +59,11 @@ pgp_dep = dependency('gpgme', required : get_option('pgp')) if pgp_dep.found() conf.set_quoted('HAVE_LIBGPGME', '1') endif -# TODO: HAVE_LIBSIGNAL_LT_2_3_2 omemo_libsignal_dep = dependency('libsignal-protocol-c', version: '>= 2.3.2', required : get_option('omemo')) -omemo_gcrypt_dep = dependency('libsignal-protocol-c', version: '>= 1.7.0', required : get_option('omemo')) +if omemo_libsignal_dep.version().version_compare('< 2.3.2') + conf.set_quoted('HAVE_LIBSIGNAL_LT_2_3_2', '1') +endif +omemo_gcrypt_dep = dependency('gcrypt', version: '>= 1.7.0', required : get_option('omemo')) if omemo_libsignal_dep.found() and omemo_gcrypt_dep.found() conf.set_quoted('HAVE_OMEMO', '1') endif