1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env python Import("env") Import("env_modules") env_mp = env_modules.Clone() module_obj = [] env_mp.add_source_files(module_obj, "*.cpp") if env.editor_build: env_mp.add_source_files(module_obj, "editor/*.cpp") env.modules_sources += module_obj