Update to 4.3 and support for GDExtension docs system

This commit is contained in:
Patrick Exner
2024-08-16 20:39:39 +02:00
parent 9074766ffe
commit 5952c207bb
3 changed files with 9 additions and 1 deletions

View File

@@ -53,6 +53,13 @@ env = SConscript("godot-cpp/SConstruct", {"env": env, "customs": customs})
env.Append(CPPPATH=["src/"])
sources = Glob("src/*.cpp")
if env["target"] in ["editor", "template_debug"]:
try:
doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
sources.append(doc_data)
except AttributeError:
print("Not including class reference as we're targeting a pre-4.3 baseline.")
file = "{}{}{}".format(libname, env["suffix"], env["SHLIBSUFFIX"])
if env["platform"] == "macos" or env["platform"] == "ios":