mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
build: add conditional omemo sources
This commit is contained in:
parent
a1f883d48d
commit
28476e578b
@ -110,6 +110,7 @@ profanity = executable('profanity',
|
|||||||
pgp_dep,
|
pgp_dep,
|
||||||
omemo_libsignal_dep,
|
omemo_libsignal_dep,
|
||||||
omemo_gcrypt_dep,
|
omemo_gcrypt_dep,
|
||||||
|
omemo_internal_dep,
|
||||||
screensaver_xss_dep,
|
screensaver_xss_dep,
|
||||||
screensaver_x11_dep,
|
screensaver_x11_dep,
|
||||||
icons_clipboard_gtk_dep,
|
icons_clipboard_gtk_dep,
|
||||||
|
@ -93,3 +93,16 @@ if otr_dep.found()
|
|||||||
|
|
||||||
otr_internal_dep = declare_dependency(sources: otr_sources, include_directories: include_directories('otr'), dependencies: otr_dep)
|
otr_internal_dep = declare_dependency(sources: otr_sources, include_directories: include_directories('otr'), dependencies: otr_dep)
|
||||||
endif
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user