1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-16 21:35:24 +00:00

build: add conditional omemo sources

This commit is contained in:
Michael Vetter 2021-12-01 19:46:34 +01:00
parent a1f883d48d
commit 28476e578b
2 changed files with 14 additions and 0 deletions

View File

@ -110,6 +110,7 @@ profanity = executable('profanity',
pgp_dep,
omemo_libsignal_dep,
omemo_gcrypt_dep,
omemo_internal_dep,
screensaver_xss_dep,
screensaver_x11_dep,
icons_clipboard_gtk_dep,

View File

@ -93,3 +93,16 @@ if otr_dep.found()
otr_internal_dep = declare_dependency(sources: otr_sources, include_directories: include_directories('otr'), dependencies: otr_dep)
endif
omemo_internal_dep = declare_dependency()
if omemo_libsignal_dep.found() and omemo_gcrypt_dep.found()
omemo_sources = [ files('omemo/omemo.c',
'omemo/crypto.c',
'omemo/store.c',
'xmpp/omemo.c',
'tools/aesgcm_download.c'
)
]
omemo_internal_dep = declare_dependency(sources: omemo_sources, include_directories: include_directories('omemo'))
endif