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:
Kieran Bingham 2020-09-03 11:36:57 +01:00
parent d6b6ad950d
commit c09626cd63
6 changed files with 5 additions and 8 deletions

View file

@ -34,8 +34,6 @@ install_headers(libcamera_public_headers,
#
# control_ids.h and property_ids.h
gen_controls = files('../../src/libcamera/gen-controls.py')
control_source_files = [
'control_ids',
'property_ids',
@ -57,8 +55,6 @@ endforeach
libcamera_public_headers += control_headers
# formats.h
gen_formats = files('gen-formats.py')
formats_h = custom_target('formats_h',
input : files(
'../../src/libcamera/formats.yaml',
@ -72,8 +68,6 @@ formats_h = custom_target('formats_h',
libcamera_public_headers += formats_h
# libcamera.h
gen_header = files('gen-header.sh')
libcamera_h = custom_target('gen-header',
input : 'meson.build',
output : 'libcamera.h',

View file

@ -77,8 +77,6 @@ if libudev.found()
])
endif
gen_controls = files('gen-controls.py')
control_sources = []
foreach source : control_source_files

View file

@ -1,3 +1,8 @@
# SPDX-License-Identifier: CC0-1.0
subdir('ipu3')
## Code generation
gen_controls = files('gen-controls.py')
gen_formats = files('gen-formats.py')
gen_header = files('gen-header.sh')