spa: meson.build: only look for libcamera under one name

Commit d06a2e2140
added support for finding libcamera under two different
names. However, due to breaking changes in libcamera[1],
the current codebase only supports the latest version,
thus drop support for the old name.

[1]: see commit 57dae3e2b3
This commit is contained in:
Barnabás Pőcze 2021-12-28 16:13:58 +01:00
parent 2b110af366
commit 92a259470c

View file

@ -58,14 +58,7 @@ if not get_option('spa-plugins').disabled()
vulkan_headers = cc.has_header('vulkan/vulkan.h', dependencies : vulkan_dep) vulkan_headers = cc.has_header('vulkan/vulkan.h', dependencies : vulkan_dep)
#summary({'Vulkan': vulkan_headers}, bool_yn: true, section: 'Misc dependencies') #summary({'Vulkan': vulkan_headers}, bool_yn: true, section: 'Misc dependencies')
if not get_option('libcamera').disabled() libcamera_dep = dependency('libcamera', required: get_option('libcamera'))
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') summary({'libcamera': libcamera_dep.found()}, bool_yn: true, section: 'Backend')
# common dependencies # common dependencies