libcamera: Make pipeline handlers selectable at compile time

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 <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart 2020-03-25 09:48:54 +02:00
parent a25533089b
commit ee7e2c93df
3 changed files with 16 additions and 6 deletions

View file

@ -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

View file

@ -1,4 +1,3 @@
subdir('ipu3')
subdir('rkisp1')
subdir('uvcvideo')
subdir('vimc')
foreach pipeline : get_option('pipelines')
subdir(pipeline)
endforeach