summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/script_templates/SCsub
blob: f465374758aa3586c98b6bcc6dcc0bb429554fbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python
from misc.utility.scons_hints import *

Import("env")

import editor.template_builders as build_template_cs

env["BUILDERS"]["MakeCSharpTemplateBuilder"] = Builder(
    action=env.Run(build_template_cs.make_templates),
    suffix=".h",
    src_suffix=".cs",
)

# Template files
templates_sources = Glob("*/*.cs")

env.Alias("editor_template_cs", [env.MakeCSharpTemplateBuilder("templates.gen.h", templates_sources)])