Mac impl progress

This commit is contained in:
Wojtek Figat
2021-12-30 16:30:38 +01:00
parent d0d9bf751d
commit 039f5f6e15
4 changed files with 32 additions and 6 deletions

View File

@@ -234,8 +234,6 @@ namespace Flax.Build
{
if (options.Platform.Target == TargetPlatform.PS5)
return false; // TODO: mono for ps5
if (options.Platform.Target == TargetPlatform.Mac)
return false; // TODO: mono for Mac
return UseCSharp || options.Target.IsEditor;
}
}

View File

@@ -40,6 +40,11 @@ namespace Flax.Deps.Dependencies
TargetPlatform.Linux,
TargetPlatform.Android,
};
case TargetPlatform.Mac:
return new[]
{
TargetPlatform.Mac,
};
default: return new TargetPlatform[0];
}
}
@@ -707,6 +712,26 @@ namespace Flax.Deps.Dependencies
method.Invoke(null, new object[] { root, options });
break;
}
case TargetPlatform.Mac:
{
var monoOptions = new[]
{
"--with-xen-opt=no",
"--without-ikvm-native",
"--disable-boehm",
"--disable-nls",
"--disable-iconv",
//"--disable-mcs-build",
"--with-mcs-docs=no",
"--with-tls=pthread",
//"--enable-static",
"--enable-maintainer-mode",
};
var buildDir = Path.Combine(root, "build-mac");
// Build mono
break;
}
}
}
}