meson: Move egl related dependencies to software_isp subdir

This way the dependencies are only added if they are actually used.

Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Barnabás Pőcze
2026-01-29 17:29:43 +01:00
parent 626f7407ba
commit b83794d7eb
2 changed files with 10 additions and 7 deletions

View File

@@ -70,10 +70,6 @@ libcamera_deps = []
libatomic = cc.find_library('atomic', required : false)
libthreads = dependency('threads')
libegl = dependency('egl', required : false)
libglesv2 = dependency('glesv2', required : false)
mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl)
subdir('base')
subdir('converter')
subdir('ipa')
@@ -182,8 +178,6 @@ libcamera_deps += [
libcamera_base_private,
libcrypto,
libdl,
libegl,
libglesv2,
liblttng,
libudev,
libyaml,

View File

@@ -2,12 +2,17 @@
softisp_enabled = pipelines.contains('simple')
summary({'SoftISP support' : softisp_enabled}, section : 'Configuration')
summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration')
if not softisp_enabled
subdir_done()
endif
libegl = dependency('egl', required : false)
libglesv2 = dependency('glesv2', required : false)
mesa_works = cc.check_header('EGL/egl.h', required : false, dependencies : libegl)
summary({'SoftISP GPU acceleration' : mesa_works}, section : 'Configuration')
libcamera_internal_sources += files([
'benchmark.cpp',
'debayer.cpp',
@@ -22,4 +27,8 @@ if mesa_works
'../egl.cpp',
'debayer_egl.cpp',
])
libcamera_deps += [
libegl,
libglesv2,
]
endif