See Also
Docs
Steps
- [[#define-you-gdextension-file|Define you
.gdextension
file]] - Build Your GDExtension in Terminal
- Copy the build targets into your Godot project
See also: Using a Build Script.
Define you .gdextension
file
Define your .gdextension file in TOML syntax.
Example .gdextension
file for SwiftGodot
Build Your GDExtension in Terminal
See docs tutorial Section 3 step 4.
Run:
Copy the build targets into your Godot project
See docs tutorial Section 3 step 5 and 6.
How do we automate this?
There must be a way to automate this so that it is quicker, easier and less error prone. Perhaps we should use a makefile or a script? See Using a Build Script.
Using a Build Script
Here is an example build script1 which can be used to copy the build targets into your Godot project. And here is an explanation of how the script works.
And this is the .gdextension
file that the script was designed to work with.
Further Exploration
How does our GDExtension set up affect hot reloading?
It would be nice to be able to use Hot Reloading in SwiftGodot. I need to do more research to find out if this is currently viable and what the limitations are.
Footnotes
-
Thanks to Chris Backas for sharing his script. ↩