From 6a96113107a9cf29b24f50b81f930508c0748fcd Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Thu, 8 Aug 2024 00:27:04 +0300 Subject: utils: codegen: gen-controls.py: Move helper classes to separate file The ControlEnum and Control helper classes defined in gen-controls.py are useful for other generator scripts. Move them to a separate file to make it possible to share them. Signed-off-by: Laurent Pinchart Reviewed-by: Daniel Scally --- src/libcamera/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build index 3fd3a87e..aa9ab029 100644 --- a/src/libcamera/meson.build +++ b/src/libcamera/meson.build @@ -151,7 +151,8 @@ foreach mode, inout_files : controls_mode_files output : output_file, command : [gen_controls, '-o', '@OUTPUT@', '--mode', mode, '-t', template_file, - '-r', ranges_file, '@INPUT@']) + '-r', ranges_file, '@INPUT@'], + env : py_build_env) endforeach libcamera_public_sources += control_sources -- cgit v1.2.1