mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-24 12:30:11 +01: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
2 changed files with 3 additions and 2 deletions
|
|
@ -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\'.')
|
error('cms-static requires lcms2 which was not found. Or, you can use \'-Ddeprecated-color-management-static=false\'.')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config_h.set('HAVE_LCMS', '1')
|
|
||||||
|
|
||||||
plugin_lcms = shared_library(
|
plugin_lcms = shared_library(
|
||||||
'cms-static',
|
'cms-static',
|
||||||
srcs_lcms,
|
srcs_lcms,
|
||||||
|
|
|
||||||
|
|
@ -145,6 +145,9 @@ dep_libdrm_headers = dep_libdrm.partial_dependency(compile_args: true)
|
||||||
dep_threads = dependency('threads')
|
dep_threads = dependency('threads')
|
||||||
|
|
||||||
dep_lcms2 = dependency('lcms2', version: '>= 2.9', required: false)
|
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')
|
prog_python = import('python').find_installation('python3')
|
||||||
files_xxd_py = files('tools/xxd.py')
|
files_xxd_py = files('tools/xxd.py')
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue