Fixes for Android
This commit is contained in:
6
Source/ThirdParty/nethost/nethost.Build.cs
vendored
6
Source/ThirdParty/nethost/nethost.Build.cs
vendored
@@ -66,7 +66,11 @@ public class nethost : ThirdPartyModule
|
||||
options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libnethost.a"));
|
||||
//options.OutputFiles.Add(Path.Combine(hostRuntime.Path, "libhostfxr.a"));
|
||||
break;
|
||||
case TargetPlatform.Android: break;
|
||||
case TargetPlatform.Android:
|
||||
options.PublicDefinitions.Add("USE_MONO_DYNAMIC_LIB");
|
||||
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "libmonosgen-2.0.so"));
|
||||
options.Libraries.Add(Path.Combine(hostRuntime.Path, "libmonosgen-2.0.so"));
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
options.DependencyFiles.Add(Path.Combine(FolderPath, "FlaxEngine.CSharp.runtimeconfig.json"));
|
||||
|
||||
Reference in New Issue
Block a user