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
|
# SPDX-License-Identifier: CC0-1.0
proxy_install_dir = get_option('libexecdir') / 'libcamera'
# generate {pipeline}_ipa_proxy_worker.cpp
foreach mojom : ipa_mojoms
worker = custom_target(mojom['name'] + '_proxy_worker',
input : mojom['mojom'],
output : mojom['name'] + '_ipa_proxy_worker.cpp',
depends : mojom_templates,
command : [
mojom_generator, 'generate',
'-g', 'libcamera',
'--bytecode_path', mojom_templates_dir,
'--libcamera_generate_proxy_worker',
'--libcamera_output_path=@OUTPUT@',
'./' + '@INPUT@'
])
proxy = executable(mojom['name'] + '_ipa_proxy',
[worker, libcamera_generated_ipa_headers],
install : true,
install_dir : proxy_install_dir,
dependencies : libcamera_private)
endforeach
config_h.set('IPA_PROXY_DIR',
'"' + get_option('prefix') / proxy_install_dir + '"')
summary({
'IPA_PROXY_DIR' : config_h.get('IPA_PROXY_DIR'),
}, section : 'Paths')
|