You've already forked godot
							
							
				mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-04 12:00:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			546 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			546 B
		
	
	
	
		
			Python
		
	
	
	
	
	
#!/usr/bin/env python
 | 
						|
from misc.utility.scons_hints import *
 | 
						|
 | 
						|
Import("env")
 | 
						|
Import("env_modules")
 | 
						|
 | 
						|
env_objdb = env_modules.Clone()
 | 
						|
 | 
						|
module_obj = []
 | 
						|
 | 
						|
# Only include in editor and debug builds.
 | 
						|
if env_objdb.debug_features:
 | 
						|
    env_objdb.add_source_files(module_obj, "*.cpp")
 | 
						|
 | 
						|
    # Only the editor needs these files, don't include them in the game.
 | 
						|
    if env.editor_build:
 | 
						|
        env_objdb.add_source_files(module_obj, "editor/*.cpp")
 | 
						|
        env_objdb.add_source_files(module_obj, "editor/data_viewers/*.cpp")
 | 
						|
 | 
						|
env.modules_sources += module_obj
 |