diff --git a/Source/Platforms/Linux/Binaries/ThirdParty/x64/libassimp.so b/Source/Platforms/Linux/Binaries/ThirdParty/x64/libassimp.so new file mode 100755 index 000000000..d2083e0e0 --- /dev/null +++ b/Source/Platforms/Linux/Binaries/ThirdParty/x64/libassimp.so @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78f0f338fb63e7524c5e9bc6effcbd8664be5b0ad80f8bcd84ebeb455fa865e8 +size 122353944 diff --git a/Source/ThirdParty/assimp/assimp.Build.cs b/Source/ThirdParty/assimp/assimp.Build.cs index 078f208ea..b136a87fd 100644 --- a/Source/ThirdParty/assimp/assimp.Build.cs +++ b/Source/ThirdParty/assimp/assimp.Build.cs @@ -31,6 +31,9 @@ public class assimp : DepsModule options.DependencyFiles.Add(Path.Combine(depsRoot, "assimp-vc140-md.dll")); options.DelayLoadLibraries.Add("assimp-vc140-md.dll"); break; + case TargetPlatform.Linux: + options.DependencyFiles.Add(Path.Combine(depsRoot, "libassimp.so")); + break; default: throw new InvalidPlatformException(options.Platform.Target); } } diff --git a/Source/Tools/Flax.Build/Deps/Dependencies/Assimp.cs b/Source/Tools/Flax.Build/Deps/Dependencies/Assimp.cs index adb8031b7..3ff2dc071 100644 --- a/Source/Tools/Flax.Build/Deps/Dependencies/Assimp.cs +++ b/Source/Tools/Flax.Build/Deps/Dependencies/Assimp.cs @@ -24,6 +24,11 @@ namespace Flax.Deps.Dependencies { TargetPlatform.Windows, }; + case TargetPlatform.Linux: + return new[] + { + TargetPlatform.Linux, + }; default: return new TargetPlatform[0]; } } @@ -71,8 +76,8 @@ namespace Flax.Deps.Dependencies RunCmake(root, TargetPlatform.Linux, TargetArchitecture.x64); Utilities.Run("make", null, null, root, Utilities.RunOptions.None); var depsFolder = GetThirdPartyFolder(options, TargetPlatform.Linux, TargetArchitecture.x64); - // TODO: copy binaries - throw new NotImplementedException("TODO: building Assimp for Linux"); + Utilities.FileCopy(Path.Combine(root, "lib", "libassimp.so"), Path.Combine(depsFolder, "libassimp.so")); + break; } } }