Commit 191c453f authored by Pekka Paalanen's avatar Pekka Paalanen Committed by Daniel Stone

meson: link cms-colord with glib and gobject

cms-colord.c calls things like g_string_free() and g_object_unref(), so it
needs to link glib-2.0 and gobject-2.0 explicitly, instead of relying on colord
pkg-config bringing them in.
Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <>
parent cbffca98
......@@ -117,11 +117,21 @@ if get_option('color-management-colord')
error('cms-colord requires colord >= 0.1.27 which was not found. Or, you can use \'-Dcolor-management-colord=false\'.')
plugin_colord_deps = [ dep_libweston, dep_colord ]
foreach depname : [ 'glib-2.0', 'gobject-2.0' ]
dep = dependency(depname, required: false)
if not dep.found()
error('cms-colord requires \'@0@\' which was not found. If you rather not build this, set \'-Dcolor-management-colord=false\'.'.format(depname))
plugin_colord_deps += dep
plugin_colord = shared_library(
include_directories: include_directories('..', '../shared'),
dependencies: [ dep_libweston, dep_colord ],
dependencies: plugin_colord_deps,
name_prefix: '',
install: true,
install_dir: dir_module_weston
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment