60 lines
1.3 KiB
C#
60 lines
1.3 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class SlateCore : ModuleRules
|
|
{
|
|
public SlateCore(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
StaticAnalyzerDisabledCheckers.Add("core.uninitialized.ArraySubscript");
|
|
|
|
PrivateDefinitions.Add("UE_REPORT_SLATE_VECTOR_DEPRECATION=1");
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
"CoreUObject",
|
|
"DeveloperSettings",
|
|
"InputCore",
|
|
"Json",
|
|
"TraceLog",
|
|
});
|
|
|
|
if (Target.bCompileAgainstApplicationCore)
|
|
{
|
|
PublicDependencyModuleNames.Add("ApplicationCore");
|
|
}
|
|
|
|
if (Target.Type != TargetType.Server)
|
|
{
|
|
if (Target.bCompileFreeType)
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "FreeType2");
|
|
PublicDefinitions.Add("WITH_FREETYPE=1");
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("WITH_FREETYPE=0");
|
|
}
|
|
|
|
if (Target.bCompileICU)
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "ICU");
|
|
}
|
|
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "HarfBuzz");
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "Nanosvg");
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("WITH_FREETYPE=0");
|
|
PublicDefinitions.Add("WITH_HARFBUZZ=0");
|
|
}
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win64)
|
|
{
|
|
AddEngineThirdPartyPrivateStaticDependencies(Target, "XInput");
|
|
}
|
|
}
|
|
}
|