Mac support progress

This commit is contained in:
Wojtek Figat
2021-12-28 17:07:18 +01:00
parent 2d0633c05a
commit a1ef7ddcf7
9 changed files with 428 additions and 57 deletions

View File

@@ -70,6 +70,12 @@ namespace Flax.Build
monoPath = Path.Combine(monoRoot, "bin", "mono");
cscPath = Path.Combine(monoRoot, "lib", "mono", "4.5", "csc.exe");
break;
case TargetPlatform.Mac:
// TODO: use bundled mono for Mac with csc
monoRoot = Path.Combine(Globals.EngineRoot, "Source", "Platforms", "Editor", "Linux", "Mono");
monoPath = null;
cscPath = "csc";
break;
default: throw new InvalidPlatformException(buildPlatform);
}
var referenceAssemblies = Path.Combine(monoRoot, "lib", "mono", "4.5-api");