From c599555d143fdf7444d9b587b61fc089ef4b6f87 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 7 Dec 2016 08:15:04 +0000 Subject: f --- libappstream-builder/meson.build | 12 +++++++++++- libappstream-glib/meson.build | 3 ++- meson.build | 2 -- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/libappstream-builder/meson.build b/libappstream-builder/meson.build index f13f130..ed9c4ea 100644 --- a/libappstream-builder/meson.build +++ b/libappstream-builder/meson.build @@ -8,7 +8,17 @@ asbuilder_cargs = [ ), ] -deps = [glib, gmodule, gdkpixbuf, libarchive, soup, yaml] +deps = [ + glib, + gmodule, + gdkpixbuf, + libarchive, + soup +] + +if get_option('enable-dep11') + deps = deps + [yaml] +endif if rpm.found() deps = deps + [rpm] diff --git a/libappstream-glib/meson.build b/libappstream-glib/meson.build index de3a487..acfcbb9 100644 --- a/libappstream-glib/meson.build +++ b/libappstream-glib/meson.build @@ -7,7 +7,7 @@ cargs = [ deps = [glib, gdkpixbuf, giounix, libarchive, soup, uuid, libgcab] -if yaml.found() +if get_option('enable-dep11') deps += yaml endif @@ -214,6 +214,7 @@ gnome.generate_gir(asglib, symbol_prefix : 'as_', identifier_prefix : 'As', export_packages : 'appstream-glib', + dependencies : deps, includes : [ 'GObject-2.0', 'Gio-2.0', diff --git a/meson.build b/meson.build index 31b4dbb..b04a9f3 100644 --- a/meson.build +++ b/meson.build @@ -75,8 +75,6 @@ endif if get_option('enable-dep11') yaml = dependency('yaml-0.1') conf.set('AS_BUILD_DEP11', 1) -else - yaml = dependency('yaml-0.1', required : false) endif # use gperf for faster string -> enum matching -- cgit v1.2.1