summaryrefslogtreecommitdiff
path: root/modules/mono/config.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 /modules/mono/config.py
parentedf8749691cc34cbdfdc275a945216991a99fba3 (diff)
parentf784fb200034629318df122b0651a00de2d7007e (diff)
Merge pull request #65438 from neikeq/replace-libnethost-dependency
Replace libnethost dependency to find hostfxr
Diffstat (limited to 'modules/mono/config.py')
-rw-r--r--modules/mono/config.py20
1 files changed, 5 insertions, 15 deletions
diff --git a/modules/mono/config.py b/modules/mono/config.py
index ad78c8c898..15fe79ef8c 100644
--- a/modules/mono/config.py
+++ b/modules/mono/config.py
@@ -4,23 +4,13 @@ supported_platforms = ["windows", "macos", "linuxbsd"]
def can_build(env, platform):
- return not env["arch"].startswith("rv")
+ if env["arch"].startswith("rv"):
+ return False
+ if env["tools"]:
+ env.module_add_dependencies("mono", ["regex"])
-def get_opts(platform):
- from SCons.Variables import BoolVariable, PathVariable
-
- default_mono_static = platform in ["ios", "web"]
- default_mono_bundles_zlib = platform in ["web"]
-
- return [
- PathVariable(
- "dotnet_root",
- "Path to the .NET Sdk installation directory for the target platform and architecture",
- "",
- PathVariable.PathAccept,
- ),
- ]
+ return True
def configure(env):