From 412c2225b172ffc8e5d4476a618ca5c87bb12b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 22 Mar 2017 18:25:09 +0000 Subject: meson: move colord checks into cups printbackend Which is the only user of it. Also add option to enable/disable. --- modules/printbackends/cups/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/printbackends/cups/meson.build b/modules/printbackends/cups/meson.build index a709a9f5c2..08c115424d 100644 --- a/modules/printbackends/cups/meson.build +++ b/modules/printbackends/cups/meson.build @@ -1,3 +1,12 @@ +enable_colord = get_option('enable-colord') +if enable_colord != 'no' + want_colord = enable_colord == 'yes' + colord_dep = dependency('colord', version: '>= 0.1.9', required: want_colord) + cdata.set('HAVE_COLORD', colord_dep.found()) +else + colord_dep = [] +endif + shared_module('printbackend-cups', 'gtkprintbackendcups.c', 'gtkprintercups.c', -- cgit v1.2.1