Skip to content

Commit 0536d63

Browse files
authored
Merge pull request godotengine#39 from paddy-exe/update-godot-4.3
Update to 4.3 and support for GDExtension docs system
2 parents 9074766 + 5952c20 commit 0536d63

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This repository serves as a quickstart template for GDExtension development with
88
* GitHub CI/CD workflows to publish your library packages when creating a release (`.github/workflows/builds.yml`)
99
* GitHub CI/CD actions to build (`.github/actions/build/action.yml`) and to sign Mac frameworks (`.github/actions/build/sign.yml`).
1010
* preconfigured source files for C++ development of the GDExtension (`src/`)
11+
* setup to automatically generate `.xml` files in a `doc_classes/` directory to be parsed by Godot as [GDExtension built-in documentation](https://docs.godotengine.org/en/stable/tutorials/scripting/gdextension/gdextension_docs_system.html)
1112

1213
## Usage - Template
1314

SConstruct

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs})
5353
env.Append(CPPPATH=["src/"])
5454
sources = Glob("src/*.cpp")
5555

56+
if env["target"] in ["editor", "template_debug"]:
57+
try:
58+
doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
59+
sources.append(doc_data)
60+
except AttributeError:
61+
print("Not including class reference as we're targeting a pre-4.3 baseline.")
62+
5663
file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"])
5764

5865
if env["platform"] == "macos" or env["platform"] == "ios":

godot-cpp

Submodule godot-cpp updated 138 files

0 commit comments

Comments
 (0)