You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initialize CMake with the toolchain file as an argument. The toolchain file is only used to initialize CMake, which is the same on all platforms. You can put this code snippet in cmake\build.cmd:
The example CMake script looks for player.cpp and builds player.elf. It supports full C++ API and Godot run-time API.
Hero wanted: Add an integration to setup/configure cmake automatically from godot-sandbox
CMake is already automatically called once it has been configured from the Godot editor. Try saving a C++ file in the editor, and you will see that it only uses CMake instead of other methods.
The text was updated successfully, but these errors were encountered:
The Zig toolchain is an optional feature in godot-sandbox allowing you to build complex projects with dependencies from within the Godot editor.
scoop install git cmake ninja zig
Require zig greater than or equal to
0.13
version. Zig0.14
reduces binary size a lot.cmake
folder in the project root exactlyres://cmake
res://cmake/.gdignore
to ignore the contents.res://cmake/CMakeLists.txt
res://cmake/toolchain.cmake
Also, copy the remaining scripts from the cmake folder into
res://cmake/cmake
so that you now have:- res://cmake/cmake/zig-ar.cmd
- res://cmake/cmake/zig-ranlib.cmd
cmake\build.cmd
:The example CMake script looks for
player.cpp
and buildsplayer.elf
. It supports full C++ API and Godot run-time API.CMake is already automatically called once it has been configured from the Godot editor. Try saving a C++ file in the editor, and you will see that it only uses CMake instead of other methods.
The text was updated successfully, but these errors were encountered: