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:
Dmitry Sharshakov 2022-11-09 08:41:38 +03:00 committed by Wim Taymans
parent 6d712d17e7
commit 3d971b4024
4 changed files with 16 additions and 1 deletions

View file

@ -168,6 +168,8 @@ option('libcamera',
description: 'Enable libcamera spa plugin integration',
type: 'feature',
value: 'auto')
option('system-libcamera', type : 'boolean', value : 'true',
description : 'Use libcamera from the system instead of building from source')
option('videoconvert',
description: 'Enable videoconvert spa plugin integration',
type: 'feature',