mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
C#: Begin move to .NET Core
We're targeting .NET 5 for now to make development easier while .NET 6 is not yet released. TEMPORARY REGRESSIONS --------------------- Assembly unloading is not implemented yet. As such, many Godot resources are leaked at exit. This will be re-implemented later together with assembly hot-reloading.
This commit is contained in:
parent
513ee857a9
commit
f9a67ee9da
96 changed files with 2475 additions and 5615 deletions
17
methods.py
17
methods.py
|
@ -818,18 +818,21 @@ def generate_vs_project(env, num_jobs):
|
|||
module_configs = ModuleConfigs()
|
||||
|
||||
if env.get("module_mono_enabled"):
|
||||
import modules.mono.build_scripts.mono_reg_utils as mono_reg
|
||||
import modules.mono.build_scripts.mono_configure as mono_configure
|
||||
|
||||
mono_root = env.get("mono_prefix") or mono_reg.find_mono_root_dir(env["bits"])
|
||||
if mono_root:
|
||||
app_host_dir = mono_configure.find_dotnet_app_host_dir(env)
|
||||
if app_host_dir and os.path.isdir(app_host_dir):
|
||||
mono_defines = [("NETHOST_USE_AS_STATIC",)]
|
||||
if env["tools"]:
|
||||
mono_defines += [("GD_MONO_HOT_RELOAD",)]
|
||||
module_configs.add_mode(
|
||||
"mono",
|
||||
includes=os.path.join(mono_root, "include", "mono-2.0"),
|
||||
cli_args="module_mono_enabled=yes mono_glue=yes",
|
||||
defines=[("MONO_GLUE_ENABLED",)],
|
||||
includes=app_host_dir,
|
||||
cli_args="module_mono_enabled=yes",
|
||||
defines=mono_defines,
|
||||
)
|
||||
else:
|
||||
print("Mono installation directory not found. Generated project will not have build variants for Mono.")
|
||||
print(".NET App Host directory not found. Generated project will not have build variants for .NET.")
|
||||
|
||||
env["MSVSBUILDCOM"] = module_configs.build_commandline("scons")
|
||||
env["MSVSREBUILDCOM"] = module_configs.build_commandline("scons vsproj=yes")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue