[geary/wip/misc-build-fixes: 1/2] Fix messaging menu dep so it actually gets found and built
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/misc-build-fixes: 1/2] Fix messaging menu dep so it actually gets found and built
- Date: Fri, 19 Apr 2019 03:24:27 +0000 (UTC)
commit cd9ea1328244446f83896ffe76bbd4d5c129756c
Author: Michael Gratton <mike vee net>
Date: Fri Apr 19 13:19:07 2019 +1000
Fix messaging menu dep so it actually gets found and built
meson.build | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index 23162d87..dc5dd38a 100644
--- a/meson.build
+++ b/meson.build
@@ -105,9 +105,24 @@ endif
# Optional dependencies
appstream_util = find_program('appstream-util', 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)
+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
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'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]