You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
49 lines
1.2 KiB
C#
49 lines
1.2 KiB
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
using UnrealBuildTool;
|
|
|
|
public class FoundationTests : TestModuleRules
|
|
{
|
|
protected Metadata FoundationTestsMetadata = new Metadata() { TestName = "Foundation", TestShortName = "Foundation", ReportType = "xml" };
|
|
|
|
/// <summary>
|
|
/// Test metadata to be used with BuildGraph
|
|
/// </summary>
|
|
public Metadata TestMetadata
|
|
{
|
|
get { return FoundationTestsMetadata; }
|
|
}
|
|
|
|
public FoundationTests(ReadOnlyTargetRules Target) : base(Target, true)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core",
|
|
"Cbor",
|
|
"CoreUObject",
|
|
"TelemetryUtils"
|
|
});
|
|
|
|
if (Target.bBuildWithEditorOnlyData)
|
|
{
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"DesktopPlatform"
|
|
});
|
|
}
|
|
|
|
string PlatformCompilationArgs;
|
|
foreach (var Platform in UnrealTargetPlatform.GetValidPlatforms())
|
|
{
|
|
if (Platform == UnrealTargetPlatform.Android)
|
|
{
|
|
PlatformCompilationArgs = "-allmodules -architectures=arm64";
|
|
}
|
|
else
|
|
{
|
|
PlatformCompilationArgs = "-allmodules";
|
|
}
|
|
TestMetadata.PlatformCompilationExtraArgs.Add(Platform, PlatformCompilationArgs);
|
|
}
|
|
UpdateBuildGraphPropertiesFile(TestMetadata);
|
|
}
|
|
} |