[recipes/meson2: 13/19] meson: Define macros in config.h for found-deps
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/meson2: 13/19] meson: Define macros in config.h for found-deps
- Date: Sat, 18 Feb 2017 19:58:29 +0000 (UTC)
commit a8d917c03bf16d2a5db9f716bbbc2f890aac8bd7
Author: Nirbheek Chauhan <nirbheek centricular com>
Date: Sat Feb 18 23:04:18 2017 +0530
meson: Define macros in config.h for found-deps
Same concept as Autotools
meson.build | 24 +++++++++++++++++++++---
1 files changed, 21 insertions(+), 3 deletions(-)
---
diff --git a/meson.build b/meson.build
index 86727d9..b3e9f96 100644
--- a/meson.build
+++ b/meson.build
@@ -26,10 +26,28 @@ else
conf.set_quoted('LIBGD_INFO', 'unknown')
endif
+autoar_dep = dependency('gnome-autoar-0', required : false)
+if autoar_dep.found()
+ conf.set('ENABLE_AUTOAR', true)
+ conf.set_quoted('AUTOAR_VERSION', autoar_dep.version())
+endif
+
+gspell_dep = dependency('gspell-1', required : false)
+if gspell_dep.found()
+ conf.set('ENABLE_GSPELL', true)
+ conf.set_quoted('GSPELL_VERSION', gspell_dep.version())
+endif
+
+canberra_dep = dependency('libcanberra', required : false)
+if canberra_dep.found()
+ conf.set('ENABLE_CANBERRA', true)
+ conf.set_quoted('CANBERRA_VERSION', canberra_dep.version())
+endif
+
deps = [ dependency('gtk+-3.0'),
- dependency('gnome-autoar-0'),
- dependency('gspell-1'),
- dependency('libcanberra'),
+ autoar_dep,
+ gspell_dep,
+ canberra_dep,
libgd_dep ]
pkgdatadir = join_paths([ get_option('prefix'),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]