diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-03-22 18:25:09 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2017-05-03 15:10:55 +0100 |
commit | 412c2225b172ffc8e5d4476a618ca5c87bb12b0f (patch) | |
tree | a32f0b974c1946409af83d147f7cc5874642c12b /modules | |
parent | d38db4dcddaec5a5b711f3de2fac7fe0786e46f1 (diff) | |
download | gtk+-412c2225b172ffc8e5d4476a618ca5c87bb12b0f.tar.gz |
meson: move colord checks into cups printbackend
Which is the only user of it. Also add option to enable/disable.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/printbackends/cups/meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
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', |