summaryrefslogtreecommitdiff
path: root/src/libcamera/proxy/meson.build
blob: 8bd1b135d0f5b838b285f8e8b8031a0a21432209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# SPDX-License-Identifier: CC0-1.0

# generate {pipeline}_ipa_proxy.cpp
foreach mojom : ipa_mojoms
    proxy = custom_target(mojom['name'] + '_proxy_cpp',
                          input : mojom['mojom'],
                          output : mojom['name'] + '_ipa_proxy.cpp',
                          depends : mojom_templates,
                          command : [
                              mojom_generator, 'generate',
                              '-g', 'libcamera',
                              '--bytecode_path', mojom_templates_dir,
                              '--libcamera_generate_proxy_cpp',
                              '--libcamera_output_path=@OUTPUT@',
                              './' + '@INPUT@'
                          ],
                          env : py_build_env)

    libcamera_internal_sources += proxy
endforeach