Skip to content

Commit c3b3cc0

Browse files
authored
Merge pull request #11 from dsnopek/include-docs-in-extension
Include API documentation in the editor
2 parents 789e3b7 + b6f1e24 commit c3b3cc0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
.cxx
1616
local.properties
1717
/thirdparty/ovr_platform_sdk/
18+
/toolkit/src/gen/
1819

1920
# Binaries
2021
*.o

SConstruct

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ sources += Glob("#toolkit/src/main/cpp/export/*.cpp")
3232
sources += Glob("#toolkit/src/main/cpp/platform_sdk/*.cpp")
3333
sources += Glob("#toolkit/gen/src/*.cpp")
3434

35+
if env["target"] in ["editor", "template_debug"]:
36+
doc_data = env.GodotCPPDocData("#toolkit/src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
37+
sources.append(doc_data)
38+
3539
binary_path = '#demo/addons/godot_meta_toolkit/.bin'
3640
android_src_path = '#toolkit/src'
3741
project_name = 'godot_meta_toolkit'

0 commit comments

Comments
 (0)