From 7ce10469ab9777a9b986f8232c39cb8acb62533a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 29 Jan 2026 16:32:45 +0100 Subject: [PATCH] meson: Remove `gles_headless_enabled` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the `mesa_works` variable instead to simplify, the two variables have the same value. Signed-off-by: Barnabás Pőcze Reviewed-by: Milan Zamazal Reviewed-by: Laurent Pinchart Reviewed-by: Bryan O'Donoghue --- src/libcamera/meson.build | 6 ------ src/libcamera/software_isp/meson.build | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 28ce93de..06ed3410 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -74,12 +74,6 @@ mesa_works = cc.check_header('EGL/egl.h', required: false) libegl = dependency('egl', required : false) libglesv2 = dependency('glesv2', required : false) -if mesa_works - gles_headless_enabled = true -else - gles_headless_enabled = false -endif - subdir('base') subdir('converter') subdir('ipa') diff --git a/src/libcamera/software_isp/meson.build b/src/libcamera/software_isp/meson.build index 4c61909f..118d3f92 100644 --- a/src/libcamera/software_isp/meson.build +++ b/src/libcamera/software_isp/meson.build @@ -2,7 +2,7 @@ softisp_enabled = pipelines.contains('simple') summary({'SoftISP support' : softisp_enabled}, section : 'Configuration') -summary({'SoftISP GPU acceleration' : gles_headless_enabled}, section : 'Configuration') +summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration') if not softisp_enabled subdir_done() @@ -16,7 +16,7 @@ libcamera_internal_sources += files([ 'swstats_cpu.cpp', ]) -if gles_headless_enabled +if mesa_works config_h.set('HAVE_DEBAYER_EGL', 1) libcamera_internal_sources += files([ '../egl.cpp',