Files
@ 08828e7b5c9d
Branch filter:
Location: menu.hg/Source/CardinalMenuServer.Target.cs - annotation
08828e7b5c9d
1.6 KiB
text/x-csharp
add server build target
08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d 08828e7b5c9d | // 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<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
ref List<string> OutExtraModuleNames
)
{
base.SetupBinaries(Target, ref OutBuildBinaryConfigurations, ref OutExtraModuleNames);
OutExtraModuleNames.Add("CardinalMenu");
}
public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
{
// It is valid for only server platforms
return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false);
}
public override List<UnrealTargetPlatform> GUBP_GetPlatforms_MonolithicOnly(UnrealTargetPlatform HostPlatform)
{
if (HostPlatform == UnrealTargetPlatform.Mac)
{
return new List<UnrealTargetPlatform>();
}
return new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Win32, UnrealTargetPlatform.Linux };
}
public override List<UnrealTargetConfiguration> GUBP_GetConfigs_MonolithicOnly(UnrealTargetPlatform HostPlatform, UnrealTargetPlatform Platform)
{
return new List<UnrealTargetConfiguration> { UnrealTargetConfiguration.Development };
}
}
|