Add an option to build weston color management module.

Signed-off-by: Benjamin Gaignard <[email protected]>
---
 rules/weston.in   | 5 +++++
 rules/weston.make | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/rules/weston.in b/rules/weston.in
index 10f0e9172..d8e1e8e25 100644
--- a/rules/weston.in
+++ b/rules/weston.in
@@ -40,6 +40,7 @@ menuconfig WESTON
        select PIPEWIRE                 if WESTON_BACKEND_PIPEWIRE
        select NEATVNC                  if WESTON_BACKEND_VNC
        select PAM                      if WESTON_BACKEND_VNC
+       select LCMS                     if WESTON_COLOR_MANAGEMENT_LCMS
        prompt "weston                        "
        help
          Wayland compositor reference implementation
@@ -129,4 +130,8 @@ config WESTON_TOUCH_CALIBRATOR
          Install weston-touch-calibrator tool, interface must be enabled in
          weston.ini.
 
+config WESTON_COLOR_MANAGEMENT_LCMS
+       bool
+       prompt "color management module"
+
 endif
diff --git a/rules/weston.make b/rules/weston.make
index 35ddab180..b44b661a7 100644
--- a/rules/weston.make
+++ b/rules/weston.make
@@ -45,7 +45,7 @@ WESTON_CONF_OPT               := \
        -Dbackend-vnc=$(call ptx/truefalse,PTXCONF_WESTON_BACKEND_VNC) \
        -Dbackend-wayland=$(call ptx/truefalse,PTXCONF_WESTON_GL) \
        -Dbackend-x11=false \
-       -Dcolor-management-lcms=false \
+       -Dcolor-management-lcms=$(call 
ptx/truefalse,PTXCONF_WESTON_COLOR_MANAGEMENT_LCMS) \
        -Ddemo-clients=$(call ptx/truefalse,PTXCONF_WESTON_IVISHELL_EXAMPLE) \
        -Ddeprecated-color-management-colord=false \
        -Ddeprecated-color-management-static=false \
-- 
2.43.0


Reply via email to