// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved. using UnrealBuildTool; using System.Collections.Generic; public class {GAME_NAME}Target : TargetRules { public {GAME_NAME}Target(TargetInfo Target) { Type = TargetType.Game; } // // TargetRules interface. // public override void SetupBinaries( TargetInfo Target, ref List OutBuildBinaryConfigurations, ref List OutExtraModuleNames ) { OutExtraModuleNames.Add("UE4Game"); // this is important - for some reason achievements etc intertwined with the onlinesubsystem and they saved without using a fake OSS. :/ if (Target.Platform == UnrealTargetPlatform.HTML5) { OutExtraModuleNames.Add("OnlineSubsystemNull"); } } public override void SetupGlobalEnvironment( TargetInfo Target, ref LinkEnvironmentConfiguration OutLinkEnvironmentConfiguration, ref CPPEnvironmentConfiguration OutCPPEnvironmentConfiguration ) { } public override GUBPProjectOptions GUBP_IncludeProjectInPromotedBuild_EditorTypeOnly(UnrealTargetPlatform HostPlatform) { var Result = new GUBPProjectOptions(); Result.bTestWithShared = false; Result.bIsNonCode = true; return Result; } public override List GUBP_GetPlatforms_MonolithicOnly(UnrealTargetPlatform HostPlatform) { List Platforms = null; switch (HostPlatform) { case UnrealTargetPlatform.Mac: Platforms = new List { UnrealTargetPlatform.IOS }; break; case UnrealTargetPlatform.Linux: Platforms = new List(); break; case UnrealTargetPlatform.Win64: Platforms = new List(); break; default: Platforms = new List(); break; } return Platforms; } public override List GUBP_GetConfigs_MonolithicOnly(UnrealTargetPlatform HostPlatform, UnrealTargetPlatform Platform) { return new List { UnrealTargetConfiguration.Development, UnrealTargetConfiguration.Shipping, UnrealTargetConfiguration.Test }; } public override List GUBP_GetConfigsForFormalBuilds_MonolithicOnly(UnrealTargetPlatform HostPlatform) { if (HostPlatform != UnrealTargetPlatform.Mac) { return new List(); } else { return new List { new GUBPFormalBuild(UnrealTargetPlatform.IOS, UnrealTargetConfiguration.Development), new GUBPFormalBuild(UnrealTargetPlatform.IOS, UnrealTargetConfiguration.Shipping), new GUBPFormalBuild(UnrealTargetPlatform.IOS, UnrealTargetConfiguration.Test, false, true), }; } } }