50 lines
1.5 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|
|
} |