[libcamera-devel] [PATCH v3] meson: options: Add an option to control compilation of qcam
Niklas Söderlund
niklas.soderlund at ragnatech.se
Mon Jun 22 15:29:48 CEST 2020
Add an option to control compilation of the qcam test application. The
default behavior is to compile qcam, no change in behavior without user
intervention.
Signed-off-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
* Changes since v2
- Default to auto instead of enabled.
* Changes since v1
- Sort options alphabetical in meson_options.txt
- Use feature instead of boolean and attach it to the qt5_dep
---
meson_options.txt | 5 +++++
src/qcam/meson.build | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/meson_options.txt b/meson_options.txt
index badace151bb62bc9..e9e815fde366c89d 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -19,6 +19,11 @@ option('pipelines',
choices : ['ipu3', 'raspberrypi', 'rkisp1', 'simple', 'uvcvideo', 'vimc'],
description : 'Select which pipeline handlers to include')
+option('qcam',
+ type : 'feature',
+ value : 'auto',
+ description : 'Compile the qcam test application')
+
option('test',
type : 'boolean',
description: 'Compile and include the tests')
diff --git a/src/qcam/meson.build b/src/qcam/meson.build
index 045db52acf26d71b..6ea886a32236d40f 100644
--- a/src/qcam/meson.build
+++ b/src/qcam/meson.build
@@ -22,7 +22,7 @@ qt5 = import('qt5')
qt5_dep = dependency('qt5',
method : 'pkg-config',
modules : ['Core', 'Gui', 'Widgets'],
- required : false)
+ required : get_option('qcam'))
if qt5_dep.found()
qcam_deps = [
--
2.27.0
More information about the libcamera-devel
mailing list