summaryrefslogtreecommitdiff
path: root/platform/x11/export
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/x11/export
parent0e49da1687bc8192ed210947da52c9e5c5f301bb (diff)
GODOT IS OPEN SOURCE
Diffstat (limited to 'platform/x11/export')
-rw-r--r--platform/x11/export/export.cpp24
-rw-r--r--platform/x11/export/export.h4
2 files changed, 28 insertions, 0 deletions
diff --git a/platform/x11/export/export.cpp b/platform/x11/export/export.cpp
new file mode 100644
index 0000000000..b17b92bccf
--- /dev/null
+++ b/platform/x11/export/export.cpp
@@ -0,0 +1,24 @@
+#include "export.h"
+#include "platform/x11/logo.h"
+#include "tools/editor/editor_import_export.h"
+#include "scene/resources/texture.h"
+
+void register_x11_exporter() {
+
+ Image img(_x11_logo);
+ Ref<ImageTexture> logo = memnew( ImageTexture );
+ logo->create_from_image(img);
+
+ {
+ Ref<EditorExportPlatformPC> exporter = Ref<EditorExportPlatformPC>( memnew(EditorExportPlatformPC) );
+ exporter->set_binary_extension("bin");
+ exporter->set_release_binary32("linux_x11_32_release");
+ exporter->set_debug_binary32("linux_x11_32_debug");
+ exporter->set_release_binary64("linux_x11_64_release");
+ exporter->set_debug_binary64("linux_x11_64_debug");
+ exporter->set_name("Linux X11");
+ exporter->set_logo(logo);
+ EditorImportExport::get_singleton()->add_export_platform(exporter);
+ }
+
+}
diff --git a/platform/x11/export/export.h b/platform/x11/export/export.h
new file mode 100644
index 0000000000..1077709ea1
--- /dev/null
+++ b/platform/x11/export/export.h
@@ -0,0 +1,4 @@
+
+
+void register_x11_exporter();
+