summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-20 13:10:00 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-20 13:13:38 +0100
commitf461a005bd601b14c9d1980f9c703d791131b444 (patch)
tree05a6ae56adfec671de5b4498ad6c225aaccda37d
parent621e32971edc27bd1c2f3528534423a5a805d8e7 (diff)
doc: Define dummy Mono settings to keep them in doctool
Revival of #54840.
-rw-r--r--main/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp
index e5d2ea3922..b9cb755cbf 100644
--- a/main/main.cpp
+++ b/main/main.cpp
@@ -2431,6 +2431,14 @@ bool Main::start() {
ERR_FAIL_COND_V_MSG(da.is_null(), false, "Argument supplied to --doctool must be a valid directory path.");
}
+#ifndef MODULE_MONO_ENABLED
+ // Hack to define .NET-specific project settings even on non-.NET builds,
+ // so that we don't lose their descriptions and default values in DocTools.
+ // Default values should be synced with mono_gd/gd_mono.cpp.
+ GLOBAL_DEF("dotnet/project/assembly_name", "");
+ GLOBAL_DEF("dotnet/project/solution_directory", "");
+#endif
+
Error err;
DocTools doc;
doc.generate(doc_base);