From ae3b4ebb94ec4646941bd54219412a7c07e55d01 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sun, 30 Jun 2024 15:40:18 +0200 Subject: [PATCH] Generate built-in documentation header in GDExtension --- gdextension/SConstruct | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdextension/SConstruct b/gdextension/SConstruct index f9a6465..122f0be 100644 --- a/gdextension/SConstruct +++ b/gdextension/SConstruct @@ -40,6 +40,10 @@ sources += Glob("limboai/editor/*.cpp") sources += Glob("limboai/hsm/*.cpp") sources += Glob("limboai/util/*.cpp") +# Generate documentation header. +if env["target"] in ["editor", "template_debug"]: + doc_data = env.GodotCPPDocData("limboai/gen/doc_data.gen.cpp", source=Glob("limboai/doc_classes/*.xml")) + sources.append(doc_data) if env["platform"] == "macos": library = env.SharedLibrary(