Add NvCloth for macOS
This commit is contained in:
BIN
Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libNvCloth.a
(Stored with Git LFS)
vendored
Normal file
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
BIN
Source/Platforms/Mac/Binaries/ThirdParty/x64/libNvCloth.a
(Stored with Git LFS)
vendored
Normal file
Binary file not shown.
2
Source/ThirdParty/NvCloth/NvCloth.Build.cs
vendored
2
Source/ThirdParty/NvCloth/NvCloth.Build.cs
vendored
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user