Skip to content

Commit

Permalink
Link includes
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaDev5 authored and PlasmaDev5 committed Dec 6, 2024
1 parent e8cc79c commit 9ee4824
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions plugin-dev/Source/Sentry/Sentry.Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ public Sentry(ReadOnlyTargetRules Target) : base(Target)
);

var cmakeTargetPath=Path.GetFullPath(Target.ProjectFile.FullName);
CMakeTargetInst cmakeTarget = new CMakeTargetInst("sentry-native", Target.Platform.ToString(), Directory .GetParent(cmakeTargetPath).FullName+"/Plugins/sentry-native", "");

Console.WriteLine("Loading cmake target: "+cmakeTargetPath);

var targetLocation = Directory.GetParent(cmakeTargetPath).FullName + "/Plugins/sentry-native";

CMakeTargetInst cmakeTarget = new CMakeTargetInst("sentry-native", Target.Platform.ToString(), targetLocation, "");
cmakeTarget.Load(Target, this, false);
//CMakeTarget.add(Target, this, "sentry", Path.Combine(this.ModuleDirectory, "../../modules/sentry-native"), "", true);

PublicIncludePaths.Add(targetLocation + "/include");

if (Target.Platform == UnrealTargetPlatform.IOS)
{
Expand All @@ -454,6 +454,7 @@ public Sentry(ReadOnlyTargetRules Target) : base(Target)
}
else if (Target.Platform == UnrealTargetPlatform.Win64)
{
PrivateIncludePaths.Add(Path.Combine(ModuleDirectory, "Private", "Desktop"));
PublicDefinitions.Add("USE_SENTRY_NATIVE=1");
PublicDefinitions.Add("SENTRY_BUILD_STATIC=1");
}
Expand Down

0 comments on commit 9ee4824

Please sign in to comment.