Files
UnrealEngineUWP/Engine/Source/Editor/EditorStyle/EditorStyle.Build.cs
Jamie Dale dd75632d20 EditorStyle now only uses DesktopPlatform when building an Editor or Program target
ReviewedBy Max.Preussner

[CL 2096442 by Jamie Dale in Main branch]
2014-06-05 19:50:26 -04:00

46 lines
1.1 KiB
C#

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class EditorStyle : ModuleRules
{
public EditorStyle(TargetInfo Target)
{
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"Slate",
}
);
PrivateDependencyModuleNames.AddRange(
new string[] {
"SlateCore",
}
);
PrivateIncludePathModuleNames.AddRange(
new string[] {
"Settings",
}
);
// DesktopPlatform is only available for Editor and Program targets (running on a desktop platform)
bool IsDesktopPlatformType = Target.Platform == UnrealBuildTool.UnrealTargetPlatform.Win32
|| Target.Platform == UnrealBuildTool.UnrealTargetPlatform.Win64
|| Target.Platform == UnrealBuildTool.UnrealTargetPlatform.Mac
|| Target.Platform == UnrealBuildTool.UnrealTargetPlatform.Linux;
if (Target.Type == TargetRules.TargetType.Editor || (Target.Type == TargetRules.TargetType.Program && IsDesktopPlatformType))
{
PrivateDependencyModuleNames.AddRange(
new string[] {
"DesktopPlatform",
}
);
}
OptimizeCode = CodeOptimization.Never;
}
}