Add NvCloth for iOS

This commit is contained in:
Wojtek Figat
2023-07-15 11:27:26 +02:00
parent 6664972fbf
commit 18fb7fb849
3 changed files with 12 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
#include "SkinnedModelLOD.h" #include "SkinnedModelLOD.h"
#include "MeshDeformation.h" #include "MeshDeformation.h"
#include "Engine/Core/Log.h" #include "Engine/Core/Log.h"
#include "Engine/Core/Math/Transform.h"
#include "Engine/Graphics/GPUDevice.h" #include "Engine/Graphics/GPUDevice.h"
#include "Engine/Content/Assets/Model.h" #include "Engine/Content/Assets/Model.h"
#include "Engine/Serialization/MemoryReadStream.h" #include "Engine/Serialization/MemoryReadStream.h"

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

Binary file not shown.

View File

@@ -86,6 +86,9 @@ namespace Flax.Deps.Dependencies
Build(options, platform, TargetArchitecture.x64); Build(options, platform, TargetArchitecture.x64);
Build(options, platform, TargetArchitecture.ARM64); Build(options, platform, TargetArchitecture.ARM64);
break; break;
case TargetPlatform.iOS:
Build(options, platform, TargetArchitecture.ARM64);
break;
} }
} }
@@ -149,6 +152,11 @@ namespace Flax.Deps.Dependencies
cmakeName = "mac"; cmakeName = "mac";
binariesPrefix = "lib"; binariesPrefix = "lib";
break; break;
case TargetPlatform.iOS:
cmakeArgs += " -DTARGET_BUILD_PLATFORM=ios";
cmakeName = "ios";
binariesPrefix = "lib";
break;
default: throw new InvalidPlatformException(platform); default: throw new InvalidPlatformException(platform);
} }
var cmakeFolder = Path.Combine(nvCloth, "compiler", "cmake", cmakeName); var cmakeFolder = Path.Combine(nvCloth, "compiler", "cmake", cmakeName);