mirror of
https://github.com/godotengine/godot.git
synced 2024-12-21 10:25:24 +08:00
c9b75431f3
Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this.
17 lines
435 B
Python
17 lines
435 B
Python
#!/usr/bin/env python
|
|
|
|
Import("env")
|
|
|
|
import editor.template_builders as 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")
|
|
|
|
env.Alias("editor_template_cs", [env.MakeCSharpTemplateBuilder("templates.gen.h", templates_sources)])
|