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:
parent
a25533089b
commit
ee7e2c93df
3 changed files with 16 additions and 6 deletions
|
@ -12,6 +12,11 @@ option('gstreamer',
|
||||||
value : 'auto',
|
value : 'auto',
|
||||||
description : 'Compile libcamera GStreamer plugin')
|
description : 'Compile libcamera GStreamer plugin')
|
||||||
|
|
||||||
|
option('pipelines',
|
||||||
|
type : 'array',
|
||||||
|
choices : ['ipu3', 'rkisp1', 'uvcvideo', 'vimc'],
|
||||||
|
description : 'Select which pipeline handlers to include')
|
||||||
|
|
||||||
option('test',
|
option('test',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
description: 'Compile and include the tests')
|
description: 'Compile and include the tests')
|
||||||
|
|
|
@ -9,5 +9,11 @@ config_h.set('IPA_MODULE_DIR',
|
||||||
'"' + join_paths(get_option('prefix'), ipa_install_dir) + '"')
|
'"' + join_paths(get_option('prefix'), ipa_install_dir) + '"')
|
||||||
|
|
||||||
subdir('libipa')
|
subdir('libipa')
|
||||||
subdir('rkisp1')
|
|
||||||
subdir('vimc')
|
ipas = ['rkisp1', 'vimc']
|
||||||
|
|
||||||
|
foreach pipeline : get_option('pipelines')
|
||||||
|
if ipas.contains(pipeline)
|
||||||
|
subdir(pipeline)
|
||||||
|
endif
|
||||||
|
endforeach
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
subdir('ipu3')
|
foreach pipeline : get_option('pipelines')
|
||||||
subdir('rkisp1')
|
subdir(pipeline)
|
||||||
subdir('uvcvideo')
|
endforeach
|
||||||
subdir('vimc')
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue