diff --git a/spa/meson.build b/spa/meson.build index 91308d2de..e13802e94 100644 --- a/spa/meson.build +++ b/spa/meson.build @@ -39,7 +39,15 @@ if not get_option('spa-plugins').disabled() vulkan_dep = dependency('vulkan', disabler : true, version : '>= 1.1.69', required: get_option('vulkan')) vulkan_headers = cc.has_header('vulkan/vulkan.h', dependencies : vulkan_dep) #summary({'Vulkan': vulkan_headers}, bool_yn: true, section: 'Misc dependencies') - libcamera_dep = dependency('camera', required: get_option('libcamera')) + + if not get_option('libcamera').disabled() + libcamera_dep = dependency('libcamera', required: false) + if not libcamera_dep.found() + libcamera_dep = dependency('camera', required: get_option('libcamera')) + endif + else + libcamera_dep = dependency('', required: false) + endif summary({'libcamera': libcamera_dep.found()}, bool_yn: true, section: 'Backend') # common dependencies