Files
UnrealEngineUWP/Engine/Source/Programs/LowLevelTests/FoundationTests.Target.cs
joe pribele d2b78c257c Undo //Fortnite/Main/... changelist 25858318
[CL 25862359 by joe pribele in ue5-main branch]
2023-06-07 19:42:46 -04:00

29 lines
1.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
[SupportedPlatforms(UnrealPlatformClass.All)]
public class FoundationTestsTarget : TestTargetRules
{
public FoundationTestsTarget(TargetInfo Target) : base(Target)
{
// Collects all tests decorated with #if WITH_LOW_LEVELTESTS from dependencies
bWithLowLevelTestsOverride = true;
bBuildWithEditorOnlyData = Target.Platform.IsInGroup(UnrealPlatformGroup.Desktop)
&& (Target.Configuration == UnrealTargetConfiguration.Debug || Target.Configuration == UnrealTargetConfiguration.Development);
if (Target.Platform == UnrealTargetPlatform.Android)
{
string VersionScriptFile = Path.GetTempPath() + "LLTWorkaroundScrip.ldscript";
using (StreamWriter Writer = File.CreateText(VersionScriptFile))
{
// Workaround for a linker bug when building LowLevelTests for Android
Writer.WriteLine("{ local: *; };");
}
AdditionalLinkerArguments = " -Wl,--version-script=\"" + VersionScriptFile + "\"";
}
}
}