3 # Input: maintainer_mode, python3, handle_built_files, m4_template, m4_include_dir
4 # Input and output: built_h_files, built_h_file_targets
6 # .m4 files to build .h files from.
7 adaptors_h_m4_files = [
12 'deduce_result_type.h',
19 foreach file : adaptors_h_m4_files
20 built_h_files += 'adaptors' / file
24 # Maintainer mode. Generate .h files from .m4 files in macros/ directory.
25 foreach file : adaptors_h_m4_files
26 built_h_file_targets += custom_target('adaptors_' + file,
27 input: 'macros' / file + '.m4',
30 python3, handle_built_files, 'build_from_m4',
35 depend_files: m4_template,
36 build_by_default: maintainer_mode,