Add Assimp for Linux
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:78f0f338fb63e7524c5e9bc6effcbd8664be5b0ad80f8bcd84ebeb455fa865e8
|
||||
size 122353944
|
||||
+3
@@ -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