diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-22 13:57:39 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-07-22 15:08:32 +0200 |
commit | 66d09a6b4cae73fbb48fe01082af5397c4a75d9a (patch) | |
tree | 052f28156bf8b60e33f928b1d3d32918f6988ab1 /scene/3d/SCsub | |
parent | 017b224a87064a3d333ba63809a0f12cfe2c4412 (diff) |
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.
Diffstat (limited to 'scene/3d/SCsub')
-rw-r--r-- | scene/3d/SCsub | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scene/3d/SCsub b/scene/3d/SCsub index 200cf4316f..31a443bad1 100644 --- a/scene/3d/SCsub +++ b/scene/3d/SCsub @@ -3,10 +3,10 @@ Import('env') if env['disable_3d']: - env.scene_sources.append("3d/spatial.cpp") - env.scene_sources.append("3d/skeleton.cpp") - env.scene_sources.append("3d/particles.cpp") - env.scene_sources.append("3d/visual_instance.cpp") - env.scene_sources.append("3d/world_environment.cpp") + env.add_source_files(env.scene_sources, "spatial.cpp") + env.add_source_files(env.scene_sources, "skeleton.cpp") + env.add_source_files(env.scene_sources, "particles.cpp") + env.add_source_files(env.scene_sources, "visual_instance.cpp") + env.add_source_files(env.scene_sources, "world_environment.cpp") else: env.add_source_files(env.scene_sources, "*.cpp") |