diff --git a/plugin-dev/Source/Sentry/Sentry.Build.cs b/plugin-dev/Source/Sentry/Sentry.Build.cs index 703d49c8..c0cc81d0 100644 --- a/plugin-dev/Source/Sentry/Sentry.Build.cs +++ b/plugin-dev/Source/Sentry/Sentry.Build.cs @@ -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);