summaryrefslogtreecommitdiff
path: root/src/libcamera
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-11-20 13:54:28 +0000
committerNaushir Patuck <naush@raspberrypi.com>2023-11-29 09:05:38 +0000
commitbba4ec63c4b0699b7f7ffb20e4f37af2b996d355 (patch)
treeafb047373376ea73124b58bb5b8af69a0c293c36 /src/libcamera
parentbd6658943a97288b5673e65649a3a48dac7c78da (diff)
controls: Update argument handling for controls generation scripts
The template file to the gen-controls.py and gen-py-controls.py is now passed in through the '-t' or '--template' command line argument instead of being a positional argument. This will allow multiple input files to be provided to the scripts in a future commit. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera')
-rw-r--r--src/libcamera/meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index e49bf850..05ee38da 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -128,12 +128,13 @@ endif
control_sources = []
foreach source, mode : control_source_files
- input_files = files(source +'.yaml', source + '.cpp.in')
+ input_files = files(source +'.yaml')
+ template_file = files(source + '.cpp.in')
control_sources += custom_target(source + '_cpp',
input : input_files,
output : source + '.cpp',
- command : [gen_controls, '-o', '@OUTPUT@', '@INPUT@',
- '--mode', mode])
+ command : [gen_controls, '-o', '@OUTPUT@',
+ '--mode', mode, '-t', template_file, '@INPUT@'])
endforeach
libcamera_sources += control_sources