Files
UnrealEngineUWP/Engine/Source/Programs/DerivedDataBuildWorker/DerivedDataBuildWorker.Build.cs
devin doucette 83276b4a4f DDC: Removed DDCUtils in favor of a config-based approach that can work for any project
#rb Tim.Smith
#preflight 6154951003f33200010389a5

#ROBOMERGE-AUTHOR: devin.doucette
#ROBOMERGE-SOURCE: CL 17664358 in //UE5/Release-5.0/... via CL 17664461 via CL 17664511
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v875-17642767)

[CL 17664572 by devin doucette in ue5-main branch]
2021-09-29 13:49:09 -04:00

78 lines
2.7 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
// Abstract base class for worker targets. Not a valid target by itself, hence it is not put into a *.target.cs file.
[SupportedPlatforms(UnrealPlatformClass.Desktop)]
public abstract class DerivedDataBuildWorkerTarget : TargetRules
{
public DerivedDataBuildWorkerTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Program;
LinkType = TargetLinkType.Monolithic;
SolutionDirectory = "Programs/BuildWorker";
bUseXGEController = false;
bCompileFreeType = false;
bLoggingToMemoryEnabled = true;
bUseLoggingInShipping = true;
bCompileWithAccessibilitySupport= false;
bWithServerCode = false;
bCompileNavmeshClusterLinks = false;
bCompileNavmeshSegmentLinks = false;
bCompileRecast = false;
bCompileICU = false;
bCompileChaos = false;
bUseChaos = false;
bWithLiveCoding = false;
bBuildDeveloperTools = false;
bUseMallocProfiler = false;
bBuildWithEditorOnlyData = true;
bCompileAgainstEngine = false;
bCompileAgainstCoreUObject = false;
bCompileAgainstApplicationCore = false;
bUsesSlate = false;
bIsBuildingConsoleApplication = true;
// TODO: I want to use static CRT in the future, but it causes link issues today likely due to 3rd party libraries
//bUseStaticCRT = true;
WindowsPlatform.bUseBundledDbgHelp = false;
WindowsPlatform.bPixProfilingEnabled = false;
WindowsPlatform.bMergeIdenticalCOMDATs = true;
WindowsPlatform.bStripUnreferencedSymbols = true;
// Disable logging, as the workers are spawned often and logging will just slow them down
GlobalDefinitions.Add("ALLOW_LOG_FILE=0");
// Linking against wer.lib/wer.dll causes XGE to bail when the worker is run on a Windows 8 machine, so turn this off.
GlobalDefinitions.Add("ALLOW_WINDOWS_ERROR_REPORT_LIB=0");
// Disable external profiling in TextureBuilder to improve startup time
GlobalDefinitions.Add("UE_EXTERNAL_PROFILING_ENABLED=0");
}
}
public class DerivedDataBuildWorker : ModuleRules
{
public DerivedDataBuildWorker(ReadOnlyTargetRules Target) : base(Target)
{
PublicIncludePaths.Add("Runtime/Launch/Public");
PublicIncludePaths.Add("Developer/DerivedDataCache/Public");
PrivateIncludePaths.Add("Runtime/Launch/Private"); // For LaunchEngineLoop.cpp include
PrivateDependencyModuleNames.AddRange(new string[]
{
"Core",
"DerivedDataCache",
"Projects",
});
if (Target.bCompileAgainstApplicationCore)
{
PrivateDependencyModuleNames.Add("ApplicationCore");
}
// This needs to match the version defined in TargetReceiptBuildWorkerFactory.cpp
AdditionalPropertiesForReceipt.Add("DerivedDataBuildWorkerReceiptVersion", "dab5352e-a5a7-4793-a7a3-1d4acad6aff2");
}
}