diff --git a/Source/CardinalMenuServer.Target.cs b/Source/CardinalMenuServer.Target.cs new file mode 100644 --- /dev/null +++ b/Source/CardinalMenuServer.Target.cs @@ -0,0 +1,45 @@ +// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. + +using UnrealBuildTool; +using System.Collections.Generic; + +public class CardinalMenuServerTarget : TargetRules +{ + public CardinalMenuServerTarget(TargetInfo Target) + { + Type = TargetType.Server; + } + + // + // TargetRules interface. + // + public override void SetupBinaries( + TargetInfo Target, + ref List OutBuildBinaryConfigurations, + ref List OutExtraModuleNames + ) + { + base.SetupBinaries(Target, ref OutBuildBinaryConfigurations, ref OutExtraModuleNames); + OutExtraModuleNames.Add("CardinalMenu"); + } + + public override bool GetSupportedPlatforms(ref List OutPlatforms) + { + // It is valid for only server platforms + return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false); + } + + public override List GUBP_GetPlatforms_MonolithicOnly(UnrealTargetPlatform HostPlatform) + { + if (HostPlatform == UnrealTargetPlatform.Mac) + { + return new List(); + } + return new List { HostPlatform, UnrealTargetPlatform.Win32, UnrealTargetPlatform.Linux }; + } + + public override List GUBP_GetConfigs_MonolithicOnly(UnrealTargetPlatform HostPlatform, UnrealTargetPlatform Platform) + { + return new List { UnrealTargetConfiguration.Development }; + } +} \ No newline at end of file