2022-07-13 03:55:05 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
2022-07-13 03:11:55 -04:00
|
|
|
|
2023-02-13 21:22:03 -05:00
|
|
|
using System;
|
2022-07-13 03:11:55 -04:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace UnrealBuildTool.Rules
|
|
|
|
|
{
|
|
|
|
|
public class ReplicationSystemTestPlugin : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public ReplicationSystemTestPlugin(ReadOnlyTargetRules Target) : base(Target)
|
|
|
|
|
{
|
|
|
|
|
// We never want to precompile this plugin
|
|
|
|
|
PrecompileForTargets = PrecompileTargetsType.None;
|
|
|
|
|
|
|
|
|
|
PrivateIncludePaths.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
2023-02-17 12:45:29 -05:00
|
|
|
Path.Combine(GetModuleDirectory("IrisCore"), "Private"),
|
2022-07-13 03:11:55 -04:00
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PublicDependencyModuleNames.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
|
|
|
|
"Core",
|
|
|
|
|
"Projects",
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
|
|
|
|
"CoreUObject",
|
|
|
|
|
"Engine",
|
|
|
|
|
"NetCore",
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
2023-02-13 20:09:19 -05:00
|
|
|
if (Target.IsTestTarget)
|
|
|
|
|
{
|
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
|
|
|
new string[]
|
|
|
|
|
{
|
|
|
|
|
"LowLevelTestsRunner",
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
2023-04-27 14:04:51 -04:00
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
// For validation of compatibility with low-level tests even when not running them
|
|
|
|
|
PrivateDependencyModuleNames.Add("Catch2");
|
|
|
|
|
}
|
2022-07-13 03:11:55 -04:00
|
|
|
|
2023-02-13 21:22:03 -05:00
|
|
|
PrivateDefinitions.Add(String.Format("UE_NET_WITH_LOW_LEVEL_TESTS={0}", Target.ExplicitTestsTarget ? "1" : "0"));
|
|
|
|
|
|
2022-07-13 03:11:55 -04:00
|
|
|
SetupIrisSupport(Target);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|