Skip to content

Commit

Permalink
Merge pull request #3 from akien-mga/classref-4.3
Browse files Browse the repository at this point in the history
Add class reference support with godot-cpp#1374.
  • Loading branch information
akien-mga authored May 7, 2024
2 parents 4ee5588 + 8b45e91 commit 39d6dae
Show file tree
Hide file tree
Showing 4 changed files with 353 additions and 2 deletions.
7 changes: 7 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ env = SConscript("godot-cpp/SConstruct")
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.")

if env["platform"] == "macos":
platlibname = "{}.{}.{}".format(libname, env["platform"], env["target"])
library = env.SharedLibrary(
Expand Down
2 changes: 1 addition & 1 deletion demo/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ config_version=5

config/name="GDExtension Threen Demo"
run/main_scene="res://node_2d.tscn"
config/features=PackedStringArray("4.1")
config/features=PackedStringArray("4.3")
config/icon="res://icon.png"
Loading

0 comments on commit 39d6dae

Please sign in to comment.