libcamera/test/serialization/generated_serializer/include/libcamera/ipa/meson.build
Tomi Valkeinen 1ddda31f14 meson: Use new project_*_root() functions
meson.source_root() and meson.build_root() are deprecated. Use
meson.project_source_root() and meson.project_build_root() instead.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
2022-05-10 13:53:43 +02:00

40 lines
1.7 KiB
Meson

# SPDX-License-Identifier: CC0-1.0
# test.mojom-module
mojom = custom_target('test_mojom_module',
input : 'test.mojom',
output : 'test.mojom-module',
command : [
mojom_parser,
'--output-root', meson.project_build_root(),
'--input-root', meson.project_source_root(),
'--mojoms', '@INPUT@'
])
# test_ipa_interface.h
generated_test_header = custom_target('test_ipa_interface_h',
input : mojom,
output : 'test_ipa_interface.h',
depends : mojom_templates,
command : [
mojom_generator, 'generate',
'-g', 'libcamera',
'--bytecode_path', mojom_templates_dir,
'--libcamera_generate_header',
'--libcamera_output_path=@OUTPUT@',
'./' +'@INPUT@'
])
# test_ipa_serializer.h
generated_test_serializer = custom_target('test_ipa_serializer_h',
input : mojom,
output : 'test_ipa_serializer.h',
depends : mojom_templates,
command : [
mojom_generator, 'generate',
'-g', 'libcamera',
'--bytecode_path', mojom_templates_dir,
'--libcamera_generate_serializer',
'--libcamera_output_path=@OUTPUT@',
'./' +'@INPUT@'
])