Files
UnrealEngineUWP/Engine/Source/Developer/CrashDebugHelper/CrashDebugHelper.Build.cs
ben marsh 62b3c64b61 Workaround for corrupt minidumps on Windows 10 v1709. Bundle a working version of dbghelp.dll with the application, and attempt load it at startup before loading the system version. Disabled for any targets using CrashDebugHelper, which depends on a matching version of dbgeng.dll (which we can't distribute).
#rb none
#jira UE-70207

#ROBOMERGE-OWNER: ben.marsh
#ROBOMERGE-AUTHOR: ben.marsh
#ROBOMERGE-SOURCE: CL 5284948 in //UE4/Release-4.22/... via CL 5284959
#ROBOMERGE-BOT: BUILD (Main -> Dev-Build)

[CL 5286763 by ben marsh in Dev-Build branch]
2019-03-04 13:02:18 -05:00

45 lines
1.4 KiB
C#

// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
using UnrealBuildTool;
public class CrashDebugHelper : ModuleRules
{
public CrashDebugHelper( ReadOnlyTargetRules Target ) : base(Target)
{
PrivateIncludePaths.AddRange(
new string[] {
"Developer/CrashDebugHelper/Private/",
"Developer/CrashDebugHelper/Private/Linux",
"Developer/CrashDebugHelper/Private/Mac",
"Developer/CrashDebugHelper/Private/Windows",
"Developer/CrashDebugHelper/Private/IOS",
}
);
PrivateIncludePaths.Add( "ThirdParty/PLCrashReporter/plcrashreporter-master-5ae3b0a/Source" );
if (Target.Type != TargetType.Game)
{
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
"SourceControl"
}
);
}
else
{
IsRedistributableOverride = true;
PublicDependencyModuleNames.AddRange(
new string[] {
"Core",
}
);
}
if(Target.Platform == UnrealTargetPlatform.Win64 && Target.WindowsPlatform.bUseBundledDbgHelp)
{
throw new System.Exception("CrashDebugHelper uses DBGENG.DLL at runtime, which depends on a matching version of DBGHELP.DLL but cannot be redistributed. Please set WindowsPlatform.bUseBundledDbgHelp = false for this target.");
}
}
}