This is a very basic template for Godot 4.5 for C++.
- godot-cpp (-b 4.5) repo as a sub-module
- Empty godot project
- include directory for project headers
- src directory for the code (has a basic register_types.cpp for binding classes)
- SCons (requires python) file for building
-
The temporary name used is 'NEXTGAME', which is used for .gdextension file name, all linked libraries, and the entry symbol used for initiliasing the module (entry symbol is in .gdextension file and the method in
src/register_types.cpp). -
By default, 'compile_commands.json' is always generated (can be changed in
SConstruct). -
By default, if
sconscommand is used, your current platform is used for building. Can specify usingplatform=<OS>.
Find more info, and see the example on Godot online documentation. GDExtension(C++) - docs