(file_name, template_files)
| 715 | ] |
| 716 | |
| 717 | def generate_lib_file(file_name, template_files): |
| 718 | parts = [] |
| 719 | for template_file in template_files: |
| 720 | inputs.append(os.path.join(lib_templates_dir, template_file)) |
| 721 | template = jinja_env.get_template("lib/" + template_file) |
| 722 | parts.append(template.render(template_context)) |
| 723 | source_set.add(template.filename) |
| 724 | outputs[file_name] = "\n\n".join(parts) |
| 725 | |
| 726 | generate_lib_file(os.path.join(config.lib.output, to_file_name( |
| 727 | config, "Forward.h")), forward_h_templates) |