mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
build: add internal otr dependency
We need to add the header files to the include dir conditionally too.
This commit is contained in:
parent
46857e84c9
commit
65ee9e8886
@ -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,
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user