godot/modules/gdscript/editor_templates/SCsub
fabriceci f80663e33d Improve editor template workflow
Co-Authored-By: jmb462 <jmb462@gmail.com>
2021-10-31 18:35:22 +01:00

18 lines
449 B
Python

#!/usr/bin/env python
Import("env")
import build_template_gd
env["BUILDERS"]["MakeGDTemplateBuilder"] = Builder(
action=env.Run(build_template_gd.make_templates, "Generating GDScript templates header."),
suffix=".h",
src_suffix=".gd",
)
# Template files
templates_sources = Glob("*/*.gd")
templates_sources.append(Glob("plugin.gd"))
env.Alias("editor_template_gd", [env.MakeGDTemplateBuilder("templates.gen.h", templates_sources)])