summaryrefslogtreecommitdiff
path: root/editor/SCsub
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-07-22 13:57:39 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-07-22 15:08:32 +0200
commit66d09a6b4cae73fbb48fe01082af5397c4a75d9a (patch)
tree052f28156bf8b60e33f928b1d3d32918f6988ab1 /editor/SCsub
parent017b224a87064a3d333ba63809a0f12cfe2c4412 (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 'editor/SCsub')
-rw-r--r--editor/SCsub2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/SCsub b/editor/SCsub
index 7d48e47c9f..2b560f68e8 100644
--- a/editor/SCsub
+++ b/editor/SCsub
@@ -31,7 +31,7 @@ if env['tools']:
reg_exporters_inc = '#include "register_exporters.h"\n'
reg_exporters = 'void register_exporters() {\n'
for e in env.platform_exporters:
- env.editor_sources.append("#platform/" + e + "/export/export.cpp")
+ env.add_source_files(env.editor_sources, "#platform/" + e + "/export/export.cpp")
reg_exporters += '\tregister_' + e + '_exporter();\n'
reg_exporters_inc += '#include "platform/' + e + '/export/export.h"\n'
reg_exporters += '}\n'