mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-30 07:11:07 +00:00
color: always set HAVE_LCMS when LittleCMS dependency is found
Up to now, HAVE_LCMS would be set only when users would build Weston with the deprecated cms-static enabled. But we'll start using this in libweston in the next commits, independently of cms-static being enabled or not. So always set HAVE_LCMS when the LittleCMS dependency is found. Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
parent
bac9060d54
commit
a2f99828fe
|
@ -103,8 +103,6 @@ if get_option('deprecated-color-management-static')
|
|||
error('cms-static requires lcms2 which was not found. Or, you can use \'-Ddeprecated-color-management-static=false\'.')
|
||||
endif
|
||||
|
||||
config_h.set('HAVE_LCMS', '1')
|
||||
|
||||
plugin_lcms = shared_library(
|
||||
'cms-static',
|
||||
srcs_lcms,
|
||||
|
|
|
@ -145,6 +145,9 @@ dep_libdrm_headers = dep_libdrm.partial_dependency(compile_args: true)
|
|||
dep_threads = dependency('threads')
|
||||
|
||||
dep_lcms2 = dependency('lcms2', version: '>= 2.9', required: false)
|
||||
if dep_lcms2.found()
|
||||
config_h.set('HAVE_LCMS', '1')
|
||||
endif
|
||||
|
||||
prog_python = import('python').find_installation('python3')
|
||||
files_xxd_py = files('tools/xxd.py')
|
||||
|
|
Loading…
Reference in a new issue