74 lines
2.1 KiB
C#
74 lines
2.1 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
|
|
public class FoundationTests : TestModuleRules
|
|
{
|
|
static FoundationTests()
|
|
{
|
|
if (InTestMode)
|
|
{
|
|
TestMetadata = new Metadata();
|
|
TestMetadata.TestName = "Foundation";
|
|
TestMetadata.TestShortName = "Foundation";
|
|
TestMetadata.ReportType = "xml";
|
|
TestMetadata.SupportedPlatforms.Add(UnrealTargetPlatform.Linux);
|
|
TestMetadata.SupportedPlatforms.Add(UnrealTargetPlatform.Mac);
|
|
TestMetadata.SupportedPlatforms.Add(UnrealTargetPlatform.Android);
|
|
TestMetadata.SupportedPlatforms.Add(UnrealTargetPlatform.IOS);
|
|
|
|
string PlatformCompilationArgs;
|
|
foreach (var Platform in UnrealTargetPlatform.GetValidPlatforms())
|
|
{
|
|
if (Platform == UnrealTargetPlatform.Android)
|
|
{
|
|
PlatformCompilationArgs = "-allmodules -architectures=arm64";
|
|
}
|
|
else
|
|
{
|
|
PlatformCompilationArgs = "-allmodules";
|
|
}
|
|
TestMetadata.PlatformCompilationExtraArgs.Add(Platform, PlatformCompilationArgs);
|
|
}
|
|
|
|
// Platform-specific tags
|
|
TestMetadata.PlatformTags.Add(UnrealTargetPlatform.Linux, "~[.]~[Slow]");
|
|
TestMetadata.PlatformTags.Add(UnrealTargetPlatform.Android, "~[Perf]~[Slow]~[AndroidSkip]");
|
|
|
|
// Allow Android run for this test
|
|
// Will remove Android from PlatformsRunUnsupported as more diverse types of tests can run on this platform
|
|
TestMetadata.PlatformsRunUnsupported.Remove(UnrealTargetPlatform.Android);
|
|
}
|
|
}
|
|
public FoundationTests(ReadOnlyTargetRules Target) : base(Target, true)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
"Cbor",
|
|
"CoreUObject",
|
|
"TelemetryUtils",
|
|
"AssetRegistry",
|
|
"Serialization",
|
|
});
|
|
|
|
if (Target.bBuildWithEditorOnlyData)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"DesktopPlatform",
|
|
"ShaderPreprocessor"
|
|
});
|
|
}
|
|
|
|
if (Target.bBuildWithEditorOnlyData &&
|
|
(Target.Platform == UnrealTargetPlatform.Mac ||
|
|
Target.Platform == UnrealTargetPlatform.Win64 ||
|
|
Target.Platform == UnrealTargetPlatform.Linux))
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"ShaderCompilerCommon",
|
|
});
|
|
}
|
|
}
|
|
} |