Add Assimp for Linux

This commit is contained in:
mafiesto4
2020-12-23 21:27:29 +01:00
parent 87e026bd4f
commit 969367dc3e
3 changed files with 13 additions and 2 deletions

BIN
Source/Platforms/Linux/Binaries/ThirdParty/x64/libassimp.so (Stored with Git LFS) vendored Executable file

Binary file not shown.

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);
}
}

View File

@@ -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;
}
}
}