aboutsummaryrefslogtreecommitdiff
path: root/plugins/omemo/meson.build
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2023-11-24 20:53:50 +0100
committerMarvin W <git@larma.de>2026-10-23 16:58:30 +0200
commit76a91fca2fc7dd5975e8ff0e6695f27c98539dba (patch)
tree7829340be71fe60ef847247e578c4589571fecc5 /plugins/omemo/meson.build
parentb013d28182ce582f229185c23b6011f566f1f8cc (diff)
Add support for OpenSSL
Uses work by @hrxi in https://github.com/dino/dino/pull/1515 Co-Authored-By: hrxi <hrrrxi@gmail.com>
Diffstat (limited to 'plugins/omemo/meson.build')
-rw-r--r--plugins/omemo/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/omemo/meson.build b/plugins/omemo/meson.build
index 8a00fb1a..d195525e 100644
--- a/plugins/omemo/meson.build
+++ b/plugins/omemo/meson.build
@@ -7,7 +7,6 @@ dependencies = [
dep_glib,
dep_gmodule,
dep_gtk4,
- dep_libgcrypt,
dep_libqrencode,
dep_libomemo_c,
dep_m,
@@ -62,6 +61,13 @@ c_args = vala_c_args + [
'-DGETTEXT_PACKAGE="dino-omemo"',
'-DLOCALE_INSTALL_DIR="@0@"'.format(get_option('prefix') / get_option('localedir')),
]
+if crypto_backend == 'gnutls'
+ dependencies += [ dep_libgcrypt ]
+ sources += files('src/native/helper_gcrypt.c')
+else
+ dependencies += [ dep_openssl ]
+ sources += files('src/native/helper_openssl.c')
+endif
vala_args = [
'--vapidir', meson.current_source_dir() / 'vapi',
# This is to build internal vapi for tests