export.cpp 781 B

123456789101112131415161718192021222324
  1. #include "export.h"
  2. #include "platform/x11/logo.h"
  3. #include "tools/editor/editor_import_export.h"
  4. #include "scene/resources/texture.h"
  5. void register_x11_exporter() {
  6. Image img(_x11_logo);
  7. Ref<ImageTexture> logo = memnew( ImageTexture );
  8. logo->create_from_image(img);
  9. {
  10. Ref<EditorExportPlatformPC> exporter = Ref<EditorExportPlatformPC>( memnew(EditorExportPlatformPC) );
  11. exporter->set_binary_extension("");
  12. exporter->set_release_binary32("linux_x11_32_release");
  13. exporter->set_debug_binary32("linux_x11_32_debug");
  14. exporter->set_release_binary64("linux_x11_64_release");
  15. exporter->set_debug_binary64("linux_x11_64_debug");
  16. exporter->set_name("Linux X11");
  17. exporter->set_logo(logo);
  18. EditorImportExport::get_singleton()->add_export_platform(exporter);
  19. }
  20. }