Files
UnrealEngine/Engine/Source/Programs/SlateTests/SlateTests.Build.cs
2025-05-18 13:04:45 +08:00

60 lines
1.3 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.IO;
public class SlateTests : TestModuleRules
{
static SlateTests()
{
if (InTestMode)
{
TestMetadata = new Metadata();
TestMetadata.TestName = "Slate";
TestMetadata.TestShortName = "Slate";
TestMetadata.ReportType = "xml";
TestMetadata.SupportedPlatforms.Add(UnrealTargetPlatform.Linux);
TestMetadata.SupportedPlatforms.Add(UnrealTargetPlatform.Mac);
string PlatformCompilationArgs;
foreach (var Platform in UnrealTargetPlatform.GetValidPlatforms())
{
if (Platform == UnrealTargetPlatform.Android)
{
PlatformCompilationArgs = "-allmodules -architectures=arm64";
}
else
{
PlatformCompilationArgs = "-allmodules";
}
TestMetadata.PlatformCompilationExtraArgs.Add(Platform, PlatformCompilationArgs);
}
}
}
public SlateTests(ReadOnlyTargetRules Target) : base(Target, true)
{
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"Slate",
"SlateCore",
});
if (Target.bBuildWithEditorOnlyData)
{
PrivateDependencyModuleNames.AddRange(
new string[] {
"DesktopPlatform"
});
}
PrivateIncludePaths.AddRange(
new string[] {
Path.Combine(Target.RelativeEnginePath, "Source", "Runtime", "Slate", "Private"),
}
);
}
}