summaryrefslogtreecommitdiff
path: root/platform/windows/export/export.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-02-09 22:10:30 -0300
commit0b806ee0fc9097fa7bda7ac0109191c9c5e0a1ac (patch)
tree276c4d099e178eb67fbd14f61d77b05e3808e9e3 /platform/windows/export/export.cpp
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
GODOT IS OPEN SOURCE
Diffstat (limited to 'platform/windows/export/export.cpp')
-rw-r--r--platform/windows/export/export.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/windows/export/export.cpp b/platform/windows/export/export.cpp
new file mode 100644
index 0000000000..952f51fdd4
--- /dev/null
+++ b/platform/windows/export/export.cpp
@@ -0,0 +1,24 @@
+#include "export.h"
+#include "platform/windows/logo.h"
+#include "tools/editor/editor_import_export.h"
+
+void register_windows_exporter() {
+
+ Image img(_windows_logo);
+ Ref<ImageTexture> logo = memnew( ImageTexture );
+ logo->create_from_image(img);
+
+ {
+ Ref<EditorExportPlatformPC> exporter = Ref<EditorExportPlatformPC>( memnew(EditorExportPlatformPC) );
+ exporter->set_binary_extension("exe");
+ exporter->set_release_binary32("windows_32_release.exe");
+ exporter->set_debug_binary32("windows_32_debug.exe");
+ exporter->set_release_binary64("windows_64_release.exe");
+ exporter->set_debug_binary64("windows_64_debug.exe");
+ exporter->set_name("Windows Desktop");
+ exporter->set_logo(logo);
+ EditorImportExport::get_singleton()->add_export_platform(exporter);
+ }
+
+
+}