diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-20 17:52:03 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-20 17:52:03 +0100 |
commit | fe17e6d2f230de5a91b61d784d80c193473698e3 (patch) | |
tree | 283fc8b235eb0e5e40616bb2298b0650d0bf7acf | |
parent | 42d3e62455058bc4d7f45af6877812ea387b527a (diff) | |
parent | f461a005bd601b14c9d1980f9c703d791131b444 (diff) |
Merge pull request #71728 from akien-mga/doc-preserve-mono-settings
doc: Define dummy Mono settings to keep them in doctool
-rw-r--r-- | main/main.cpp | 8 |
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); |