Files
UnrealEngineUWP/Engine/Source/Programs/UnrealPak/UnrealPak.Target.cs
christopher waters 22de0b360d Adding a "deprecation" path for engine includes to allow types to be moved without breaking licensee module builds.
- Non-engine modules/targets will have to specify the "version" of includes via IncludeOrderVersion in TargetRules or ModuleRules.
- This setting will control the value of UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_XXX where XXX is the version of the engine.
- When moving types out of a header, users will need to include the new location of the type in the header it was removed from but only if UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_XXX is set.
- If a target does not change its IncludeOrderVersion to the latest version, UBT will print out a message telling users how to upgrade.
- This change introduces a new set of SharedPCH permutations to make sure modules with older versions get the PCH with UE_ENABLE_INCLUDE_ORDER_DEPRECATED_IN_XXX set correctly.

#jira none
#rb jonathan.adamczewski, joe.kirchoff
#preflight 623e1d3d196f3ae80b4c37ee

[CL 19518359 by christopher waters in ue5-main branch]
2022-03-25 16:16:30 -04:00

37 lines
1.1 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class UnrealPakTarget : TargetRules
{
public UnrealPakTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Program;
LinkType = TargetLinkType.Modular;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
LaunchModuleName = "UnrealPak";
bBuildDeveloperTools = false;
bUseMallocProfiler = false;
bCompileWithPluginSupport = true;
bIncludePluginsForTargetPlatforms = true;
// Editor-only data, however, is needed
bBuildWithEditorOnlyData = true;
// Currently this app is not linking against the engine, so we'll compile out references from Core to the rest of the engine
bCompileAgainstEngine = false;
bCompileAgainstCoreUObject = false;
// ICU is not needed
bCompileICU = false;
// UnrealPak is a console application, not a Windows app (sets entry point to main(), instead of WinMain())
bCompileAgainstApplicationCore = true;
bIsBuildingConsoleApplication = true;
GlobalDefinitions.Add("UE_TRACE_ENABLED=1");
}
}