Files
UnrealEngineUWP/Engine/Source/Programs/UnrealVirtualizationTool/UnrealVirtualizationTool.Target.cs
paul chipchase 1ecf629377 [UVT] Further reduce the size of the tool
#rb PJ.Kack
#rnx

- Minimal increase in compile time (+1.5s for full rebuild) but a significant reduction in exe/pdb size.

[CL 29929818 by paul chipchase in ue5-main branch]
2023-11-27 02:25:44 -05:00

41 lines
1.2 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
using System.Collections.Generic;
public class UnrealVirtualizationToolTarget : TargetRules
{
public UnrealVirtualizationToolTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Program;
LinkType = TargetLinkType.Monolithic;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
LaunchModuleName = "UnrealVirtualizationTool";
bBuildDeveloperTools = false;
bCompileAgainstEditor = false;
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
bCompileAgainstApplicationCore = true;
bCompileAgainstCoreUObject = true;
bCompileAgainstEngine = false;
bUsesSlate = false;
// This app is a console application, not a Windows app (sets entry point to main(), instead of WinMain())
bIsBuildingConsoleApplication = true;
// Enable Developer plugins
bCompileWithPluginSupport = true;
// Reduce the final exe/pdb size
WindowsPlatform.bStripUnreferencedSymbols = true;
WindowsPlatform.bMergeIdenticalCOMDATs = true;
bEnableTrace = true;
GlobalDefinitions.Add("UE_SUPPORT_FULL_PACKAGEPATH=1");
}
}