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:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user