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
41
|
# sigc++/adaptors
# Input: python3, handle_built_files, m4_template, m4_include_dir
# Output:
# Input and output: built_h_files, built_h_file_targets
# .m4 files to build .h files from.
adaptors_h_m4_files = [
'adaptor_trait.h',
'bind.h',
'bind_return.h',
'compose.h',
'deduce_result_type.h',
'exception_catch.h',
'hide.h',
'retype.h',
'retype_return.h',
'track_obj.h',
]
foreach file : adaptors_h_m4_files
built_h_files += 'adaptors' / file
endforeach
if maintainer_mode
# Maintainer mode. Generate .h files from .m4 files in macros/ directory.
foreach file : adaptors_h_m4_files
built_h_file_targets += custom_target('adaptors_' + file,
input: 'macros' / file + '.m4',
output: file,
command: [
python3, handle_built_files, 'build_from_m4',
m4_include_dir,
'@INPUT@',
'@OUTPUT@',
],
depend_files: m4_template,
build_by_default: maintainer_mode,
install: false,
)
endforeach
endif
|