Skip to content

Commit c4f12cc

Browse files
committed
Remove godot-headers submodule, copy files directly
With the new GDExtension API, the headers are just two files, one of which is generated and needs to always be kept in sync with the Godot engine version. So there's little practical use for using godot-headers as a submodule anymore, and it only makes godot-cpp updates more cumbersome. Custom headers (i.e. a custom API JSON) can still be used by passing the `headers_dir` SCons option.
1 parent 82bc102 commit c4f12cc

File tree

5 files changed

+231495
-4
lines changed

5 files changed

+231495
-4
lines changed

.gitmodules

-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
[submodule "godot-headers"]
2-
path = godot-headers
3-
url = https://github.com/godotengine/godot-headers

godot-headers

-1
This file was deleted.

godot-headers/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# godot-headers
2+
3+
This repository contains C headers for
4+
[**Godot Engine**](https://github.com/godotengine/godot)'s *GDNative Extensions* API.
5+
6+
## Updating Headers
7+
8+
If the current branch is not up-to-date for your needs, or if you want to sync
9+
the headers with your own modified version of Godot, here is the update
10+
procedure used to sync this repository with upstream releases:
11+
12+
- Compile [Godot Engine](https://github.com/godotengine/godot) at the specific
13+
version/commit which you are using.
14+
- Use the compiled executable to generate the `extension_api.json` file with:
15+
`godot --dump-extension-api extension_api.json`
16+
- Copy the file `core/extension/gdnative_interface.h` to `godot`

0 commit comments

Comments
 (0)