Files
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

55 lines
1.6 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;
namespace UnrealBuildTool.Rules
{
public class MLAdapterTestSuite : ModuleRules
{
public MLAdapterTestSuite(ReadOnlyTargetRules Target) : base(Target)
{
// rcplib is using exceptions so we have to enable that
bEnableExceptions = true;
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
PublicIncludePaths.AddRange(new string[] { });
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"CoreUObject",
"Engine",
"AIModule",
"AITestSuite",
"MLAdapter",
"JsonUtilities",
}
);
if (Target.bBuildEditor == true)
{
PrivateDependencyModuleNames.Add("EditorFramework");
PrivateDependencyModuleNames.Add("UnrealEd");
}
// RPCLib disabled on other platforms
if (Target.Platform == UnrealTargetPlatform.Win64 ||
Target.Platform == UnrealTargetPlatform.Mac ||
Target.Platform == UnrealTargetPlatform.Linux)
{
PublicDefinitions.Add("WITH_RPCLIB=1");
PrivateDependencyModuleNames.Add("RPCLib");
if (Target.Platform == UnrealTargetPlatform.Win64 && Target.Architecture == UnrealArch.Arm64)
{
PrivateDefinitions.Add("__arm64"); // expected by rpclib headers
}
}
else
{
PublicDefinitions.Add("WITH_RPCLIB=0");
}
}
}
}