Skip to content

Commit

Permalink
Merge pull request #50771 from naithar/feature/platform-export-refact…
Browse files Browse the repository at this point in the history
…oring-4.0
  • Loading branch information
akien-mga authored Aug 12, 2021
2 parents d10bfe8 + 253581f commit 6f043f7
Show file tree
Hide file tree
Showing 30 changed files with 10,080 additions and 9,226 deletions.
5 changes: 4 additions & 1 deletion editor/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading

0 comments on commit 6f043f7

Please sign in to comment.