Add Assimp for Linux

This commit is contained in:
2020-12-23 21:27:29 +01:00
parent 87e026bd4f
commit 969367dc3e
3 changed files with 13 additions and 2 deletions
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78f0f338fb63e7524c5e9bc6effcbd8664be5b0ad80f8bcd84ebeb455fa865e8
size 122353944
+3
View File
@@ -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;
}
}
}