Refactor mono on Linux to use dynamic linking

This commit is contained in:
mafiesto4
2021-01-17 22:33:29 +01:00
committed by Wojtek Figat
parent 4bd76b70f2
commit 3e0b753498
2 changed files with 20 additions and 10 deletions

View File

@@ -68,7 +68,11 @@ public class mono : DepsModule
break;
}
case TargetPlatform.Linux:
options.OutputFiles.Add(Path.Combine(depsRoot, "libmono-2.0.a"));
options.PrivateDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.DependencyFiles.Add(Path.Combine(depsRoot, "libmonosgen-2.0.so"));
options.DependencyFiles.Add(Path.Combine(depsRoot, "libmonosgen-2.0.so.1"));
options.DependencyFiles.Add(Path.Combine(depsRoot, "libmonosgen-2.0.so.1.0.0"));
options.Libraries.Add(Path.Combine(depsRoot, "libmonosgen-2.0.so"));
break;
case TargetPlatform.PS4:
options.OutputFiles.Add(Path.Combine(depsRoot, "libmono.a"));