summaryrefslogtreecommitdiff
path: root/methods.py
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-07 17:55:07 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-07 17:55:07 +0200
commit6b92dbfce2868f71926d2720014e45af999f21be (patch)
tree35c990a4f7ca16256bacba8a6c2e63286ff5ff1a /methods.py
parentedf8749691cc34cbdfdc275a945216991a99fba3 (diff)
parentf784fb200034629318df122b0651a00de2d7007e (diff)
Merge pull request #65438 from neikeq/replace-libnethost-dependency
Replace libnethost dependency to find hostfxr
Diffstat (limited to 'methods.py')
-rw-r--r--methods.py21
1 files changed, 6 insertions, 15 deletions
diff --git a/methods.py b/methods.py
index 649072d098..1f49da7ace 100644
--- a/methods.py
+++ b/methods.py
@@ -819,21 +819,12 @@ def generate_vs_project(env, num_jobs):
module_configs = ModuleConfigs()
if env.get("module_mono_enabled"):
- import modules.mono.build_scripts.mono_configure as mono_configure
-
- 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=app_host_dir,
- cli_args="module_mono_enabled=yes",
- defines=mono_defines,
- )
- else:
- print(".NET App Host directory not found. Generated project will not have build variants for .NET.")
+ mono_defines = [("GD_MONO_HOT_RELOAD",)] if env["tools"] else []
+ module_configs.add_mode(
+ "mono",
+ cli_args="module_mono_enabled=yes",
+ defines=mono_defines,
+ )
env["MSVSBUILDCOM"] = module_configs.build_commandline("scons")
env["MSVSREBUILDCOM"] = module_configs.build_commandline("scons vsproj=yes")