Skip to content

Commit

Permalink
link library on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaDev5 authored and PlasmaDev5 committed Dec 10, 2024
1 parent 332f6ce commit fcf3b7e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions plugin-dev/Source/Sentry/Sentry.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,25 @@ public Sentry(ReadOnlyTargetRules Target) : base(Target)
new CMakeTargetInst("sentry-native", Target.Platform.ToString(), targetLocation, "");
cmakeTarget.Load(Target, this);

string intermediatePath =
Path.Combine(Target.ProjectFile.Directory.FullName, "Intermediate", "CMakeTarget", "sentry-native");

if (Target.Platform == UnrealTargetPlatform.Win64)
{
string buildPath = Path.Combine(intermediatePath, "Win64", "build");
if(Target.Configuration == UnrealTargetConfiguration.Debug)
{
PublicAdditionalLibraries.Add(Path.Combine(buildPath, "Debug", "sentry.lib"));
}
else
{
PublicAdditionalLibraries.Add(Path.Combine(buildPath, "Release", "sentry.lib"));
}
}
else
{
Console.WriteLine("Platform not currently supported: " + Target.Platform);
}

PublicIncludePaths.Add(targetLocation + "/include");
}
Expand Down

0 comments on commit fcf3b7e

Please sign in to comment.