Files
UnrealEngine/Engine/Source/Runtime/Online/Stomp/Stomp.Build.cs
2025-05-18 13:04:45 +08:00

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");
}
}
}