42 lines
767 B
C#
42 lines
767 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using UnrealBuildTool;
|
|
|
|
public class Stomp : ModuleRules
|
|
{
|
|
protected virtual bool bPlatformSupportsStomp
|
|
{
|
|
get
|
|
{
|
|
return Target.Platform == UnrealTargetPlatform.Win64 ||
|
|
Target.Platform == UnrealTargetPlatform.Mac ||
|
|
Target.IsInPlatformGroup(UnrealPlatformGroup.Unix);
|
|
}
|
|
}
|
|
public Stomp(ReadOnlyTargetRules Target) : base(Target)
|
|
{
|
|
bool bShouldUseModule = bPlatformSupportsStomp;
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"Core"
|
|
}
|
|
);
|
|
|
|
if (bShouldUseModule)
|
|
{
|
|
PublicDefinitions.Add("WITH_STOMP=1");
|
|
|
|
PrivateDependencyModuleNames.AddRange(
|
|
new string[] {
|
|
"WebSockets"
|
|
}
|
|
);
|
|
}
|
|
else
|
|
{
|
|
PublicDefinitions.Add("WITH_STOMP=0");
|
|
}
|
|
}
|
|
}
|