Fix mono compile

This commit is contained in:
mafiesto4
2021-02-01 09:59:25 +01:00
parent f77d0cc8fc
commit ed10c15069
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@
#include <ThirdParty/mono-2.0/mono/metadata/mono-config.h>
#include <ThirdParty/mono-2.0/mono/metadata/mono-gc.h>
#include <ThirdParty/mono-2.0/mono/metadata/profiler.h>
#if USE_MONO_DYNAMIC_LIB
#if !USE_MONO_DYNAMIC_LIB
#include <ThirdParty/mono-2.0/mono/utils/mono-dl-fallback.h>
#endif

View File

@@ -37,7 +37,7 @@ public class mono : DepsModule
if (useDynamicLinking)
{
// Dynamic linking (requires mono-2.0-sgen.dll to deploy side-by-side with the Flax)
options.PrivateDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.PublicDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.OutputFiles.Add(Path.Combine(depsRoot, "mono-2.0-sgen.lib"));
options.DependencyFiles.Add(Path.Combine(depsRoot, "mono-2.0-sgen.dll"));
options.OptionalDependencyFiles.Add(Path.Combine(depsRoot, "mono-2.0-sgen.pdb"));
@@ -68,7 +68,7 @@ public class mono : DepsModule
break;
}
case TargetPlatform.Linux:
options.PrivateDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.PublicDefinitions.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"));
@@ -81,7 +81,7 @@ public class mono : DepsModule
options.OutputFiles.Add(Path.Combine(depsRoot, "mono.a"));
break;
case TargetPlatform.Android:
options.PrivateDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.PublicDefinitions.Add("USE_MONO_DYNAMIC_LIB");
options.DependencyFiles.Add(Path.Combine(depsRoot, "libmonosgen-2.0.so"));
options.Libraries.Add(Path.Combine(depsRoot, "libmonosgen-2.0.so"));
break;