aboutsummaryrefslogtreecommitdiff
path: root/libdino/meson.build
diff options
context:
space:
mode:
authorMarvin W <git@larma.de>2026-10-04 14:42:16 +0200
committerMarvin W <git@larma.de>2026-10-23 16:59:59 +0200
commitdba577f39c489b9db29960f2bf5cc78ac4f29d7b (patch)
treea8354c9fc328c1442d5e8c5c2adec4b428c92f44 /libdino/meson.build
parent2413442905e31f34cb0f77c9167003b3725760fe (diff)
Move OMEMO, OpenPGP and RTP plugins into main/libdino
Diffstat (limited to 'libdino/meson.build')
-rw-r--r--libdino/meson.build35
1 files changed, 35 insertions, 0 deletions
diff --git a/libdino/meson.build b/libdino/meson.build
index a3430200..05e2cfaf 100644
--- a/libdino/meson.build
+++ b/libdino/meson.build
@@ -111,6 +111,30 @@ elif crypto_backend == 'openssl'
)
endif
+if get_option('omemo').allowed() and dep_libomemo_c.found()
+ dependencies += [dep_libomemo_c]
+ sources += files(
+ 'src/crypto/omemo/context.vala',
+ 'src/crypto/omemo/helper.c',
+ 'src/crypto/omemo/simple_iks.vala',
+ 'src/crypto/omemo/simple_pks.vala',
+ 'src/crypto/omemo/simple_spks.vala',
+ 'src/crypto/omemo/simple_ss.vala',
+ 'src/crypto/omemo/store.vala',
+ 'src/crypto/omemo/util.vala',
+ )
+
+ if crypto_backend == 'gnu'
+ sources += files(
+ 'src/crypto/gnu/omemo.c',
+ )
+ elif crypto_backend == 'openssl'
+ sources += files(
+ 'src/crypto/openssl/omemo.c',
+ )
+ endif
+endif
+
c_args = vala_c_args + [
'-DDINO_SYSTEM_LIBDIR_NAME="@0@"'.format(get_option('prefix') / get_option('libdir')),
'-DDINO_SYSTEM_PLUGIN_DIR="@0@"'.format(get_option('prefix') / get_option('libdir') / get_option('plugindir')),
@@ -124,3 +148,14 @@ dep_dino = declare_dependency(link_with: lib_dino, include_directories: include_
install_data('dino.deps', install_dir: get_option('datadir') / 'vala/vapi', install_tag: 'devel') # TODO: workaround for https://github.com/mesonbuild/meson/issues/9756
install_headers('src/dino_i18n.h')
+
+test_sources = [
+ 'tests/common.vala',
+ 'tests/testcase.vala',
+
+ 'tests/curve25519.vala',
+ 'tests/hkdf.vala',
+ 'tests/session_builder.vala',
+]
+exe_lib_dino_test = executable('libdino-test', test_sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies + dep_dino, install: false)
+test('Tests for libdino', exe_lib_dino_test) \ No newline at end of file