Prechádzať zdrojové kódy

Reorder the folders in tools to prepare moving tools/editor

- `certs` and `editor_fonts` go to `thirdparty`
- `dist` and `scripts` go to a new `misc` folder
- `collada` and `doc` go to `tools/editor`

The next step will be to rename `tools/editor` to `editor` directly,
but this will be done at the right time to avoid breaking too many PRs.

(cherry picked from commit b87a232668d9f9f3b32c2fceb60bc5f6ef46df22)
Rémi Verschelde 8 rokov pred
rodič
commit
6e5246e312
100 zmenil súbory, kde vykonal 151 pridanie a 155 odobranie
  1. 2 2
      SConstruct
  2. 1 4
      main/main.cpp
  3. 0 0
      misc/dist/docker/Dockerfile
  4. 0 0
      misc/dist/docker/README.md
  5. 0 0
      misc/dist/docker/scripts/install-android-tools
  6. 0 0
      misc/dist/html_fs/godot.html
  7. 0 0
      misc/dist/html_fs/godotfs.js
  8. 0 0
      misc/dist/ios_xcode/godot_xcode/data.pck
  9. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_debug.iphone
  10. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios.xcodeproj/project.pbxproj
  11. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  12. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-568h@2x~iphone.png
  13. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-667h.png
  14. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/[email protected]
  15. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-736h.png
  16. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/[email protected]
  17. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape-736h.png
  18. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape@2x~ipad.png
  19. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape~ipad.png
  20. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Portrait@2x~ipad.png
  21. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Portrait~ipad.png
  22. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default@2x~iphone.png
  23. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Default~iphone.png
  24. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Contents.json
  25. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-100.png
  26. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-114.png
  27. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-120.png
  28. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-144.png
  29. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-152.png
  30. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-180.png
  31. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-29.png
  32. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-40.png
  33. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-50.png
  34. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-57.png
  35. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-58.png
  36. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-60.png
  37. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-72.png
  38. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-76.png
  39. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-80.png
  40. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/icon-167.png
  41. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/icon-87.png
  42. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/sizes
  43. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/en.lproj/InfoPlist.strings
  44. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/godot_ios-Info.plist
  45. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_ios/main.m
  46. 0 0
      misc/dist/ios_xcode/godot_xcode/godot_opt.iphone
  47. 0 0
      misc/dist/osx_template.app/Contents/Info.plist
  48. 0 0
      misc/dist/osx_template.app/Contents/PkgInfo
  49. 0 0
      misc/dist/osx_template.app/Contents/Resources/icon.icns
  50. 0 0
      misc/dist/osx_tools.app/Contents/Info.plist
  51. 0 0
      misc/dist/osx_tools.app/Contents/PkgInfo
  52. 0 0
      misc/dist/osx_tools.app/Contents/Resources/Godot.icns
  53. 0 0
      misc/scripts/addheader.py
  54. 0 0
      misc/scripts/file-hex-array.py
  55. 0 0
      misc/scripts/make_bmfhdr.py
  56. 0 0
      misc/scripts/make_glwrapper.py
  57. 0 0
      misc/scripts/make_icons.sh
  58. 0 0
      misc/scripts/makeargs.py
  59. 0 0
      misc/scripts/memsort.py
  60. 0 0
      misc/scripts/sort-demos.sh
  61. 0 0
      misc/scripts/svgs_2_pngs.py
  62. 14 0
      thirdparty/README.md
  63. 0 0
      thirdparty/certs/ca-certificates.crt
  64. 0 0
      thirdparty/fonts/DroidSans.ttf
  65. 0 0
      thirdparty/fonts/DroidSansArabic.ttf
  66. 0 0
      thirdparty/fonts/DroidSansFallback.ttf
  67. 0 0
      thirdparty/fonts/DroidSansHebrew.ttf
  68. 0 0
      thirdparty/fonts/DroidSansJapanese.ttf
  69. 0 0
      thirdparty/fonts/DroidSansThai.ttf
  70. 0 0
      thirdparty/fonts/LICENSE.DroidSans.txt
  71. 0 0
      thirdparty/fonts/LICENSE.SourceCodePro.txt
  72. 0 0
      thirdparty/fonts/source_code_pro.otf
  73. 0 121
      tools/SCsub
  74. 125 20
      tools/editor/SCsub
  75. 1 1
      tools/editor/collada/SCsub
  76. 0 0
      tools/editor/collada/collada.cpp
  77. 0 0
      tools/editor/collada/collada.h
  78. 1 1
      tools/editor/doc/SCsub
  79. 0 0
      tools/editor/doc/doc_data.cpp
  80. 0 0
      tools/editor/doc/doc_data.h
  81. 0 0
      tools/editor/doc/doc_dump.cpp
  82. 0 0
      tools/editor/doc/doc_dump.h
  83. 1 1
      tools/editor/editor_help.h
  84. 1 1
      tools/editor/fileserver/SCsub
  85. 1 1
      tools/editor/icons/SCsub
  86. 1 1
      tools/editor/io_plugins/SCsub
  87. 2 1
      tools/editor/io_plugins/editor_import_collada.cpp
  88. 1 1
      tools/editor/plugins/SCsub
  89. 0 0
      tools/editor/translations/Makefile
  90. 0 0
      tools/editor/translations/README.md
  91. 0 0
      tools/editor/translations/bn.po
  92. 0 0
      tools/editor/translations/ca.po
  93. 0 0
      tools/editor/translations/de.po
  94. 0 0
      tools/editor/translations/es.po
  95. 0 0
      tools/editor/translations/es_AR.po
  96. 0 0
      tools/editor/translations/extract.py
  97. 0 0
      tools/editor/translations/fa.po
  98. 0 0
      tools/editor/translations/fr.po
  99. 0 0
      tools/editor/translations/id.po
  100. 0 0
      tools/editor/translations/it.po

+ 2 - 2
SConstruct

@@ -359,7 +359,7 @@ if selected_platform in platform_list:
     SConscript("core/SCsub")
     SConscript("servers/SCsub")
     SConscript("scene/SCsub")
-    SConscript("tools/SCsub")
+    SConscript("tools/editor/SCsub")
     SConscript("drivers/SCsub")
 
     SConscript("modules/SCsub")
@@ -375,7 +375,7 @@ if selected_platform in platform_list:
         AddToVSProject(env.modules_sources)
         AddToVSProject(env.scene_sources)
         AddToVSProject(env.servers_sources)
-        AddToVSProject(env.tool_sources)
+        AddToVSProject(env.editor_sources)
 
         # this env flag won't work, it needs to be set in env_base=Environment(MSVC_VERSION='9.0')
         # Even then, SCons still seems to ignore it and builds with the latest MSVC...

+ 1 - 4
main/main.cpp

@@ -54,20 +54,17 @@
 #include "scene/main/viewport.h"
 
 #ifdef TOOLS_ENABLED
+#include "tools/editor/doc/doc_data.h"
 #include "tools/editor/editor_node.h"
 #include "tools/editor/project_manager.h"
-
 #endif
 
 #include "io/file_access_network.h"
-#include "tools/doc/doc_data.h"
-
 
 #include "servers/spatial_sound_server.h"
 #include "servers/spatial_sound_2d_server.h"
 #include "servers/physics_2d_server.h"
 
-
 #include "core/io/stream_peer_tcp.h"
 #include "core/os/thread.h"
 #include "core/io/file_access_pack.h"

+ 0 - 0
tools/dist/docker/Dockerfile → misc/dist/docker/Dockerfile


+ 0 - 0
tools/dist/docker/README.md → misc/dist/docker/README.md


+ 0 - 0
tools/dist/docker/scripts/install-android-tools → misc/dist/docker/scripts/install-android-tools


+ 0 - 0
tools/dist/html_fs/godot.html → misc/dist/html_fs/godot.html


+ 0 - 0
tools/dist/html_fs/godotfs.js → misc/dist/html_fs/godotfs.js


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/data.pck → misc/dist/ios_xcode/godot_xcode/data.pck


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_debug.iphone → misc/dist/ios_xcode/godot_xcode/godot_debug.iphone


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios.xcodeproj/project.pbxproj → misc/dist/ios_xcode/godot_xcode/godot_ios.xcodeproj/project.pbxproj


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata → misc/dist/ios_xcode/godot_xcode/godot_ios.xcodeproj/project.xcworkspace/contents.xcworkspacedata


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-568h@2x~iphone.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-568h@2x~iphone.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-667h.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-667h.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/[email protected] → misc/dist/ios_xcode/godot_xcode/godot_ios/[email protected]


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-736h.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-736h.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/[email protected] → misc/dist/ios_xcode/godot_xcode/godot_ios/[email protected]


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape-736h.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape-736h.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape@2x~ipad.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape@2x~ipad.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape~ipad.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Landscape~ipad.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-Portrait@2x~ipad.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Portrait@2x~ipad.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default-Portrait~ipad.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default-Portrait~ipad.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default@2x~iphone.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default@2x~iphone.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Default~iphone.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Default~iphone.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Contents.json → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Contents.json


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-100.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-100.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-114.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-114.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-120.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-120.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-144.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-144.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-152.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-152.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-180.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-180.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-29.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-29.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-40.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-40.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-50.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-50.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-57.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-57.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-58.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-58.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-60.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-60.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-72.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-72.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-76.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-76.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-80.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/Icon-80.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/icon-167.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/icon-167.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/icon-87.png → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/icon-87.png


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/sizes → misc/dist/ios_xcode/godot_xcode/godot_ios/Images.xcassets/AppIcon.appiconset/sizes


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/en.lproj/InfoPlist.strings → misc/dist/ios_xcode/godot_xcode/godot_ios/en.lproj/InfoPlist.strings


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/godot_ios-Info.plist → misc/dist/ios_xcode/godot_xcode/godot_ios/godot_ios-Info.plist


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_ios/main.m → misc/dist/ios_xcode/godot_xcode/godot_ios/main.m


+ 0 - 0
tools/dist/ios_xcode/godot_xcode/godot_opt.iphone → misc/dist/ios_xcode/godot_xcode/godot_opt.iphone


+ 0 - 0
tools/dist/osx_template.app/Contents/Info.plist → misc/dist/osx_template.app/Contents/Info.plist


+ 0 - 0
tools/dist/osx_template.app/Contents/PkgInfo → misc/dist/osx_template.app/Contents/PkgInfo


+ 0 - 0
tools/dist/osx_template.app/Contents/Resources/icon.icns → misc/dist/osx_template.app/Contents/Resources/icon.icns


+ 0 - 0
tools/dist/osx_tools.app/Contents/Info.plist → misc/dist/osx_tools.app/Contents/Info.plist


+ 0 - 0
tools/dist/osx_tools.app/Contents/PkgInfo → misc/dist/osx_tools.app/Contents/PkgInfo


+ 0 - 0
tools/dist/osx_tools.app/Contents/Resources/Godot.icns → misc/dist/osx_tools.app/Contents/Resources/Godot.icns


+ 0 - 0
tools/scripts/addheader.py → misc/scripts/addheader.py


+ 0 - 0
tools/scripts/file-hex-array.py → misc/scripts/file-hex-array.py


+ 0 - 0
tools/scripts/make_bmfhdr.py → misc/scripts/make_bmfhdr.py


+ 0 - 0
tools/scripts/make_glwrapper.py → misc/scripts/make_glwrapper.py


+ 0 - 0
tools/scripts/make_icons.sh → misc/scripts/make_icons.sh


+ 0 - 0
tools/scripts/makeargs.py → misc/scripts/makeargs.py


+ 0 - 0
tools/scripts/memsort.py → misc/scripts/memsort.py


+ 0 - 0
tools/scripts/sort-demos.sh → misc/scripts/sort-demos.sh


+ 0 - 0
tools/scripts/svgs_2_pngs.py → misc/scripts/svgs_2_pngs.py


+ 14 - 0
thirdparty/README.md

@@ -1,6 +1,20 @@
 # Third party libraries
 
 
+## certs
+
+- Upstream: ?
+
+TODO.
+
+
+## fonts
+
+- Upstream: ?
+
+TODO.
+
+
 ## freetype
 
 - Upstream: https://www.freetype.org

+ 0 - 0
tools/certs/ca-certificates.crt → thirdparty/certs/ca-certificates.crt


+ 0 - 0
tools/editor_fonts/DroidSans.ttf → thirdparty/fonts/DroidSans.ttf


+ 0 - 0
tools/editor_fonts/DroidSansArabic.ttf → thirdparty/fonts/DroidSansArabic.ttf


+ 0 - 0
tools/editor_fonts/DroidSansFallback.ttf → thirdparty/fonts/DroidSansFallback.ttf


+ 0 - 0
tools/editor_fonts/DroidSansHebrew.ttf → thirdparty/fonts/DroidSansHebrew.ttf


+ 0 - 0
tools/editor_fonts/DroidSansJapanese.ttf → thirdparty/fonts/DroidSansJapanese.ttf


+ 0 - 0
tools/editor_fonts/DroidSansThai.ttf → thirdparty/fonts/DroidSansThai.ttf


+ 0 - 0
tools/editor_fonts/LICENSE.DroidSans.txt → thirdparty/fonts/LICENSE.DroidSans.txt


+ 0 - 0
tools/editor_fonts/LICENSE.SourceCodePro.txt → thirdparty/fonts/LICENSE.SourceCodePro.txt


+ 0 - 0
tools/editor_fonts/source_code_pro.otf → thirdparty/fonts/source_code_pro.otf


+ 0 - 121
tools/SCsub

@@ -1,121 +0,0 @@
-#!/usr/bin/env python
-
-Import('env')
-
-env.tool_sources = []
-env.add_source_files(env.tool_sources, "*.cpp")
-
-Export('env')
-
-
-def make_translations_header(target, source, env):
-
-    dst = target[0].srcnode().abspath
-
-    g = open(dst, "wb")
-
-    """"
-	"""
-
-    g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
-    g.write("#ifndef _EDITOR_TRANSLATIONS_H\n")
-    g.write("#define _EDITOR_TRANSLATIONS_H\n")
-
-    import zlib
-    import os.path
-
-    paths = [node.srcnode().abspath for node in source]
-    sorted_paths = sorted(paths, key=lambda path: os.path.splitext(os.path.basename(path))[0])
-
-    xl_names = []
-    for i in range(len(sorted_paths)):
-        print("Appending translation: " + sorted_paths[i])
-        f = open(sorted_paths[i], "rb")
-        buf = f.read()
-        decomp_size = len(buf)
-        buf = zlib.compress(buf)
-        name = os.path.splitext(os.path.basename(sorted_paths[i]))[0]
-
-        #g.write("static const int _translation_"+name+"_compressed_size="+str(len(buf))+";\n")
-        #g.write("static const int _translation_"+name+"_uncompressed_size="+str(decomp_size)+";\n")
-        g.write("static const unsigned char _translation_" + name + "_compressed[]={\n")
-        for i in range(len(buf)):
-            g.write(str(ord(buf[i])) + ",\n")
-
-        g.write("};\n")
-
-        xl_names.append([name, len(buf), str(decomp_size)])
-
-    g.write("struct EditorTranslationList {\n")
-    g.write("\tconst char* lang;\n")
-    g.write("\tint comp_size;\n")
-    g.write("\tint uncomp_size;\n")
-    g.write("\tconst unsigned char* data;\n")
-    g.write("};\n\n")
-    g.write("static EditorTranslationList _editor_translations[]={\n")
-    for x in xl_names:
-        g.write("\t{ \"" + x[0] + "\", " + str(x[1]) + ", " + str(x[2]) + ",_translation_" + x[0] + "_compressed},\n")
-    g.write("\t{NULL,0,0,NULL}\n")
-    g.write("};\n")
-
-    g.write("#endif")
-
-
-def make_fonts_header(target, source, env):
-
-    dst = target[0].srcnode().abspath
-
-    g = open(dst, "wb")
-
-    """"
-	"""
-
-    g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
-    g.write("#ifndef _EDITOR_FONTS_H\n")
-    g.write("#define _EDITOR_FONTS_H\n")
-
-    # saving uncompressed, since freetype will reference from memory pointer
-    xl_names = []
-    for i in range(len(source)):
-        print("Appending font: " + source[i].srcnode().abspath)
-        f = open(source[i].srcnode().abspath, "rb")
-        buf = f.read()
-        import os.path
-
-        name = os.path.splitext(os.path.basename(source[i].srcnode().abspath))[0]
-
-        g.write("static const int _font_" + name + "_size=" + str(len(buf)) + ";\n")
-        g.write("static const unsigned char _font_" + name + "[]={\n")
-        for i in range(len(buf)):
-            g.write(str(ord(buf[i])) + ",\n")
-
-        g.write("};\n")
-
-    g.write("#endif")
-
-
-if (env["tools"] != "no"):
-
-    import glob
-
-    dir = env.Dir('.').abspath
-    tlist = glob.glob(dir + "/translations/*.po")
-
-    print("translations: ", tlist)
-    env.Depends('#tools/editor/translations.h', tlist)
-    env.Command('#tools/editor/translations.h', tlist, make_translations_header)
-
-    flist = glob.glob(dir + "/editor_fonts/*.ttf")
-    flist.append(glob.glob(dir + "/editor_fonts/*.otf"))
-
-    print("fonts: ", flist)
-    env.Depends('#tools/editor/builtin_fonts.h', flist)
-    env.Command('#tools/editor/builtin_fonts.h', flist, make_fonts_header)
-
-    SConscript('editor/SCsub')
-    SConscript('collada/SCsub')
-    SConscript('doc/SCsub')
-
-    lib = env.Library("tool", env.tool_sources)
-
-    env.Prepend(LIBS=[lib])

+ 125 - 20
tools/editor/SCsub

@@ -1,9 +1,10 @@
 #!/usr/bin/env python
 
 Import('env')
+env.editor_sources = []
 
 
-def make_doc_header(target, source, env):
+def make_certs_header(target, source, env):
 
     src = source[0].srcnode().abspath
     dst = target[0].srcnode().abspath
@@ -15,18 +16,18 @@ def make_doc_header(target, source, env):
     buf = zlib.compress(buf)
 
     g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
-    g.write("#ifndef _DOC_DATA_RAW_H\n")
-    g.write("#define _DOC_DATA_RAW_H\n")
-    g.write("static const int _doc_data_compressed_size=" + str(len(buf)) + ";\n")
-    g.write("static const int _doc_data_uncompressed_size=" + str(decomp_size) + ";\n")
-    g.write("static const unsigned char _doc_data_compressed[]={\n")
+    g.write("#ifndef _CERTS_RAW_H\n")
+    g.write("#define _CERTS_RAW_H\n")
+    g.write("static const int _certs_compressed_size=" + str(len(buf)) + ";\n")
+    g.write("static const int _certs_uncompressed_size=" + str(decomp_size) + ";\n")
+    g.write("static const unsigned char _certs_compressed[]={\n")
     for i in range(len(buf)):
         g.write(str(ord(buf[i])) + ",\n")
     g.write("};\n")
     g.write("#endif")
 
 
-def make_certs_header(target, source, env):
+def make_doc_header(target, source, env):
 
     src = source[0].srcnode().abspath
     dst = target[0].srcnode().abspath
@@ -38,23 +39,104 @@ def make_certs_header(target, source, env):
     buf = zlib.compress(buf)
 
     g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
-    g.write("#ifndef _CERTS_RAW_H\n")
-    g.write("#define _CERTS_RAW_H\n")
-    g.write("static const int _certs_compressed_size=" + str(len(buf)) + ";\n")
-    g.write("static const int _certs_uncompressed_size=" + str(decomp_size) + ";\n")
-    g.write("static const unsigned char _certs_compressed[]={\n")
+    g.write("#ifndef _DOC_DATA_RAW_H\n")
+    g.write("#define _DOC_DATA_RAW_H\n")
+    g.write("static const int _doc_data_compressed_size=" + str(len(buf)) + ";\n")
+    g.write("static const int _doc_data_uncompressed_size=" + str(decomp_size) + ";\n")
+    g.write("static const unsigned char _doc_data_compressed[]={\n")
     for i in range(len(buf)):
         g.write(str(ord(buf[i])) + ",\n")
     g.write("};\n")
     g.write("#endif")
 
 
+def make_fonts_header(target, source, env):
+
+    dst = target[0].srcnode().abspath
+
+    g = open(dst, "wb")
+
+    g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
+    g.write("#ifndef _EDITOR_FONTS_H\n")
+    g.write("#define _EDITOR_FONTS_H\n")
+
+    # saving uncompressed, since freetype will reference from memory pointer
+    xl_names = []
+    for i in range(len(source)):
+        print("Appending font: " + source[i].srcnode().abspath)
+        f = open(source[i].srcnode().abspath, "rb")
+        buf = f.read()
+        import os.path
+
+        name = os.path.splitext(os.path.basename(source[i].srcnode().abspath))[0]
+
+        g.write("static const int _font_" + name + "_size=" + str(len(buf)) + ";\n")
+        g.write("static const unsigned char _font_" + name + "[]={\n")
+        for i in range(len(buf)):
+            g.write(str(ord(buf[i])) + ",\n")
+
+        g.write("};\n")
+
+    g.write("#endif")
+
+
+def make_translations_header(target, source, env):
+
+    dst = target[0].srcnode().abspath
+
+    g = open(dst, "wb")
+
+    g.write("/* THIS FILE IS GENERATED DO NOT EDIT */\n")
+    g.write("#ifndef _EDITOR_TRANSLATIONS_H\n")
+    g.write("#define _EDITOR_TRANSLATIONS_H\n")
+
+    import zlib
+    import os.path
+
+    paths = [node.srcnode().abspath for node in source]
+    sorted_paths = sorted(paths, key=lambda path: os.path.splitext(os.path.basename(path))[0])
+
+    xl_names = []
+    for i in range(len(sorted_paths)):
+        print("Appending translation: " + sorted_paths[i])
+        f = open(sorted_paths[i], "rb")
+        buf = f.read()
+        decomp_size = len(buf)
+        buf = zlib.compress(buf)
+        name = os.path.splitext(os.path.basename(sorted_paths[i]))[0]
+
+        #g.write("static const int _translation_"+name+"_compressed_size="+str(len(buf))+";\n")
+        #g.write("static const int _translation_"+name+"_uncompressed_size="+str(decomp_size)+";\n")
+        g.write("static const unsigned char _translation_" + name + "_compressed[]={\n")
+        for i in range(len(buf)):
+            g.write(str(ord(buf[i])) + ",\n")
+
+        g.write("};\n")
+
+        xl_names.append([name, len(buf), str(decomp_size)])
+
+    g.write("struct EditorTranslationList {\n")
+    g.write("\tconst char* lang;\n")
+    g.write("\tint comp_size;\n")
+    g.write("\tint uncomp_size;\n")
+    g.write("\tconst unsigned char* data;\n")
+    g.write("};\n\n")
+    g.write("static EditorTranslationList _editor_translations[]={\n")
+    for x in xl_names:
+        g.write("\t{ \"" + x[0] + "\", " + str(x[1]) + ", " + str(x[2]) + ",_translation_" + x[0] + "_compressed},\n")
+    g.write("\t{NULL,0,0,NULL}\n")
+    g.write("};\n")
+
+    g.write("#endif")
+
+
 if (env["tools"] == "yes"):
 
+    # Register exporters
     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")
+        env.editor_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'
@@ -63,18 +145,41 @@ if (env["tools"] == "yes"):
     f.write(reg_exporters)
     f.close()
 
+    # API documentation
     env.Depends("#tools/editor/doc_data_compressed.h", "#doc/base/classes.xml")
     env.Command("#tools/editor/doc_data_compressed.h", "#doc/base/classes.xml", make_doc_header)
 
-    env.Depends("#tools/editor/certs_compressed.h", "#tools/certs/ca-certificates.crt")
-    env.Command("#tools/editor/certs_compressed.h", "#tools/certs/ca-certificates.crt", make_certs_header)
+    # Certificates
+    env.Depends("#tools/editor/certs_compressed.h", "#thirdparty/certs/ca-certificates.crt")
+    env.Command("#tools/editor/certs_compressed.h", "#thirdparty/certs/ca-certificates.crt", make_certs_header)
 
-    # make_doc_header(env.File("#tools/editor/doc_data_raw.h").srcnode().abspath,env.File("#doc/base/classes.xml").srcnode().abspath,env)
+    import glob
+    path = env.Dir('.').abspath
 
-    env.add_source_files(env.tool_sources, "*.cpp")
+    # Translations
+    tlist = glob.glob(path + "/translations/*.po")
+    print("translations: ", tlist)
+    env.Depends('#tools/editor/translations.h', tlist)
+    env.Command('#tools/editor/translations.h', tlist, make_translations_header)
 
-    Export('env')
-    SConscript('icons/SCsub')
-    SConscript('plugins/SCsub')
+    # Fonts
+    flist = glob.glob(path + "/../../thirdparty/fonts/*.ttf")
+    flist.append(glob.glob(path + "/../../thirdparty/fonts/*.otf"))
+    print("fonts: ", flist)
+    env.Depends('#tools/editor/builtin_fonts.h', flist)
+    env.Command('#tools/editor/builtin_fonts.h', flist, make_fonts_header)
+
+
+    env.add_source_files(env.editor_sources, "*.cpp")
+
+    SConscript('collada/SCsub')
+    SConscript('doc/SCsub')
     SConscript('fileserver/SCsub')
+    SConscript('icons/SCsub')
     SConscript('io_plugins/SCsub')
+    SConscript('plugins/SCsub')
+
+    lib = env.Library("editor", env.editor_sources)
+    env.Prepend(LIBS=[lib])
+
+    Export('env')

+ 1 - 1
tools/collada/SCsub → tools/editor/collada/SCsub

@@ -2,6 +2,6 @@
 
 Import('env')
 
-env.add_source_files(env.tool_sources, "*.cpp")
+env.add_source_files(env.editor_sources, "*.cpp")
 
 Export('env')

+ 0 - 0
tools/collada/collada.cpp → tools/editor/collada/collada.cpp


+ 0 - 0
tools/collada/collada.h → tools/editor/collada/collada.h


+ 1 - 1
tools/doc/SCsub → tools/editor/doc/SCsub

@@ -2,6 +2,6 @@
 
 Import('env')
 
-env.add_source_files(env.tool_sources, "*.cpp")
+env.add_source_files(env.editor_sources, "*.cpp")
 
 Export('env')

+ 0 - 0
tools/doc/doc_data.cpp → tools/editor/doc/doc_data.cpp


+ 0 - 0
tools/doc/doc_data.h → tools/editor/doc/doc_data.h


+ 0 - 0
tools/doc/doc_dump.cpp → tools/editor/doc/doc_dump.cpp


+ 0 - 0
tools/doc/doc_dump.h → tools/editor/doc/doc_dump.h


+ 1 - 1
tools/editor/editor_help.h

@@ -40,7 +40,7 @@
 
 #include "scene/main/timer.h"
 #include "tools/editor/code_editor.h"
-#include "tools/doc/doc_data.h"
+#include "tools/editor/doc/doc_data.h"
 
 
 class EditorNode;

+ 1 - 1
tools/editor/fileserver/SCsub

@@ -2,4 +2,4 @@
 
 Import('env')
 Export('env')
-env.add_source_files(env.tool_sources, "*.cpp")
+env.add_source_files(env.editor_sources, "*.cpp")

+ 1 - 1
tools/editor/icons/SCsub

@@ -90,5 +90,5 @@ make_editor_icons_builder = Builder(action=make_editor_icons_action,
 env['BUILDERS']['MakeEditorIconsBuilder'] = make_editor_icons_builder
 env.Alias('editor_icons', [env.MakeEditorIconsBuilder('#tools/editor/editor_icons.cpp', Glob("*.png"))])
 
-env.tool_sources.append("#tools/editor/editor_icons.cpp")
+env.editor_sources.append("#tools/editor/editor_icons.cpp")
 Export('env')

+ 1 - 1
tools/editor/io_plugins/SCsub

@@ -2,4 +2,4 @@
 
 Import('env')
 Export('env')
-env.add_source_files(env.tool_sources, "*.cpp")
+env.add_source_files(env.editor_sources, "*.cpp")

+ 2 - 1
tools/editor/io_plugins/editor_import_collada.cpp

@@ -27,7 +27,7 @@
 /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                */
 /*************************************************************************/
 #include "editor_import_collada.h"
-#include "collada/collada.h"
+
 #include "scene/3d/spatial.h"
 #include "scene/3d/skeleton.h"
 #include "scene/3d/path.h"
@@ -38,6 +38,7 @@
 #include "scene/resources/animation.h"
 #include "scene/resources/packed_scene.h"
 #include "os/os.h"
+#include "tools/editor/collada/collada.h"
 #include "tools/editor/editor_node.h"
 #include <iostream>
 

+ 1 - 1
tools/editor/plugins/SCsub

@@ -2,4 +2,4 @@
 
 Import('env')
 Export('env')
-env.add_source_files(env.tool_sources, "*.cpp")
+env.add_source_files(env.editor_sources, "*.cpp")

+ 0 - 0
tools/translations/Makefile → tools/editor/translations/Makefile


+ 0 - 0
tools/translations/README.md → tools/editor/translations/README.md


+ 0 - 0
tools/translations/bn.po → tools/editor/translations/bn.po


+ 0 - 0
tools/translations/ca.po → tools/editor/translations/ca.po


+ 0 - 0
tools/translations/de.po → tools/editor/translations/de.po


+ 0 - 0
tools/translations/es.po → tools/editor/translations/es.po


+ 0 - 0
tools/translations/es_AR.po → tools/editor/translations/es_AR.po


+ 0 - 0
tools/translations/extract.py → tools/editor/translations/extract.py


+ 0 - 0
tools/translations/fa.po → tools/editor/translations/fa.po


+ 0 - 0
tools/translations/fr.po → tools/editor/translations/fr.po


+ 0 - 0
tools/translations/id.po → tools/editor/translations/id.po


+ 0 - 0
tools/translations/it.po → tools/editor/translations/it.po


Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov