Skip to content

Commit

Permalink
Merge pull request #52515 from m4gr3d/android_export_refactoring
Browse files Browse the repository at this point in the history
[3.x] Refactor Android platform export structure
  • Loading branch information
akien-mga authored Sep 15, 2021
2 parents 29eefc4 + 0cfbe35 commit 815c16a
Show file tree
Hide file tree
Showing 8 changed files with 3,967 additions and 3,654 deletions.
5 changes: 4 additions & 1 deletion editor/SCsub
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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 815c16a

Please sign in to comment.