forked from hertog/godot-module-template
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			392 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			392 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #!/usr/bin/env python
 | |
| 
 | |
| Import("env")
 | |
| 
 | |
| import editor.template_builders as build_template_gd
 | |
| 
 | |
| env["BUILDERS"]["MakeGDTemplateBuilder"] = Builder(
 | |
|     action=env.Run(build_template_gd.make_templates),
 | |
|     suffix=".h",
 | |
|     src_suffix=".gd",
 | |
| )
 | |
| 
 | |
| # Template files
 | |
| templates_sources = Glob("*/*.gd")
 | |
| 
 | |
| env.Alias("editor_template_gd", [env.MakeGDTemplateBuilder("templates.gen.h", templates_sources)])
 | 
