[gtk] build: Fix checks on enabled print backends
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] build: Fix checks on enabled print backends
- Date: Mon, 19 Feb 2018 02:10:21 +0000 (UTC)
commit 809603c16c2f164ae95241309239c8ed2b3fc003
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Feb 19 02:06:11 2018 +0000
build: Fix checks on enabled print backends
The enabled print backends are a boolean, not a 'yes/no' string.
modules/printbackends/meson.build | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/modules/printbackends/meson.build b/modules/printbackends/meson.build
index e3b346875f..f8a363a668 100644
--- a/modules/printbackends/meson.build
+++ b/modules/printbackends/meson.build
@@ -16,7 +16,7 @@ print_backends = ['file']
# Checks to see if we should compile with CUPS backend for GTK+
enable_cups = enabled_print_backends.contains('cups')
-if enable_cups != 'no'
+if enable_cups
want_cups = enable_cups == 'yes'
#cups_config = find_program('cups-config', required : want_cups)
#if cups_config.found()
@@ -52,7 +52,7 @@ endif
# Checks to see if we should compile with cloudprint backend for GTK+
enable_cloudprint = enabled_print_backends.contains('cloudprint')
-if enable_cloudprint != 'no'
+if enable_cloudprint
want_cloudprint = enable_cloudprint == 'yes'
rest_dep = dependency('rest-0.7', required : want_cloudprint)
json_glib_dep = dependency('json-glib-1.0', required : want_cloudprint)
@@ -82,8 +82,6 @@ endif
printbackends_subdir = 'gtk-4.0/@0@/printbackends'.format(gtk_binary_version)
printbackends_install_dir = join_paths(get_option('libdir'), printbackends_subdir)
-message('Print backends: ' + ' '.join(print_backends))
-
cdata.set_quoted('GTK_PRINT_BACKENDS', ','.join(print_backends))
foreach print_backend : print_backends
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]