summaryrefslogtreecommitdiff
path: root/test/serialization/generated_serializer/include/libcamera/ipa/meson.build
blob: ba198f7ac10e21ca6670fd0f656018b0b7ebe8cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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.build_root(),
                          '--input-root', meson.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@'
                           ])