Skip to content

Commit d8f9199

Browse files
authored
chore: Cleanup PlayStation build target (#2444)
1 parent 60ea1c6 commit d8f9199

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,4 +605,4 @@ void PrintFailedTests(XElement element)
605605
<Message Importance="High" Text="Restoring package-dev/Plugins to the latest git commit" />
606606
<Exec WorkingDirectory="$(RepoRoot)" Command="git restore package-dev/Plugins" />
607607
</Target>
608-
</Project>
608+
</Project>

src/Sentry.Unity.Native/Sentry.Unity.Native.csproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,21 @@
88
<ProjectReference Include="../Sentry.Unity/Sentry.Unity.csproj" Private="false" />
99
</ItemGroup>
1010

11-
<!-- Build Console version after the Desktop version -->
12-
<Target Name="BuildConsoleAssembly" AfterTargets="AfterBuild">
11+
<!-- Build PlayStation version after the main build -->
12+
<Target Name="BuildPlayStationAssembly" AfterTargets="AfterBuild">
13+
<Message Importance="High" Text="Building PlayStation-specific native assembly." />
14+
1315
<Csc
1416
Sources="@(Compile)"
1517
References="@(ReferencePath)"
1618
OutputAssembly="$(OutDir)Sentry.Unity.Native.PlayStation.dll"
1719
DefineConstants="$(DefineConstants);SENTRY_NATIVE_PLAYSTATION"
1820
TargetType="library"
1921
EmitDebugInformation="true"
22+
Nullable="$(Nullable)"
23+
LangVersion="$(LangVersion)"
24+
TreatWarningsAsErrors="$(TreatWarningsAsErrors)"
25+
WarningLevel="$(WarningLevel)"
2026
/>
2127
</Target>
2228

0 commit comments

Comments
 (0)