mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +00:00 
			
		
		
		
	Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			433 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			433 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, "Generating GDScript templates header."),
 | 
						|
    suffix=".h",
 | 
						|
    src_suffix=".gd",
 | 
						|
)
 | 
						|
 | 
						|
# Template files
 | 
						|
templates_sources = Glob("*/*.gd")
 | 
						|
 | 
						|
env.Alias("editor_template_gd", [env.MakeGDTemplateBuilder("templates.gen.h", templates_sources)])
 |