Files
UnrealEngineUWP/Engine/Source/Programs/UnrealHeaderTool/UnrealHeaderTool.Target.cs
Marc Audy 11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00

47 lines
1.7 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class UnrealHeaderToolTarget : TargetRules
{
public UnrealHeaderToolTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Program;
LinkType = TargetLinkType.Modular;
LaunchModuleName = "UnrealHeaderTool";
// Never use malloc profiling in Unreal Header Tool. We set this because often UHT is compiled right before the engine
// automatically by Unreal Build Tool, but if bUseMallocProfiler is defined, UHT can operate incorrectly.
bUseMallocProfiler = false;
bCompileICU = false;
// 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;
bCompileAgainstApplicationCore = false;
// Force exception handling across all modules.
bForceEnableExceptions = true;
// Plugin support
bCompileWithPluginSupport = true;
bBuildDeveloperTools = true;
// UnrealHeaderTool is a console application, not a Windows app (sets entry point to main(), instead of WinMain())
bIsBuildingConsoleApplication = true;
GlobalDefinitions.Add("HACK_HEADER_GENERATOR=1");
GlobalDefinitions.Add("FNAME_WRITE_PROTECT_PAGES=0");
GlobalDefinitions.Add("USE_LOCALIZED_PACKAGE_CACHE=0");
GlobalDefinitions.Add("STATS=0");
// We disable compilation of GC related code since it takes a very long time (up to 30 seconds on typical hardware at the time of writing)
GlobalDefinitions.Add("UE_WITH_GC=0");
GlobalDefinitions.Add("UE_WITH_SAVEPACKAGE=0");
GlobalDefinitions.Add("UE_WITH_CORE_REDIRECTS=0");
}
}