From fa2983c18b6f20d6827aa9b96dadc5d25e18ef26 Mon Sep 17 00:00:00 2001 From: Sergey Minakov Date: Tue, 13 Jul 2021 22:17:17 +0300 Subject: Allow additional cpp files to be added for export template --- editor/SCsub | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3