diff options
| author | Marvin W <git@larma.de> | 2026-10-04 16:25:40 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2026-10-23 16:59:59 +0200 |
| commit | a4fad16ee2a34cd523a1f242e60c41073a6006eb (patch) | |
| tree | 3d8128f6b4764cd870e901900dd2f7e076b117c0 /libdino | |
| parent | 2bcd658dcbd46f806eb06f0c1669a2487aa3a2a2 (diff) | |
Only add omemo tests when appropriate
Diffstat (limited to 'libdino')
| -rw-r--r-- | libdino/meson.build | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/libdino/meson.build b/libdino/meson.build index 05e2cfaf..0053d5ab 100644 --- a/libdino/meson.build +++ b/libdino/meson.build @@ -149,13 +149,15 @@ 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', +if get_option('omemo').allowed() and dep_libomemo_c.found() + 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 + 'tests/curve25519.vala', + 'tests/hkdf.vala', + 'tests/session_builder.vala', + ] + exe_lib_dino_test = executable('libdino-omemo-test', test_sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies + dep_dino, install: false) + test('Tests for libdino OMEMO', exe_lib_dino_test) +endif
\ No newline at end of file |
