2014-12-07 19:09:38 -05:00
|
|
|
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
public class UE4EditorTarget : TargetRules
|
|
|
|
|
{
|
|
|
|
|
public UE4EditorTarget( TargetInfo Target )
|
|
|
|
|
{
|
|
|
|
|
Type = TargetType.Editor;
|
2015-06-18 08:41:17 -04:00
|
|
|
bBuildAllPlugins = true;
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SetupBinaries(
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
ref List<UEBuildBinaryConfiguration> OutBuildBinaryConfigurations,
|
|
|
|
|
ref List<string> OutExtraModuleNames
|
|
|
|
|
)
|
|
|
|
|
{
|
2014-10-30 10:07:51 -04:00
|
|
|
OutExtraModuleNames.Add("UE4Game");
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void SetupGlobalEnvironment(
|
|
|
|
|
TargetInfo Target,
|
|
|
|
|
ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration,
|
|
|
|
|
ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration
|
|
|
|
|
)
|
|
|
|
|
{
|
|
|
|
|
}
|
2015-03-20 08:25:23 -04:00
|
|
|
|
2015-04-16 11:55:56 -04:00
|
|
|
public override bool ShouldUseSharedBuildEnvironment(TargetInfo Target)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2015-03-20 08:25:23 -04:00
|
|
|
public override void GetModulesToPrecompile(TargetInfo Target, List<string> ModuleNames)
|
|
|
|
|
{
|
|
|
|
|
ModuleNames.Add("Launch");
|
|
|
|
|
ModuleNames.Add("GameMenuBuilder");
|
2015-08-12 14:27:29 -04:00
|
|
|
ModuleNames.Add("JsonUtilities");
|
2015-07-29 10:52:59 -04:00
|
|
|
ModuleNames.Add("RuntimeAssetCache");
|
2015-07-29 11:14:05 -04:00
|
|
|
ModuleNames.Add("UnrealCodeAnalyzerTests");
|
2015-03-20 08:25:23 -04:00
|
|
|
if ((Target.Platform == UnrealTargetPlatform.Win32) || (Target.Platform == UnrealTargetPlatform.Win64))
|
|
|
|
|
{
|
|
|
|
|
ModuleNames.Add("OnlineSubsystemNull");
|
|
|
|
|
ModuleNames.Add("OnlineSubsystemAmazon");
|
|
|
|
|
if (UEBuildConfiguration.bCompileSteamOSS == true)
|
|
|
|
|
{
|
|
|
|
|
ModuleNames.Add("OnlineSubsystemSteam");
|
|
|
|
|
}
|
|
|
|
|
ModuleNames.Add("OnlineSubsystemFacebook");
|
|
|
|
|
}
|
|
|
|
|
else if (Target.Platform == UnrealTargetPlatform.Mac || Target.Platform == UnrealTargetPlatform.Linux)
|
|
|
|
|
{
|
|
|
|
|
ModuleNames.Add("OnlineSubsystemNull");
|
|
|
|
|
if (UEBuildConfiguration.bCompileSteamOSS == true)
|
|
|
|
|
{
|
|
|
|
|
ModuleNames.Add("OnlineSubsystemSteam");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2014-03-14 14:13:41 -04:00
|
|
|
public override GUBPProjectOptions GUBP_IncludeProjectInPromotedBuild_EditorTypeOnly(UnrealTargetPlatform HostPlatform)
|
|
|
|
|
{
|
|
|
|
|
var Result = new GUBPProjectOptions();
|
|
|
|
|
Result.bIsPromotable = true;
|
|
|
|
|
return Result;
|
|
|
|
|
}
|
|
|
|
|
public override Dictionary<string, List<UnrealTargetPlatform>> GUBP_NonCodeProjects_BaseEditorTypeOnly(UnrealTargetPlatform HostPlatform)
|
|
|
|
|
{
|
|
|
|
|
var NonCodeProjectNames = new Dictionary<string, List<UnrealTargetPlatform>>();
|
2014-05-07 10:59:45 -04:00
|
|
|
|
2015-01-12 21:35:51 -05:00
|
|
|
#region Common Configurations
|
|
|
|
|
|
|
|
|
|
//DESKTOP PLATFORMS
|
2014-05-07 10:59:45 -04:00
|
|
|
List<UnrealTargetPlatform> DesktopPlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Win64)
|
|
|
|
|
{
|
2015-01-12 21:35:51 -05:00
|
|
|
DesktopPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Linux, UnrealTargetPlatform.Win32 };
|
2014-05-07 10:59:45 -04:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DesktopPlats = new List<UnrealTargetPlatform> { HostPlatform };
|
|
|
|
|
}
|
2015-01-12 21:35:51 -05:00
|
|
|
//MOBILE PLATFORMS
|
2015-01-13 09:42:45 -05:00
|
|
|
//List<UnrealTargetPlatform> MobilePlats = null;
|
|
|
|
|
//if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
//{
|
|
|
|
|
// MobilePlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.IOS };
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// MobilePlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android };
|
|
|
|
|
//}
|
2014-05-07 10:59:45 -04:00
|
|
|
|
2015-01-12 21:35:51 -05:00
|
|
|
//DESKTOP AND MOBILE PLATFORMS
|
|
|
|
|
List<UnrealTargetPlatform> DesktopAndMobilePlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
DesktopAndMobilePlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.IOS };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
DesktopAndMobilePlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android, UnrealTargetPlatform.Win32 };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//ALL SUPPORTED PLATFORMS
|
|
|
|
|
List<UnrealTargetPlatform> AllSupportedPlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
AllSupportedPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.IOS };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
AllSupportedPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android, UnrealTargetPlatform.HTML5, UnrealTargetPlatform.Win32, UnrealTargetPlatform.XboxOne, UnrealTargetPlatform.PS4 };
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Sample Specific Platform Configurations
|
|
|
|
|
|
|
|
|
|
//ELEMENTAL DEMO
|
|
|
|
|
List<UnrealTargetPlatform> ElementalDemoSupportedPlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
ElementalDemoSupportedPlats = new List<UnrealTargetPlatform> { HostPlatform };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ElementalDemoSupportedPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Win32, UnrealTargetPlatform.XboxOne, UnrealTargetPlatform.PS4 };
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//TAPPY CHICKEN
|
2015-03-02 15:07:21 -05:00
|
|
|
List<UnrealTargetPlatform> TappyChickenPlats = null;
|
2015-01-13 11:04:15 -05:00
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
2015-05-21 15:29:58 -04:00
|
|
|
TappyChickenPlats = new List<UnrealTargetPlatform> { UnrealTargetPlatform.IOS };
|
2015-01-13 11:04:15 -05:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2015-05-21 15:29:58 -04:00
|
|
|
TappyChickenPlats = new List<UnrealTargetPlatform> { UnrealTargetPlatform.Android };
|
2015-03-02 15:07:21 -05:00
|
|
|
}
|
2015-03-02 15:36:29 -05:00
|
|
|
|
|
|
|
|
List<UnrealTargetPlatform> TP_2DSideScrollerPlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
TP_2DSideScrollerPlats = new List<UnrealTargetPlatform> { HostPlatform };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
TP_2DSideScrollerPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android, UnrealTargetPlatform.HTML5, UnrealTargetPlatform.Win32, UnrealTargetPlatform.XboxOne, UnrealTargetPlatform.PS4 };
|
|
|
|
|
}
|
2015-01-12 21:35:51 -05:00
|
|
|
//TP_PUZZLE
|
|
|
|
|
List<UnrealTargetPlatform> TPPuzzlePlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
TPPuzzlePlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.IOS };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
TPPuzzlePlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android, UnrealTargetPlatform.HTML5, UnrealTargetPlatform.Win32 };
|
|
|
|
|
}
|
|
|
|
|
//TP_TOPDOWN
|
|
|
|
|
List<UnrealTargetPlatform> TPTopDownPlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
TPTopDownPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.IOS };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
TPTopDownPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android, UnrealTargetPlatform.HTML5, UnrealTargetPlatform.Win32 };
|
|
|
|
|
}
|
|
|
|
|
//TP_TWINSTICK
|
|
|
|
|
List<UnrealTargetPlatform> TPTwinStickPlats = null;
|
|
|
|
|
if (HostPlatform == UnrealTargetPlatform.Mac)
|
|
|
|
|
{
|
|
|
|
|
TPTwinStickPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.IOS };
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
TPTwinStickPlats = new List<UnrealTargetPlatform> { HostPlatform, UnrealTargetPlatform.Android, UnrealTargetPlatform.Win32, UnrealTargetPlatform.XboxOne, UnrealTargetPlatform.PS4 };
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
NonCodeProjectNames.Add("ElementalDemo", ElementalDemoSupportedPlats);
|
2014-05-22 08:58:06 -04:00
|
|
|
//NonCodeProjectNames.Add("InfiltratorDemo", DesktopPlats);
|
2014-05-07 10:59:45 -04:00
|
|
|
NonCodeProjectNames.Add("HoverShip", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("BlueprintOffice", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("ReflectionsSubway", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("ElementalVR", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("CouchKnights", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("Stylized", DesktopPlats);
|
2014-05-01 07:32:55 -04:00
|
|
|
//NonCodeProjectNames.Add("Landscape", new List<UnrealTargetPlatform> { HostPlatform });
|
2014-05-07 10:59:45 -04:00
|
|
|
NonCodeProjectNames.Add("MatineeFightScene", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("RealisticRendering", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("EffectsCave", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("GDC2014", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("ContentExamples", DesktopPlats);
|
2014-08-05 17:16:50 -04:00
|
|
|
// NonCodeProjectNames.Add("PhysicsPirateShip", DesktopPlats);
|
2014-05-07 10:59:45 -04:00
|
|
|
NonCodeProjectNames.Add("TowerDefenseGame", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("LandscapeMountains", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("MorphTargets", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("PostProcessMatinee", DesktopPlats);
|
|
|
|
|
NonCodeProjectNames.Add("SciFiHallway", DesktopPlats);
|
2014-03-14 14:13:41 -04:00
|
|
|
|
2015-01-12 21:35:51 -05:00
|
|
|
NonCodeProjectNames.Add("BlackJack", DesktopAndMobilePlats);
|
|
|
|
|
NonCodeProjectNames.Add("MemoryGame", DesktopAndMobilePlats);
|
2015-03-02 15:07:21 -05:00
|
|
|
NonCodeProjectNames.Add("TappyChicken", TappyChickenPlats);
|
2015-05-21 15:29:58 -04:00
|
|
|
NonCodeProjectNames.Add("SwingNinja", TappyChickenPlats);
|
2015-01-12 21:35:51 -05:00
|
|
|
NonCodeProjectNames.Add("SunTemple", DesktopAndMobilePlats);
|
2014-03-14 14:13:41 -04:00
|
|
|
|
2015-02-16 12:55:25 -05:00
|
|
|
NonCodeProjectNames.Add("FP_FirstPersonBP", AllSupportedPlats);
|
2015-03-02 15:36:29 -05:00
|
|
|
NonCodeProjectNames.Add("TP_2DSideScrollerBP", TP_2DSideScrollerPlats);
|
2015-01-12 21:35:51 -05:00
|
|
|
NonCodeProjectNames.Add("TP_FirstPersonBP", AllSupportedPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_FlyingBP", AllSupportedPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_PuzzleBP", TPPuzzlePlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_RollingBP", AllSupportedPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_SideScrollerBP", AllSupportedPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_ThirdPersonBP", AllSupportedPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_TopDownBP", TPTopDownPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_TwinStickBP", TPTwinStickPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_VehicleBP", AllSupportedPlats);
|
|
|
|
|
NonCodeProjectNames.Add("TP_VehicleAdvBP", AllSupportedPlats);
|
2014-03-14 14:13:41 -04:00
|
|
|
|
|
|
|
|
return NonCodeProjectNames;
|
|
|
|
|
}
|
2014-06-03 10:37:01 -04:00
|
|
|
public override Dictionary<string, List<GUBPFormalBuild>> GUBP_GetNonCodeFormalBuilds_BaseEditorTypeOnly()
|
2014-04-23 18:18:41 -04:00
|
|
|
{
|
2015-01-12 21:35:51 -05:00
|
|
|
#region Sample Configurations
|
|
|
|
|
//Generic Configurations
|
2015-05-21 15:29:58 -04:00
|
|
|
|
2015-01-12 21:35:51 -05:00
|
|
|
var SunTempleBuildSettings = new List<GUBPFormalBuild>
|
|
|
|
|
{
|
2015-03-13 09:50:42 -04:00
|
|
|
new GUBPFormalBuild(UnrealTargetPlatform.Android, UnrealTargetConfiguration.Test, false, true),
|
|
|
|
|
new GUBPFormalBuild(UnrealTargetPlatform.IOS, UnrealTargetConfiguration.Test, false, true),
|
2014-08-14 15:58:47 -04:00
|
|
|
};
|
|
|
|
|
|
2015-03-02 15:07:21 -05:00
|
|
|
var TappyChickenBuildSettings = new List<GUBPFormalBuild>
|
2015-05-21 15:29:58 -04:00
|
|
|
{
|
|
|
|
|
new GUBPFormalBuild(UnrealTargetPlatform.Android, UnrealTargetConfiguration.Test, false, true),
|
|
|
|
|
new GUBPFormalBuild(UnrealTargetPlatform.IOS, UnrealTargetConfiguration.Test, false, true),
|
2015-03-02 15:07:21 -05:00
|
|
|
};
|
2015-01-12 21:35:51 -05:00
|
|
|
#endregion
|
2014-08-14 15:58:47 -04:00
|
|
|
|
2015-01-12 21:35:51 -05:00
|
|
|
var NonCodeProjectNames = new Dictionary<string, List<GUBPFormalBuild>>();
|
|
|
|
|
|
|
|
|
|
//Add Samples to the list with its corresponding settings
|
2015-05-21 15:29:58 -04:00
|
|
|
NonCodeProjectNames.Add("TappyChicken", TappyChickenBuildSettings);
|
2015-01-12 21:35:51 -05:00
|
|
|
NonCodeProjectNames.Add("SunTemple", SunTempleBuildSettings);
|
2014-04-23 18:18:41 -04:00
|
|
|
return NonCodeProjectNames;
|
|
|
|
|
}
|
2014-03-14 14:13:41 -04:00
|
|
|
}
|