2014-12-07 19:09:38 -05:00
|
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-04-23 17:52:54 -04:00
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
|
|
public class UnrealVersionSelectorTarget : TargetRules
|
|
|
|
|
|
{
|
|
|
|
|
|
public UnrealVersionSelectorTarget(TargetInfo Target)
|
|
|
|
|
|
{
|
|
|
|
|
|
Type = TargetType.Program;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
// 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>() { "UnrealVersionSelector" })
|
|
|
|
|
|
);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override bool ShouldCompileMonolithic(UnrealTargetPlatform InPlatform, UnrealTargetConfiguration InConfiguration)
|
|
|
|
|
|
{
|
|
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void SetupGlobalEnvironment(
|
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
|
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
|
|
|
|
|
|
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
|
|
|
|
|
|
)
|
|
|
|
|
|
{
|
|
|
|
|
|
UEBuildConfiguration.bCompileLeanAndMeanUE = true;
|
|
|
|
|
|
BuildConfiguration.bUseMallocProfiler = false;
|
|
|
|
|
|
|
|
|
|
|
|
// No editor needed
|
|
|
|
|
|
UEBuildConfiguration.bCompileICU = false;
|
|
|
|
|
|
UEBuildConfiguration.bBuildEditor = false;
|
|
|
|
|
|
// Editor-only data, however, is needed
|
|
|
|
|
|
UEBuildConfiguration.bBuildWithEditorOnlyData = false;
|
|
|
|
|
|
|
|
|
|
|
|
// Currently this app is not linking against the engine, so we'll compile out references from Core to the rest of the engine
|
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstEngine = false;
|
|
|
|
|
|
UEBuildConfiguration.bCompileAgainstCoreUObject = false;
|
|
|
|
|
|
|
|
|
|
|
|
// UnrealHeaderTool is a console application, not a Windows app (sets entry point to main(), instead of WinMain())
|
|
|
|
|
|
//OutLinkEnvironmentConfiguration.bIsBuildingConsoleApplication = true;
|
|
|
|
|
|
}
|
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-04-23 17:53:35 -04:00
|
|
|
|
{
|
2015-01-06 10:24:25 -05:00
|
|
|
|
CrossCompile = false;
|
2014-11-11 10:45:43 -05:00
|
|
|
|
bInternalToolOnly = false;
|
|
|
|
|
|
SeparateNode = false;
|
2015-04-17 15:12:13 -04:00
|
|
|
|
return InHostPlatform == UnrealTargetPlatform.Win64;
|
2014-04-23 17:53:35 -04:00
|
|
|
|
}
|
2014-04-23 18:48:13 -04:00
|
|
|
|
public override List<UnrealTargetConfiguration> GUBP_ToolConfigs(UnrealTargetPlatform InHostPlatform)
|
|
|
|
|
|
{
|
|
|
|
|
|
return new List<UnrealTargetConfiguration> { UnrealTargetConfiguration.Shipping };
|
|
|
|
|
|
}
|
2014-04-23 17:52:54 -04:00
|
|
|
|
}
|