mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson: allow building libcamera from source as a subproject
Many distributions provide outdated libcamera versions. This change should also help making changes to libcamera itself. System libcamera is kept a default to avoid breaking existing build processes relying to packaged libcamera.
This commit is contained in:
parent
6d712d17e7
commit
3d971b4024
4 changed files with 16 additions and 1 deletions
|
|
@ -89,7 +89,12 @@ if get_option('spa-plugins').allowed()
|
|||
vulkan_headers = cc.has_header('vulkan/vulkan.h', dependencies : vulkan_dep)
|
||||
#summary({'Vulkan': vulkan_headers}, bool_yn: true, section: 'Misc dependencies')
|
||||
|
||||
libcamera_dep = dependency('libcamera', required: get_option('libcamera'))
|
||||
if get_option('system-libcamera')
|
||||
libcamera_dep = dependency('libcamera', required: get_option('libcamera'))
|
||||
else
|
||||
libcamera_proj = subproject('libcamera')
|
||||
libcamera_dep = libcamera_proj.get_variable('libcamera_public')
|
||||
endif
|
||||
summary({'libcamera': libcamera_dep.found()}, bool_yn: true, section: 'Backend')
|
||||
|
||||
tinycompress_dep = cc.find_library('tinycompress', has_headers: ['tinycompress/tinycompress.h' ], required: get_option('compress-offload'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue