How cubeww/godot-aot works
This is a Godot 4.7 fork whose distinguishing product capability is selectable GDScript ahead-of-time export: the editor validates a native-AOT preset, generates C++, builds a project-specific executable, and packages resources with script markers rather than source or bytecode. The regular editor and runtime continue to use the GDScript VM. The README documents the AOT stages, but their implementation files are not present in the supplied tree; those subsystem paths and links therefore reflect documented behavior, not inspected source. The graph also includes a compact view of the engine and editor layers identified by the source index.
Main entry points: editor Godot editor · main.cpp Engine startup · gdscript Native generation · export_template_manager.cpp Export management
Components 22
AOT export
- Export preset
modules/gdscript - Export validation
modules/gdscript - Native template
modules/gdscript - Project executable
modules/gdscript - Resource packaging
modules/gdscript
GDScript backend
- Native generation
modules/gdscript - Script markers
modules/gdscript - GDScript VM
modules/gdscript
Editor and runtime
- Godot editor
editor - Export management
editor/export/export_template_manager.cpp - Editor interfaces
editor/editor_node.h
Godot engine
- Engine startup
main/main.cpp - Engine configuration
core/config/engine.cpp - Project settings
core/config/project_settings.h - Resource loading
core/io/resource_loader.h - Object and calls
core/object/object.h - Platform services
core/os/os.h - Display server
servers/display/display_server.h - Engine version
core/version.h
Other components
- Project developer
- Native toolchain
- Exported game
Connections 22
- Project developer → Export preset: selects backend
README.md - Godot editor → Export preset: configures
README.md - Export preset → Export validation: selects AOT
README.md - Export validation → Native generation: validates inputs
README.md - Native generation → Native template: generates C++
README.md - Native template → Native toolchain: builds with
README.md - Native toolchain → Project executable: compiles and links
README.md - Native generation → Script markers: creates markers
README.md - Godot editor → Resource packaging: exports resources
README.md - Project executable → Exported game: ships with
README.md - Resource packaging → Exported game: packages
README.md - Script markers → Exported game: included in pack
README.md - Godot editor → GDScript VM: runs scripts in
README.md - Engine startup → Engine configuration: uses
main/main.cpp - Engine startup → Project settings: uses
main/main.cpp - Engine startup → Resource loading: uses
main/main.cpp - Engine startup → Object and calls: uses
main/main.cpp - Engine startup → Platform services: uses
main/main.cpp - Engine startup → Engine version: uses
main/main.cpp - Godot editor → Export management: manages templates
editor/export/export_template_manager.cpp - Godot editor → Editor interfaces: uses
editor/export/export_template_manager.cpp - Godot editor → Display server: uses
editor/export/export_template_manager.cpp