summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-05-03 13:20:26 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-05-04 19:10:22 +0300
commit46aefed208fef4bc8d6f6e8882b92b9af710a60b (patch)
tree6b6a63def34f466dc5e3f2009eb2ea3ba6006703
parente8526c0c2bc6f36663039cb8de740759cf9028d7 (diff)
pipeline: meson: Allow nested pipeline handler directory structures
The current pipeline handler build files require a flat directory struture for each pipeline handler. Modify the build files to remove this restriction and allow a directory structure such as: src/libcamera/pipeline/ |- raspberrypi |- common |- vc4 |- rkisp1 |- ipu3 where each subdir (e.g. raspberrypi/common, raspberrypi/vc4) has its own meson.build file. Such a directory structure will be introduced for the Raspberry Pi pipeline handler in a future commit. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline/meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/meson.build b/src/libcamera/pipeline/meson.build
index f14869f3..b6160d34 100644
--- a/src/libcamera/pipeline/meson.build
+++ b/src/libcamera/pipeline/meson.build
@@ -3,6 +3,15 @@
# Location of pipeline specific configuration files
pipeline_data_dir = libcamera_datadir / 'pipeline'
+# Allow multi-level directory structuring for the pipeline handlers if needed.
+subdirs = []
+
foreach pipeline : pipelines
+ pipeline = pipeline.split('/')[0]
+ if pipeline in subdirs
+ continue
+ endif
+
subdir(pipeline)
+ subdirs += pipeline
endforeach