From ee7e2c93dfbf34b3500c895115c516e5e90d3e31 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Wed, 25 Mar 2020 09:48:54 +0200 Subject: libcamera: Make pipeline handlers selectable at compile time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a 'pipelines' project option that specifies which pipeline handlers to compile in. The corresponding IPA modules are automatically selected. The default is to compile all pipeline handlers. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- src/ipa/meson.build | 10 ++++++++-- src/libcamera/pipeline/meson.build | 7 +++---- 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/ipa/meson.build b/src/ipa/meson.build index 9aaf9249..73278a60 100644 --- a/src/ipa/meson.build +++ b/src/ipa/meson.build @@ -9,5 +9,11 @@ config_h.set('IPA_MODULE_DIR', '"' + join_paths(get_option('prefix'), ipa_install_dir) + '"') subdir('libipa') -subdir('rkisp1') -subdir('vimc') + +ipas = ['rkisp1', 'vimc'] + +foreach pipeline : get_option('pipelines') + if ipas.contains(pipeline) + subdir(pipeline) + endif +endforeach diff --git a/src/libcamera/pipeline/meson.build b/src/libcamera/pipeline/meson.build index c1a6ab04..190ca5a8 100644 --- a/src/libcamera/pipeline/meson.build +++ b/src/libcamera/pipeline/meson.build @@ -1,4 +1,3 @@ -subdir('ipu3') -subdir('rkisp1') -subdir('uvcvideo') -subdir('vimc') +foreach pipeline : get_option('pipelines') + subdir(pipeline) +endforeach -- cgit v1.2.1