libcamera: Move Header generation utilities to utils
Move the GPL2 utilities which handle generation of controls, formats and the top level libcamera header to the utils subtree. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
parent
d6b6ad950d
commit
c09626cd63
6 changed files with 5 additions and 8 deletions
|
@ -34,8 +34,6 @@ install_headers(libcamera_public_headers,
|
||||||
#
|
#
|
||||||
|
|
||||||
# control_ids.h and property_ids.h
|
# control_ids.h and property_ids.h
|
||||||
gen_controls = files('../../src/libcamera/gen-controls.py')
|
|
||||||
|
|
||||||
control_source_files = [
|
control_source_files = [
|
||||||
'control_ids',
|
'control_ids',
|
||||||
'property_ids',
|
'property_ids',
|
||||||
|
@ -57,8 +55,6 @@ endforeach
|
||||||
libcamera_public_headers += control_headers
|
libcamera_public_headers += control_headers
|
||||||
|
|
||||||
# formats.h
|
# formats.h
|
||||||
gen_formats = files('gen-formats.py')
|
|
||||||
|
|
||||||
formats_h = custom_target('formats_h',
|
formats_h = custom_target('formats_h',
|
||||||
input : files(
|
input : files(
|
||||||
'../../src/libcamera/formats.yaml',
|
'../../src/libcamera/formats.yaml',
|
||||||
|
@ -72,8 +68,6 @@ formats_h = custom_target('formats_h',
|
||||||
libcamera_public_headers += formats_h
|
libcamera_public_headers += formats_h
|
||||||
|
|
||||||
# libcamera.h
|
# libcamera.h
|
||||||
gen_header = files('gen-header.sh')
|
|
||||||
|
|
||||||
libcamera_h = custom_target('gen-header',
|
libcamera_h = custom_target('gen-header',
|
||||||
input : 'meson.build',
|
input : 'meson.build',
|
||||||
output : 'libcamera.h',
|
output : 'libcamera.h',
|
||||||
|
|
|
@ -77,8 +77,6 @@ if libudev.found()
|
||||||
])
|
])
|
||||||
endif
|
endif
|
||||||
|
|
||||||
gen_controls = files('gen-controls.py')
|
|
||||||
|
|
||||||
control_sources = []
|
control_sources = []
|
||||||
|
|
||||||
foreach source : control_source_files
|
foreach source : control_source_files
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
subdir('ipu3')
|
subdir('ipu3')
|
||||||
|
|
||||||
|
## Code generation
|
||||||
|
gen_controls = files('gen-controls.py')
|
||||||
|
gen_formats = files('gen-formats.py')
|
||||||
|
gen_header = files('gen-header.sh')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue