Fix meson build when libmessaging-menu is available.

Since libmessaging-menu has a either a broken pkg_config file or a dumb
VAPI name, we need to detect the library and the VAPI in two steps, then
add them both as dependencies.
This commit is contained in:
Michael James Gratton 2017-12-12 14:35:16 +11:00
parent cba778d6f7
commit afb236517f
2 changed files with 7 additions and 1 deletions

View file

@ -71,7 +71,7 @@ libunwind = declare_dependency(
)
libunity = dependency('unity', version: '>= 5.12.0', required: false)
libmessagingmenu = dependency('messaging-menu', version: '>= 12.10.2', required: false)
libmessagingmenu = meson.get_compiler('c').find_library('libmessaging-menu', required: false)
sqlite = dependency('sqlite3')
if sqlite.version().version_compare('>= 3.12')
if not cc.has_header_symbol('sqlite3.h', 'SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER')