mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
build: use pgp and otr deps correctly
* Used the wrong define BUILD_PGP instead of HAVE_LIBGPGME * Need to add the sources conditionally
This commit is contained in:
parent
795c07cfb0
commit
46857e84c9
@ -57,7 +57,7 @@ if otr_dep.found()
|
|||||||
endif
|
endif
|
||||||
pgp_dep = dependency('gpgme', required : get_option('pgp'))
|
pgp_dep = dependency('gpgme', required : get_option('pgp'))
|
||||||
if pgp_dep.found()
|
if pgp_dep.found()
|
||||||
conf.set_quoted('BUILD_PGP', '1')
|
conf.set_quoted('HAVE_LIBGPGME', '1')
|
||||||
endif
|
endif
|
||||||
# TODO: HAVE_LIBSIGNAL_LT_2_3_2
|
# TODO: HAVE_LIBSIGNAL_LT_2_3_2
|
||||||
omemo_libsignal_dep = dependency('libsignal-protocol-c', version: '>= 2.3.2', required : get_option('pgp'))
|
omemo_libsignal_dep = dependency('libsignal-protocol-c', version: '>= 2.3.2', required : get_option('pgp'))
|
||||||
@ -96,7 +96,7 @@ subdir('src')
|
|||||||
# TODO: output build info
|
# TODO: output build info
|
||||||
|
|
||||||
profanity = executable('profanity',
|
profanity = executable('profanity',
|
||||||
core_sources_c,
|
sources,
|
||||||
dependencies : [ glib_dep,
|
dependencies : [ glib_dep,
|
||||||
gio_dep,
|
gio_dep,
|
||||||
curl_dep,
|
curl_dep,
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# main sources
|
||||||
core_sources_c = [ 'src/main.c',
|
core_sources_c = [ 'src/main.c',
|
||||||
'src/profanity.c',
|
'src/profanity.c',
|
||||||
'src/log.c',
|
'src/log.c',
|
||||||
@ -73,4 +74,20 @@ core_sources_c = [ 'src/main.c',
|
|||||||
config_h
|
config_h
|
||||||
]
|
]
|
||||||
|
|
||||||
|
sources = core_sources_c
|
||||||
incdir = include_directories('.', 'command', 'config', 'ui', 'plugins', 'xmpp')
|
incdir = include_directories('.', 'command', 'config', 'ui', 'plugins', 'xmpp')
|
||||||
|
|
||||||
|
# optional sources
|
||||||
|
|
||||||
|
if pgp_dep.found()
|
||||||
|
sources += 'src/pgp/gpg.c'
|
||||||
|
endif
|
||||||
|
|
||||||
|
if otr_dep.found()
|
||||||
|
otr_sources = [ 'src/otr/otrlibv4.c',
|
||||||
|
'src/otr/otr.c',
|
||||||
|
]
|
||||||
|
incdir += include_directories('otr')
|
||||||
|
|
||||||
|
sources += otr_sources
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user