Skip to content

Commit

Permalink
link Linux libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaDev5 authored and PlasmaDev5 committed Dec 11, 2024
1 parent fcf3b7e commit 2ba8c1f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions plugin-dev/Source/Sentry/Sentry.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,22 @@ public Sentry(ReadOnlyTargetRules Target) : base(Target)
PublicAdditionalLibraries.Add(Path.Combine(buildPath, "Release", "sentry.lib"));
}
}
#if UE_5_0_OR_LATER
else if (Target.Platform == UnrealTargetPlatform.Linux || Target.Platform == UnrealTargetPlatform.LinuxArm64)
#else
else if (Target.Platform == UnrealTargetPlatform.Linux || Target.Platform == UnrealTargetPlatform.LinuxAArch64)
#endif
{
string buildPath = Path.Combine(intermediatePath, "Linux", "build");
if(Target.Configuration == UnrealTargetConfiguration.Debug)
{
PublicAdditionalLibraries.Add(Path.Combine(buildPath, "Debug", "sentry.a"));
}
else
{
PublicAdditionalLibraries.Add(Path.Combine(buildPath, "Release", "sentry.a"));
}
}
else
{
Console.WriteLine("Platform not currently supported: " + Target.Platform);
Expand Down

0 comments on commit 2ba8c1f

Please sign in to comment.