Add Assimp for Linux
This commit is contained in:
BIN
Source/Platforms/Linux/Binaries/ThirdParty/x64/libassimp.so
(Stored with Git LFS)
vendored
Executable file
BIN
Source/Platforms/Linux/Binaries/ThirdParty/x64/libassimp.so
(Stored with Git LFS)
vendored
Executable file
Binary file not shown.
3
Source/ThirdParty/assimp/assimp.Build.cs
vendored
3
Source/ThirdParty/assimp/assimp.Build.cs
vendored
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user