Files
UnrealEngineUWP/Engine/Plugins/AI/MLAdapter/Source/MLAdapterTestSuite/MLAdapterTestSuite.Build.cs
Brendan Mulcahy f9e2da8f1e MLAdapter: target Linux platform instead of Unix
#rb trivial
#rnx
#preflight 61f8538a114ec25fe0b485c8

[CL 18797826 by Brendan Mulcahy in ue5-main branch]
2022-01-31 16:37:29 -05:00

50 lines
1.5 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");
}
else
{
PublicDefinitions.Add("WITH_RPCLIB=0");
}
}
}
}