2014-12-07 19:09:38 -05:00
|
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-09-23 13:55:06 -04:00
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
public class BootstrapPackagedGameTarget : TargetRules
|
|
|
|
|
|
{
|
|
|
|
|
|
public BootstrapPackagedGameTarget(TargetInfo Target)
|
|
|
|
|
|
{
|
|
|
|
|
|
Type = TargetType.Program;
|
|
|
|
|
|
|
|
|
|
|
|
bUseStaticCRT = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
// TargetRules interface.
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
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>() { "BootstrapPackagedGame" })
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override bool ShouldCompileMonolithic(UnrealTargetPlatform InPlatform, UnrealTargetConfiguration InConfiguration)
|
|
|
|
|
|
{
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void SetupGlobalEnvironment(
|
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
|
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
|
|
|
|
|
|
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
|
|
|
|
|
|
)
|
|
|
|
|
|
{
|
|
|
|
|
|
BuildConfiguration.bUseUnityBuild = false;
|
|
|
|
|
|
BuildConfiguration.bUseSharedPCHs = false;
|
|
|
|
|
|
BuildConfiguration.bUseMallocProfiler = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Disable all parts of the editor
|
|
|
|
|
|
UEBuildConfiguration.bCompileLeanAndMeanUE = true;
|
|
|
|
|
|
UEBuildConfiguration.bCompileICU = false;
|
|
|
|
|
|
UEBuildConfiguration.bBuildEditor = false;
|
|
|
|
|
|
UEBuildConfiguration.bBuildWithEditorOnlyData = false;
|
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstEngine = false;
|
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstCoreUObject = false;
|
2014-12-06 10:29:12 -05:00
|
|
|
|
|
|
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win32)
|
|
|
|
|
|
{
|
2015-01-28 08:26:51 -05:00
|
|
|
|
WindowsPlatform.SupportWindowsXPIfAvailable = true;
|
2014-12-06 10:29:12 -05:00
|
|
|
|
}
|
2014-09-23 13:55:06 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
2015-03-12 08:29:35 -04:00
|
|
|
|
public override bool GUBP_AlwaysBuildWithTools(UnrealTargetPlatform InHostPlatform, out bool bInternalToolOnly, out bool SeparateNode, out bool CrossCompile)
|
2014-09-23 13:55:06 -04:00
|
|
|
|
{
|
|
|
|
|
|
bInternalToolOnly = false;
|
|
|
|
|
|
SeparateNode = false;
|
2015-01-06 10:24:25 -05:00
|
|
|
|
CrossCompile = false;
|
2014-09-26 11:29:46 -04:00
|
|
|
|
return (InHostPlatform == UnrealTargetPlatform.Win64);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override List<UnrealTargetPlatform> GUBP_ToolPlatforms(UnrealTargetPlatform InHostPlatform)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (InHostPlatform == UnrealTargetPlatform.Win64)
|
|
|
|
|
|
{
|
|
|
|
|
|
return new List<UnrealTargetPlatform> { UnrealTargetPlatform.Win64, UnrealTargetPlatform.Win32 };
|
|
|
|
|
|
}
|
|
|
|
|
|
return base.GUBP_ToolPlatforms(InHostPlatform);
|
2014-09-23 13:55:06 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override List<UnrealTargetConfiguration> GUBP_ToolConfigs(UnrealTargetPlatform InHostPlatform)
|
|
|
|
|
|
{
|
|
|
|
|
|
return new List<UnrealTargetConfiguration> { UnrealTargetConfiguration.Shipping };
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|