2016-01-07 08:17:16 -05:00
|
|
|
|
// Copyright 1998-2016 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;
|
|
|
|
|
|
|
2015-06-04 13:19:17 -04:00
|
|
|
|
// Disable all parts of the editor.
|
2014-09-23 13:55:06 -04:00
|
|
|
|
UEBuildConfiguration.bCompileLeanAndMeanUE = true;
|
|
|
|
|
|
UEBuildConfiguration.bCompileICU = false;
|
|
|
|
|
|
UEBuildConfiguration.bBuildEditor = false;
|
|
|
|
|
|
UEBuildConfiguration.bBuildWithEditorOnlyData = false;
|
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstEngine = false;
|
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstCoreUObject = false;
|
2015-09-27 14:23:00 -04:00
|
|
|
|
|
|
|
|
|
|
if (Target.Platform == UnrealTargetPlatform.Win32)
|
|
|
|
|
|
{
|
|
|
|
|
|
UEBuildConfiguration.PreferredSubPlatform = "WindowsXP";
|
|
|
|
|
|
}
|
2014-09-23 13:55:06 -04:00
|
|
|
|
}
|
|
|
|
|
|
}
|