2019-12-26 15:32:37 -05:00
// Copyright Epic Games, Inc. All Rights Reserved.
2014-03-14 14:13:41 -04:00
using UnrealBuildTool ;
public class CrashDebugHelper : ModuleRules
{
2023-07-24 18:35:16 -04:00
public CrashDebugHelper ( ReadOnlyTargetRules Target ) : base ( Target )
2014-03-14 14:13:41 -04:00
{
2021-04-08 14:32:07 -04:00
PrivateIncludePaths . AddRange (
2023-07-24 18:35:16 -04:00
new string [ ] {
2015-03-02 07:52:38 -05:00
"Developer/CrashDebugHelper/Private/" ,
"Developer/CrashDebugHelper/Private/Linux" ,
"Developer/CrashDebugHelper/Private/Mac" ,
"Developer/CrashDebugHelper/Private/Windows" ,
2021-04-08 14:32:07 -04:00
"Developer/CrashDebugHelper/Private/IOS" ,
}
) ;
2014-03-14 14:13:41 -04:00
2021-04-08 14:32:07 -04:00
if ( Target . Type ! = TargetType . Game & & Target . Type ! = TargetType . Client )
{
PublicDependencyModuleNames . AddRange (
new string [ ] {
2023-07-24 18:35:16 -04:00
"Core" ,
2021-04-08 14:32:07 -04:00
}
) ;
}
else
{
IsRedistributableOverride = true ;
PublicDependencyModuleNames . AddRange (
new string [ ] {
2023-07-24 18:35:16 -04:00
"Core" ,
2021-04-08 14:32:07 -04:00
}
) ;
}
2019-03-04 11:35:49 -05:00
2023-07-24 18:35:16 -04:00
if ( Target . Platform = = UnrealTargetPlatform . Win64 & & Target . WindowsPlatform . bUseBundledDbgHelp )
2019-03-04 11:35:49 -05:00
{
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." ) ;
}
2021-04-08 14:32:07 -04:00
// Note: PLCrashReporter is not supported on tvOS.
2023-07-24 18:35:16 -04:00
PrivateIncludePathModuleNames . Add ( "PLCrashReporter" ) ;
2021-04-08 14:32:07 -04:00
if ( Target . Platform = = UnrealTargetPlatform . Mac | | Target . Platform = = UnrealTargetPlatform . IOS )
{
AddEngineThirdPartyPrivateStaticDependencies ( Target , new string [ ]
{
"PLCrashReporter"
} ) ;
}
2023-07-24 18:35:16 -04:00
}
2014-03-14 14:13:41 -04:00
}