diff options
Diffstat (limited to 'tools/editor/SCsub')
-rw-r--r-- | tools/editor/SCsub | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/editor/SCsub b/tools/editor/SCsub new file mode 100644 index 0000000000..0f7d3f7656 --- /dev/null +++ b/tools/editor/SCsub @@ -0,0 +1,22 @@ +Import('env') + +if (env["tools"]=="yes"): + + reg_exporters_inc='#include "register_exporters.h"\n' + reg_exporters='void register_exporters() {\n' + for e in env.platform_exporters: + env.tool_sources.append("#platform/"+e+"/export/export.cpp") + reg_exporters+='\tregister_'+e+'_exporter();\n' + reg_exporters_inc+='#include "platform/'+e+'/export/export.h"\n' + reg_exporters+='}\n' + f = open("register_exporters.cpp","wb") + f.write(reg_exporters_inc) + f.write(reg_exporters) + + env.add_source_files(env.tool_sources,"*.cpp") + + Export('env') + SConscript('plugins/SCsub'); + SConscript('fileserver/SCsub'); + SConscript('io_plugins/SCsub'); + |