Add Editor for Mac impl progress

This commit is contained in:
Wojtek Figat
2021-12-31 17:12:55 +01:00
parent 45117e3445
commit 9b991bcfdf
12 changed files with 29 additions and 0 deletions

View File

@@ -531,6 +531,8 @@ void EngineImpl::InitPaths()
Globals::MonoPath = Globals::StartupFolder / TEXT("Source/Platforms/Editor/Windows/Mono");
#elif PLATFORM_LINUX
Globals::MonoPath = Globals::StartupFolder / TEXT("Source/Platforms/Editor/Linux/Mono");
#elif PLATFORM_MAC
Globals::MonoPath = Globals::StartupFolder / TEXT("Source/Platforms/Editor/Mac/Mono");
#else
#error "Please specify the Mono data location for Editor on this platform."
#endif

View File

@@ -270,6 +270,8 @@ bool ShaderAssetBase::LoadShaderCache(ShaderCacheResult& result)
platformDefine.Name = "PLATFORM_WINDOWS";
#elif PLATFORM_LINUX
platformDefine.Name = "PLATFORM_LINUX";
#elif PLATFORM_MAC
platformDefine.Name = "PLATFORM_MAC";
#else
#error "Unknown platform."
#endif

View File

@@ -53,6 +53,8 @@ public class ShadersCompilation : EngineModule
case TargetPlatform.Linux:
options.PrivateDependencies.Add("ShaderCompilerVulkan");
break;
case TargetPlatform.Mac:
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}

View File

@@ -56,6 +56,7 @@ public class ModelTool : EngineModule
options.PrivateDependencies.Add("UVAtlas");
break;
case TargetPlatform.Linux:
case TargetPlatform.Mac:
break;
default: throw new InvalidPlatformException(options.Platform.Target);
}