summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2017-05-16 11:02:10 +0100
committerRichard Hughes <richard@hughsie.com>2017-05-16 11:09:51 +0100
commitdf09f43f23e94df42b3c85d6845c176bbfd32075 (patch)
tree9c9592695059be04a209909af994f8f5ed4693e8
parentb425d3e292f0197f8507b59e707fe9a314dac8c1 (diff)
downloadappstream-glib-df09f43f23e94df42b3c85d6845c176bbfd32075.tar.gz
trivial: Ensure HAVE_GCAB is set when libgcab is being used
-rw-r--r--libappstream-glib/as-store.c2
-rw-r--r--meson.build4
2 files changed, 5 insertions, 1 deletions
diff --git a/libappstream-glib/as-store.c b/libappstream-glib/as-store.c
index afc717b..080c611 100644
--- a/libappstream-glib/as-store.c
+++ b/libappstream-glib/as-store.c
@@ -2011,7 +2011,7 @@ as_store_from_bytes (AsStore *store,
g_set_error (error,
AS_STORE_ERROR,
AS_STORE_ERROR_FAILED,
- "no firmware support, compiled with --disable-firmware");
+ "not supported, compiled without gcab");
return FALSE;
#endif
}
diff --git a/meson.build b/meson.build
index 7cbc5a1..82ffa47 100644
--- a/meson.build
+++ b/meson.build
@@ -57,6 +57,10 @@ gdk = dependency('gdk-3.0')
gdkpixbuf = dependency('gdk-pixbuf-2.0', version : '>= 2.31.5')
libgcab = dependency('libgcab-1.0', required : false)
+if libgcab.found()
+ conf.set('HAVE_GCAB', 1)
+endif
+
# builder (default enabled)
if get_option('enable-builder')
gtk = dependency('gtk+-3.0')