1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

SCons: Fix uses of [].append instead of env.add_source_files()

Also added support for SCons project-absolute paths (starting with #) and
warning about duplicates in add_source_files(), and fixed
default_controller_mappings.gen.cpp being included twice after first build
due to *.cpp globbing.

Part of #30270.
This commit is contained in:
Rémi Verschelde
2019-07-22 13:57:39 +02:00
parent 017b224a87
commit 66d09a6b4c
6 changed files with 39 additions and 21 deletions

View File

@@ -6,9 +6,9 @@ env_modules = env.Clone()
Export('env_modules')
env.modules_sources = [
"register_module_types.gen.cpp",
]
env.modules_sources = []
env_modules.add_source_files(env.modules_sources, "register_module_types.gen.cpp")
for x in env.module_list:
if (x in env.disabled_modules):