[libcamera-devel] [PATCH] meson: Add 'all' choice to pipelines option

Paul Elder paul.elder at ideasonboard.com
Wed Dec 28 23:57:10 CET 2022


Add an 'all' choice to the pipelines option, for building all pipelines.

Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>

---
This patch depends on "meson: options: Fix typo in pipelines
documentation" [1]

[1] https://patchwork.libcamera.org/patch/18076/

This way we don't have to update buildbot scripts every time we add a
new pipeline handler (unless it doens't happen often enough that we
don't need this option).

The pipelines need to be explicitly listed for meson to build them.
---
 meson.build       | 12 ++++++++++++
 meson_options.txt |  3 ++-
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index df9099d0..4e5c417d 100644
--- a/meson.build
+++ b/meson.build
@@ -181,6 +181,18 @@ if pipelines.contains('auto')
     pipelines += ['uvcvideo']
 endif
 
+if pipelines.contains('all')
+    pipelines = [
+        'imx8-isi',
+        'ipu3',
+        'raspberrypi',
+        'rkisp1',
+        'simple',
+        'uvcvideo',
+        'vimc'
+    ]
+endif
+
 if get_option('test') and 'vimc' not in pipelines
     message('Enabling vimc pipeline handler to support tests')
     pipelines += ['vimc']
diff --git a/meson_options.txt b/meson_options.txt
index 793cda93..2443acf3 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -39,6 +39,7 @@ option('pipelines',
         type : 'array',
         value : ['auto'],
         choices : [
+            'all',
             'auto',
             'imx8-isi',
             'ipu3',
@@ -48,7 +49,7 @@ option('pipelines',
             'uvcvideo',
             'vimc'
         ],
-        description : 'Select which pipeline handlers to build. If this is set to auto, all the pipelines applicable to the target architecture will be built.')
+        description : 'Select which pipeline handlers to build. If this is set to auto, all the pipelines applicable to the target architecture will be built. If this is set to all, all the pipelines will be built. ')
 
 option('qcam',
         type : 'feature',
-- 
2.35.1



More information about the libcamera-devel mailing list