diff --git a/Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libNvCloth.a b/Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libNvCloth.a new file mode 100644 index 000000000..569db20de --- /dev/null +++ b/Source/Platforms/Mac/Binaries/ThirdParty/ARM64/libNvCloth.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ac9b222da70871221c00cb4a143ae9a6400244e92f321f2cc1313aa999f9bc9 +size 301400 diff --git a/Source/Platforms/Mac/Binaries/ThirdParty/x64/libNvCloth.a b/Source/Platforms/Mac/Binaries/ThirdParty/x64/libNvCloth.a new file mode 100644 index 000000000..69e23cabf --- /dev/null +++ b/Source/Platforms/Mac/Binaries/ThirdParty/x64/libNvCloth.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ca814f6aae7ee644da11440dfa5dacc0c70cb8ca25f6de70f6e6983f36bb907 +size 367504 diff --git a/Source/ThirdParty/NvCloth/NvCloth.Build.cs b/Source/ThirdParty/NvCloth/NvCloth.Build.cs index ea2bc02c8..3be1e903e 100644 --- a/Source/ThirdParty/NvCloth/NvCloth.Build.cs +++ b/Source/ThirdParty/NvCloth/NvCloth.Build.cs @@ -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: diff --git a/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs b/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs index 7288add63..23f4f6a27 100644 --- a/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs +++ b/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs @@ -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);