godot/modules/mono/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
451 B
Python

#!/usr/bin/env python
Import("env")
import build_template_cs
env["BUILDERS"]["MakeCSharpTemplateBuilder"] = Builder(
action=env.Run(build_template_cs.make_templates, "Generating C# templates header."),
suffix=".h",
src_suffix=".cs",
)
# Template files
templates_sources = Glob("*/*.cs")
templates_sources.append(Glob("plugin.cs"))
env.Alias("editor_template_cs", [env.MakeCSharpTemplateBuilder("templates.gen.h", templates_sources)])