Fix messaging menu dep so it actually gets found and built
This commit is contained in:
parent
9e44188240
commit
73e894cd72
2 changed files with 17 additions and 2 deletions
17
meson.build
17
meson.build
|
|
@ -105,9 +105,24 @@ endif
|
||||||
# Optional dependencies
|
# Optional dependencies
|
||||||
appstream_util = find_program('appstream-util', required: false)
|
appstream_util = find_program('appstream-util', required: false)
|
||||||
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
||||||
libmessagingmenu = dependency('libmessaging-menu', version: '>= 12.10', required: false)
|
libmessagingmenu_dep = dependency('messaging-menu', version: '>= 12.10', required: false)
|
||||||
libunity = dependency('unity', version: '>= 5.12.0', required: false)
|
libunity = dependency('unity', version: '>= 5.12.0', required: false)
|
||||||
|
|
||||||
|
if libmessagingmenu_dep.found()
|
||||||
|
# The libmessagingmenu dependency above determines if the lib is
|
||||||
|
# present, but since it uses a broken name for its VAPI we have to
|
||||||
|
# find that and the C libs separately.
|
||||||
|
libmessagingmenu = declare_dependency(
|
||||||
|
include_directories: include_directories(
|
||||||
|
libmessagingmenu_dep.get_pkgconfig_variable('includedir')
|
||||||
|
),
|
||||||
|
dependencies: [
|
||||||
|
valac.find_library('MessagingMenu-1.0', dirs: [ '/usr/share/vala/vapi' ]),
|
||||||
|
cc.find_library('messaging-menu')
|
||||||
|
],
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
# Ensure SQLite was built correctly
|
# Ensure SQLite was built correctly
|
||||||
if not cc.has_header_symbol('sqlite3.h', 'SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER', dependencies: sqlite)
|
if not cc.has_header_symbol('sqlite3.h', 'SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER', dependencies: sqlite)
|
||||||
error('SQLite3 is missing FTS3 tokenizer support. Please compile it with -DSQLITE_ENABLE_FTS3.\n'
|
error('SQLite3 is missing FTS3 tokenizer support. Please compile it with -DSQLITE_ENABLE_FTS3.\n'
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ geary_client_dependencies = [
|
||||||
|
|
||||||
geary_client_vala_options = geary_vala_options
|
geary_client_vala_options = geary_vala_options
|
||||||
|
|
||||||
if libmessagingmenu.found()
|
if libmessagingmenu_dep.found()
|
||||||
geary_client_dependencies += libmessagingmenu
|
geary_client_dependencies += libmessagingmenu
|
||||||
geary_client_vala_options += ['-D', 'HAVE_LIBMESSAGINGMENU']
|
geary_client_vala_options += ['-D', 'HAVE_LIBMESSAGINGMENU']
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue