1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00

build: add internal otr dependency

We need to add the header files to the include dir conditionally too.
This commit is contained in:
Michael Vetter 2021-12-01 18:49:12 +01:00
parent 46857e84c9
commit 65ee9e8886
2 changed files with 5 additions and 4 deletions

View File

@ -106,6 +106,7 @@ profanity = executable('profanity',
curses_dep, curses_dep,
notify_dep, notify_dep,
otr_dep, otr_dep,
otr_internal_dep,
pgp_dep, pgp_dep,
omemo_libsignal_dep, omemo_libsignal_dep,
omemo_gcrypt_dep, omemo_gcrypt_dep,

View File

@ -83,11 +83,11 @@ if pgp_dep.found()
sources += 'src/pgp/gpg.c' sources += 'src/pgp/gpg.c'
endif endif
otr_internal_dep = declare_dependency()
if otr_dep.found() if otr_dep.found()
otr_sources = [ 'src/otr/otrlibv4.c', otr_sources = [ 'src/otr/otrlibv4.c',
'src/otr/otr.c', 'src/otr/otr.c',
] ]
incdir += include_directories('otr')
sources += otr_sources otr_internal_dep = declare_dependency(sources: otr_sources, include_directories: include_directories('otr'), dependencies: otr_dep)
endif endif