Files
UnrealEngineUWP/Engine/Source/Programs/LowLevelTests/FoundationTests.Target.cs
joe pribele 0a1ccfbbc1 redoing 25858318
moved leak detection and Garbage collection to Plugin Manager
Before unmounting the plugin path, GC is ran, leaked detection for any references objects under the plugin path

#rb Justin.Marcus, Markus.Breyer
https://p4-swarm.epicgames.net/reviews/25611054

[CL 26214355 by joe pribele in ue5-main branch]
2023-06-23 14:22:58 -04:00

30 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;
bCompileWithPluginSupport = 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 + "\"";
}
}
}