Skip to content

Commit c63b6d1

Browse files
authored
Update the gdextension api json to Godot 4.3 dev3 (#95)
1 parent 99cc7fe commit c63b6d1

File tree

6 files changed

+292091
-19
lines changed

6 files changed

+292091
-19
lines changed

.github/workflows/build-addon-on-push.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ jobs:
7777
- name: Create extension library
7878
run: |
7979
cd aar
80-
scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }}
81-
scons platform=${{ matrix.platform }} target=template_release ${{ matrix.flags }}
80+
scons platform=${{ matrix.platform }} target=template_debug ${{ matrix.flags }} custom_api_file=thirdparty/godot_cpp_gdextension_api/extension_api.json
81+
scons platform=${{ matrix.platform }} target=template_release ${{ matrix.flags }} custom_api_file=thirdparty/godot_cpp_gdextension_api/extension_api.json
8282
cd ..
8383
8484
# On Android we build our loaders and build our extension with gradlew
@@ -94,10 +94,10 @@ jobs:
9494
- name: Create Godot-CPP library
9595
run: |
9696
cd aar/thirdparty/godot-cpp
97-
scons platform=${{ matrix.platform }} target=template_debug arch=arm64
98-
scons platform=${{ matrix.platform }} target=template_release arch=arm64
99-
scons platform=${{ matrix.platform }} target=template_debug arch=x86_64
100-
scons platform=${{ matrix.platform }} target=template_release arch=x86_64
97+
scons platform=${{ matrix.platform }} target=template_debug arch=arm64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
98+
scons platform=${{ matrix.platform }} target=template_release arch=arm64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
99+
scons platform=${{ matrix.platform }} target=template_debug arch=x86_64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
100+
scons platform=${{ matrix.platform }} target=template_release arch=x86_64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
101101
cd ../../..
102102
if: matrix.platform == 'android'
103103
- name: Create Godot OpenXR Vendors AARs

.github/workflows/mavencentral-publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- name: Release build
4040
run: |
4141
cd thirdparty/godot-cpp
42-
scons platform=android target=template_debug arch=arm64
43-
scons platform=android target=template_release arch=arm64
44-
scons platform=android target=template_debug arch=x86_64
45-
scons platform=android target=template_release arch=x86_64
42+
scons platform=android target=template_debug arch=arm64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
43+
scons platform=android target=template_release arch=arm64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
44+
scons platform=android target=template_debug arch=x86_64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
45+
scons platform=android target=template_release arch=x86_64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
4646
cd ../..
4747
./gradlew -Prelease_version=${{ github.ref_name }} build
4848

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ git submodule update --init
2121
Build the Android C++ bindings using the following commands.
2222
```
2323
cd thirdparty/godot-cpp
24-
scons platform=android target=template_debug arch=arm64
25-
scons platform=android target=template_release arch=arm64
26-
scons platform=android target=template_debug arch=x86_64
27-
scons platform=android target=template_release arch=x86_64
24+
scons platform=android target=template_debug arch=arm64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
25+
scons platform=android target=template_release arch=arm64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
26+
scons platform=android target=template_debug arch=x86_64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
27+
scons platform=android target=template_release arch=x86_64 custom_api_file=../godot_cpp_gdextension_api/extension_api.json
2828
```
2929

3030
When the command is completed, you should have static libraries stored in `thirdparty/godot-cpp/bin`
@@ -33,10 +33,10 @@ that will be used for compilation by the plugin.
3333
### Building the Plugin
3434
Run the following command from the root directory to generate the editor gdextension plugin:
3535
```
36-
scons target=template_debug
37-
scons target=template_release
38-
scons target=template_debug platform=android
39-
scons target=template_release platform=android
36+
scons target=template_debug custom_api_file=thirdparty/godot_cpp_gdextension_api/extension_api.json
37+
scons target=template_release custom_api_file=thirdparty/godot_cpp_gdextension_api/extension_api.json
38+
scons target=template_debug platform=android custom_api_file=thirdparty/godot_cpp_gdextension_api/extension_api.json
39+
scons target=template_release platform=android custom_api_file=thirdparty/godot_cpp_gdextension_api/extension_api.json
4040
```
4141

4242
#### Linux / MacOS
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# GDExtension API
2+
3+
This directory contains the API JSON for
4+
[**Godot Engine**](https://github.com/godotengine/godot)'s *GDExtensions* API.
5+
6+
## Current API version
7+
- **Godot Engine v4.3.dev.custom_build**
8+
- [commit 81f3d43cc1ba01136795fb2059bbaa55bc514a16](https://github.com/godotengine/godot/commit/81f3d43cc1ba01136795fb2059bbaa55bc514a16)
9+
10+
## Updating API
11+
12+
The API JSON is synced with the latest version of Godot used when developing the plugin. Here is the
13+
update procedure:
14+
15+
- Compile [Godot Engine](https://github.com/godotengine/godot) at the specific
16+
version/commit which you are using.
17+
* Or if you use an official release, download that version of the Godot editor.
18+
- Use the compiled or downloaded executable to generate the `extension_api.json` file with:
19+
20+
```
21+
godot --dump-extension-api
22+
```
23+
- Copy the generated `extension_api.json` file into this directory

0 commit comments

Comments
 (0)