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 functors_h_m4_files = [
13 foreach file : functors_h_m4_files
14 built_h_files += 'functors' / file
18 # Maintainer mode. Generate .h files from .m4 files in macros/ directory.
19 foreach file : functors_h_m4_files
20 built_h_file_targets += custom_target('functors_' + file,
21 input: 'macros' / file + '.m4',
24 python3, handle_built_files, 'build_from_m4',
29 depend_files: m4_template,
30 build_by_default: maintainer_mode,