render/color: add fallback stub when LCMS2 is disabled

It's cumbersome for compositors to guard every
wlr_color_transform_ref() or wlr_color_transform_unref() call
behind a #if WLR_HAS_COLOR_MANAGEMENT. Moreover, none of the LCMS2
types are used in our public API.

Instead, always install the color.h header, and add a stub for
wlr_color_transform_init_linear_to_icc().
This commit is contained in:
Simon Ser 2024-05-24 10:10:56 +02:00 committed by Kirill Primak
parent 95ac3e9924
commit 6d07193bda
3 changed files with 11 additions and 3 deletions

View file

@ -20,9 +20,6 @@ endif
if not features.get('vulkan-renderer')
exclude_files += 'render/vulkan.h'
endif
if not features.get('color-management')
exclude_files += 'render/color.h'
endif
if not features.get('session')
exclude_files += 'backend/session.h'
endif