From 18fb7fb849eaa52254e3f7e192b9cfb6213115df Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 15 Jul 2023 11:27:26 +0200 Subject: [PATCH] Add NvCloth for iOS --- Source/Engine/Graphics/Models/SkinnedModelLOD.cpp | 1 + .../Platforms/iOS/Binaries/ThirdParty/ARM64/libNvCloth.a | 3 +++ Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs | 8 ++++++++ 3 files changed, 12 insertions(+) create mode 100644 Source/Platforms/iOS/Binaries/ThirdParty/ARM64/libNvCloth.a diff --git a/Source/Engine/Graphics/Models/SkinnedModelLOD.cpp b/Source/Engine/Graphics/Models/SkinnedModelLOD.cpp index 0e2b60aea..ada7d89f2 100644 --- a/Source/Engine/Graphics/Models/SkinnedModelLOD.cpp +++ b/Source/Engine/Graphics/Models/SkinnedModelLOD.cpp @@ -3,6 +3,7 @@ #include "SkinnedModelLOD.h" #include "MeshDeformation.h" #include "Engine/Core/Log.h" +#include "Engine/Core/Math/Transform.h" #include "Engine/Graphics/GPUDevice.h" #include "Engine/Content/Assets/Model.h" #include "Engine/Serialization/MemoryReadStream.h" diff --git a/Source/Platforms/iOS/Binaries/ThirdParty/ARM64/libNvCloth.a b/Source/Platforms/iOS/Binaries/ThirdParty/ARM64/libNvCloth.a new file mode 100644 index 000000000..63187c05f --- /dev/null +++ b/Source/Platforms/iOS/Binaries/ThirdParty/ARM64/libNvCloth.a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5257892706e3ec0360fc4a323f09c0b30fa3991f4b9d4bce56a77f2b5fe0eb6 +size 300696 diff --git a/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs b/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs index 23f4f6a27..b096eef24 100644 --- a/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs +++ b/Source/Tools/Flax.Build/Deps/Dependencies/NvCloth.cs @@ -86,6 +86,9 @@ namespace Flax.Deps.Dependencies Build(options, platform, TargetArchitecture.x64); Build(options, platform, TargetArchitecture.ARM64); break; + case TargetPlatform.iOS: + Build(options, platform, TargetArchitecture.ARM64); + break; } } @@ -149,6 +152,11 @@ namespace Flax.Deps.Dependencies cmakeName = "mac"; binariesPrefix = "lib"; break; + case TargetPlatform.iOS: + cmakeArgs += " -DTARGET_BUILD_PLATFORM=ios"; + cmakeName = "ios"; + binariesPrefix = "lib"; + break; default: throw new InvalidPlatformException(platform); } var cmakeFolder = Path.Combine(nvCloth, "compiler", "cmake", cmakeName);