Add nethost usage for iOS build

This commit is contained in:
Wojtek Figat
2023-03-30 18:39:19 +02:00
parent 4528cce71c
commit 20ce4642ea
2 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,11 @@ public class nethost : ThirdPartyModule
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "libmonosgen-2.0.so"));
options.Libraries.Add(Path.Combine(hostRuntime.Path, "libmonosgen-2.0.so"));
break;
case TargetPlatform.iOS:
options.PublicDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.DependencyFiles.Add(Path.Combine(hostRuntime.Path, "libmonosgen-2.0.dylib"));
options.Libraries.Add(Path.Combine(hostRuntime.Path, "libmonosgen-2.0.dylib"));
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}
options.DependencyFiles.Add(Path.Combine(FolderPath, "FlaxEngine.CSharp.runtimeconfig.json"));