diff options
author | Sergey Minakov <naithar@icloud.com> | 2021-07-13 22:17:17 +0300 |
---|---|---|
committer | Sergey Minakov <naithar@icloud.com> | 2021-08-12 16:56:17 +0300 |
commit | fa2983c18b6f20d6827aa9b96dadc5d25e18ef26 (patch) | |
tree | 06c11646f34ba094d48c20d659aa33c07d408bdc /editor | |
parent | 78c8b7ffec388506bc0df32d7c86e3ef45604f6f (diff) |
Allow additional cpp files to be added for export template
Diffstat (limited to 'editor')
-rw-r--r-- | editor/SCsub | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/editor/SCsub b/editor/SCsub index a976c4ed12..d149cc6273 100644 --- a/editor/SCsub +++ b/editor/SCsub @@ -30,7 +30,10 @@ if env["tools"]: reg_exporters_inc = '#include "register_exporters.h"\n' reg_exporters = "void register_exporters() {\n" for e in env.platform_exporters: - env.add_source_files(env.editor_sources, "#platform/" + e + "/export/export.cpp") + # Glob all .cpp files in export folder + files = Glob("#platform/" + e + "/export/" + "*.cpp") + env.add_source_files(env.editor_sources, files) + reg_exporters += "\tregister_" + e + "_exporter();\n" reg_exporters_inc += '#include "platform/' + e + '/export/export.h"\n' reg_exporters += "}\n" |