doc: Define dummy Mono settings to keep them in doctool

Revival of #54840.
This commit is contained in:
Rémi Verschelde 2023-01-20 13:10:00 +01:00
parent 621e32971e
commit f461a005bd
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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."); 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; Error err;
DocTools doc; DocTools doc;
doc.generate(doc_base); doc.generate(doc_base);