2021-03-31 06:32:34 -04:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
using UnrealBuildTool;
|
2022-04-27 13:07:05 -04:00
|
|
|
using System.IO;
|
2021-03-31 06:32:34 -04:00
|
|
|
|
|
|
|
|
public class SymsLib : ModuleRules
|
|
|
|
|
{
|
|
|
|
|
public SymsLib(ReadOnlyTargetRules Target) : base(Target)
|
|
|
|
|
{
|
|
|
|
|
Type = ModuleType.External;
|
2022-04-27 13:07:05 -04:00
|
|
|
|
2021-03-31 06:32:34 -04:00
|
|
|
string LibPathBase = ModuleDirectory + "/lib";
|
|
|
|
|
|
2021-10-01 14:58:20 -04:00
|
|
|
PublicSystemIncludePaths.Add(ModuleDirectory);
|
|
|
|
|
PublicSystemIncludePaths.Add(ModuleDirectory + "/syms");
|
2021-03-31 06:32:34 -04:00
|
|
|
|
|
|
|
|
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows))
|
|
|
|
|
{
|
|
|
|
|
bool bUseDebug = Target.Configuration == UnrealTargetConfiguration.Debug;
|
|
|
|
|
string LibPath = LibPathBase + "/x64" + (bUseDebug ? "/Debug" : "/Release");
|
|
|
|
|
PublicAdditionalLibraries.Add(LibPath + "/SymsLib.lib");
|
|
|
|
|
}
|
2022-04-27 13:07:05 -04:00
|
|
|
else if (Target.Platform.IsInGroup(UnrealPlatformGroup.Unix))
|
|
|
|
|
{
|
|
|
|
|
bool bUseDebug = Target.Configuration == UnrealTargetConfiguration.Debug;
|
|
|
|
|
string LibName = bUseDebug ? "libsymsd_fPIC.a" : "libsyms_fPIC.a";
|
|
|
|
|
string LibPath = Path.Combine(LibPathBase, "Unix", Target.Architecture);
|
|
|
|
|
|
|
|
|
|
PublicAdditionalLibraries.Add(Path.Combine(LibPath, LibName));
|
|
|
|
|
}
|
2021-03-31 06:32:34 -04:00
|
|
|
}
|
|
|
|
|
}
|