Add NvCloth for macOS

This commit is contained in:
Wojtek Figat
2023-07-15 11:22:00 +02:00
parent 24c03c0e4b
commit 6664972fbf
4 changed files with 17 additions and 0 deletions

BIN
Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libNvCloth.a (Stored with Git LFS) vendored Normal file

Binary file not shown.

BIN
Source/Platforms/Mac/Binaries/ThirdParty/x64/libNvCloth.a (Stored with Git LFS) vendored Normal file

Binary file not shown.

View File

@@ -35,6 +35,8 @@ public class NvCloth : DepsModule
case TargetPlatform.PS4:
case TargetPlatform.PS5:
case TargetPlatform.Android:
case TargetPlatform.Mac:
case TargetPlatform.iOS:
libName = "NvCloth";
break;
case TargetPlatform.Switch:

View File

@@ -82,6 +82,10 @@ namespace Flax.Deps.Dependencies
case TargetPlatform.Android:
Build(options, platform, TargetArchitecture.ARM64);
break;
case TargetPlatform.Mac:
Build(options, platform, TargetArchitecture.x64);
Build(options, platform, TargetArchitecture.ARM64);
break;
}
}
@@ -140,6 +144,11 @@ namespace Flax.Deps.Dependencies
envVars.Add("PM_ANDROIDNDK_PATH", AndroidNdk.Instance.RootPath);
}
break;
case TargetPlatform.Mac:
cmakeArgs += " -DTARGET_BUILD_PLATFORM=mac";
cmakeName = "mac";
binariesPrefix = "lib";
break;
default: throw new InvalidPlatformException(platform);
}
var cmakeFolder = Path.Combine(nvCloth, "compiler", "cmake", cmakeName);