Files
UnrealEngine/Engine/Source/Programs/ToolMenusTests/ToolMenusTests.Build.cs
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05: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"
});
}
}
}