-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathSentry.Unity.Native.csproj
More file actions
88 lines (78 loc) · 3.08 KB
/
Copy pathSentry.Unity.Native.csproj
File metadata and controls
88 lines (78 loc) · 3.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutDir>$(PackageRuntimePath)</OutDir>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="../sentry-dotnet/src/Sentry/Sentry.csproj" Private="false" />
<ProjectReference Include="../Sentry.Unity/Sentry.Unity.csproj" Private="false" />
</ItemGroup>
<!-- Build PlayStation version after the main build -->
<Target Name="BuildPlayStationAssembly" AfterTargets="AfterBuild">
<Message Importance="High" Text="Building PlayStation-specific native assembly." />
<Csc
Sources="@(Compile)"
References="@(ReferencePath)"
OutputAssembly="$(OutDir)Sentry.Unity.Native.PlayStation.dll"
DefineConstants="$(DefineConstants);SENTRY_NATIVE_PLAYSTATION"
TargetType="library"
EmitDebugInformation="true"
DebugType="portable"
Nullable="$(Nullable)"
LangVersion="$(LangVersion)"
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
WarningLevel="$(WarningLevel)"
/>
</Target>
<!-- Build Switch version after the PlayStation build -->
<Target Name="BuildSwitchAssembly" AfterTargets="BuildPlayStationAssembly">
<Message Importance="High" Text="Building Switch-specific native assembly." />
<Csc
Sources="@(Compile)"
References="@(ReferencePath)"
OutputAssembly="$(OutDir)Sentry.Unity.Native.Switch.dll"
DefineConstants="$(DefineConstants);SENTRY_NATIVE_SWITCH"
TargetType="library"
EmitDebugInformation="true"
DebugType="portable"
Nullable="$(Nullable)"
LangVersion="$(LangVersion)"
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
WarningLevel="$(WarningLevel)"
/>
</Target>
<!-- Build Xbox version after the Switch build -->
<Target Name="BuildXboxAssembly" AfterTargets="BuildSwitchAssembly">
<Message Importance="High" Text="Building Xbox-specific native assembly." />
<Csc
Sources="@(Compile)"
References="@(ReferencePath)"
OutputAssembly="$(OutDir)Sentry.Unity.Native.Xbox.dll"
DefineConstants="$(DefineConstants);SENTRY_NATIVE_XBOX"
TargetType="library"
EmitDebugInformation="true"
DebugType="portable"
Nullable="$(Nullable)"
LangVersion="$(LangVersion)"
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
WarningLevel="$(WarningLevel)"
/>
</Target>
<!-- Build Android version after the Xbox build. Android's libsentry.so comes from the
sentry-android-ndk AAR, so it keeps the original import name -->
<Target Name="BuildAndroidAssembly" AfterTargets="BuildXboxAssembly">
<Message Importance="High" Text="Building Android-specific native assembly." />
<Csc
Sources="@(Compile)"
References="@(ReferencePath)"
OutputAssembly="$(OutDir)Sentry.Unity.Native.Android.dll"
DefineConstants="$(DefineConstants);SENTRY_NATIVE_ANDROID"
TargetType="library"
EmitDebugInformation="true"
DebugType="portable"
Nullable="$(Nullable)"
LangVersion="$(LangVersion)"
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
WarningLevel="$(WarningLevel)"
/>
</Target>
</Project>