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

53 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class ToolMenusTests : TestModuleRules
{
static ToolMenusTests()
{
if (InTestMode)
{
TestMetadata = new Metadata();
TestMetadata.TestName = "ToolMenus";
TestMetadata.TestShortName = "ToolMenus";
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 ToolMenusTests(ReadOnlyTargetRules Target) : base(Target, true)
{
PrivateDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"Slate",
"SlateCore",
"ToolMenus"
});
if (Target.bBuildWithEditorOnlyData)
{
PrivateDependencyModuleNames.AddRange(
new string[] {
"DesktopPlatform"
});
}
}
}