2016-01-07 08:17:16 -05:00
|
|
|
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
|
2014-08-01 15:48:59 -04:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
public class BuildPatchToolTarget : TargetRules
|
|
|
|
|
{
|
2016-06-29 18:00:01 -04:00
|
|
|
public BuildPatchToolTarget(TargetInfo Target)
|
2014-08-01 15:48:59 -04:00
|
|
|
{
|
|
|
|
|
Type = TargetType.Program;
|
2015-03-27 07:15:32 -04:00
|
|
|
bOutputPubliclyDistributable = true;
|
2016-06-29 18:00:01 -04:00
|
|
|
UndecoratedConfiguration = UnrealTargetConfiguration.Shipping;
|
2014-08-01 15:48:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
// TargetRules interface.
|
|
|
|
|
//
|
2016-06-29 18:00:01 -04:00
|
|
|
public override bool GetSupportedPlatforms(ref List<UnrealTargetPlatform> OutPlatforms)
|
|
|
|
|
{
|
|
|
|
|
OutPlatforms.Add(UnrealTargetPlatform.Win32);
|
|
|
|
|
OutPlatforms.Add(UnrealTargetPlatform.Win64);
|
|
|
|
|
OutPlatforms.Add(UnrealTargetPlatform.Mac);
|
|
|
|
|
OutPlatforms.Add(UnrealTargetPlatform.Linux);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool GetSupportedConfigurations(ref List<UnrealTargetConfiguration> OutConfigurations, bool bIncludeTestAndShippingConfigs)
|
|
|
|
|
{
|
|
|
|
|
OutConfigurations.Add(UnrealTargetConfiguration.Debug);
|
|
|
|
|
OutConfigurations.Add(UnrealTargetConfiguration.Development);
|
|
|
|
|
OutConfigurations.Add(UnrealTargetConfiguration.Shipping);
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2014-08-01 15:48:59 -04:00
|
|
|
|
|
|
|
|
public override void SetupBinaries(
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
|
|
|
|
|
ref List<string> OutExtraModuleNames)
|
|
|
|
|
{
|
|
|
|
|
OutBuildBinaryConfigurations.Add(
|
|
|
|
|
new UEBuildBinaryConfiguration(
|
|
|
|
|
InType: UEBuildBinaryType.Executable,
|
|
|
|
|
InModuleNames: new List<string>() {
|
|
|
|
|
"BuildPatchTool"
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool ShouldCompileMonolithic(UnrealTargetPlatform InPlatform, UnrealTargetConfiguration InConfiguration)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SetupGlobalEnvironment(
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
|
|
|
|
|
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration)
|
|
|
|
|
{
|
|
|
|
|
UEBuildConfiguration.bBuildEditor = false;
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstEngine = false;
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstCoreUObject = false;
|
|
|
|
|
UEBuildConfiguration.bCompileLeanAndMeanUE = true;
|
2016-06-29 18:00:01 -04:00
|
|
|
UEBuildConfiguration.bUseLoggingInShipping = true;
|
|
|
|
|
UEBuildConfiguration.bUseChecksInShipping = true;
|
2014-08-01 15:48:59 -04:00
|
|
|
OutLinkEnvironmentConfiguration.bIsBuildingConsoleApplication = true;
|
|
|
|
|
OutLinkEnvironmentConfiguration.bHasExports = false;
|
|
|
|
|
}
|
|
|
|
|
}
|