py: Rename pyxyz to py_xyz
Having the underscore makes the names more readable, especially when there are multiple words in the name. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
2bb6c9fbd2
commit
b2ada6f3ec
@@ -13,21 +13,21 @@ pybind11_proj = subproject('pybind11')
|
||||
pybind11_dep = pybind11_proj.get_variable('pybind11_dep')
|
||||
|
||||
pycamera_sources = files([
|
||||
'pyenums.cpp',
|
||||
'pygeometry.cpp',
|
||||
'pymain.cpp',
|
||||
'py_enums.cpp',
|
||||
'py_geometry.cpp',
|
||||
'py_main.cpp',
|
||||
])
|
||||
|
||||
gen_input_files = files([
|
||||
'../../libcamera/control_ids.yaml',
|
||||
'pyenums_generated.cpp.in',
|
||||
'py_enums_generated.cpp.in',
|
||||
])
|
||||
|
||||
gen_py_control_enums = files('gen-py-control-enums.py')
|
||||
|
||||
generated_sources = custom_target('py_gen_controls',
|
||||
input : gen_input_files,
|
||||
output : ['pyenums_generated.cpp'],
|
||||
output : ['py_enums_generated.cpp'],
|
||||
command : [gen_py_control_enums, '-o', '@OUTPUT@', '@INPUT@'])
|
||||
|
||||
pycamera_sources += generated_sources
|
||||
|
||||
Reference in New Issue
Block a user