2016-12-08 08:52:44 -05:00
|
|
|
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
public class UE4ServerTarget : TargetRules
|
|
|
|
|
{
|
|
|
|
|
public UE4ServerTarget(TargetInfo Target)
|
|
|
|
|
{
|
|
|
|
|
Type = TargetType.Server;
|
|
|
|
|
bOutputToEngineBinaries = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// 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("UE4Game");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SetupGlobalEnvironment(
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
|
|
|
|
|
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2015-04-16 11:55:56 -04:00
|
|
|
public override bool ShouldUseSharedBuildEnvironment(TargetInfo Target)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
|
|
|
|
|
{
|
|
|
|
|
// It is valid for only server platforms
|
|
|
|
|
return UnrealBuildTool.UnrealBuildTool.GetAllServerPlatforms(ref OutPlatforms, false);
|
|
|
|
|
}
|
|
|
|
|
}
|