Skip to content

Commit

Permalink
AOT: Fix language files, explicitly link to fnalibs, include console …
Browse files Browse the repository at this point in the history
…targets file
  • Loading branch information
flibitijibibo committed Dec 12, 2024
1 parent db4d7a7 commit 331fb6e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions RogueLegacy.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,28 @@

<ItemGroup>
<RdXmlFile Include="rd.xml" />
<DirectPInvoke Include="SDL3" />
<DirectPInvoke Include="FNA3D" />
<DirectPInvoke Include="FAudio" />
<IlcArg Include="--satellite:$(TargetDir)de\RogueLegacy.resources.dll" />
<IlcArg Include="--satellite:$(TargetDir)es\RogueLegacy.resources.dll" />
<IlcArg Include="--satellite:$(TargetDir)fr\RogueLegacy.resources.dll" />
<IlcArg Include="--satellite:$(TargetDir)pl\RogueLegacy.resources.dll" />
<IlcArg Include="--satellite:$(TargetDir)pt\RogueLegacy.resources.dll" />
<IlcArg Include="--satellite:$(TargetDir)ru\RogueLegacy.resources.dll" />
<IlcArg Include="--satellite:$(TargetDir)zh\RogueLegacy.resources.dll" />
</ItemGroup>

<ItemGroup Condition="'$(OS)' != 'Windows_NT'">
<NativeLibrary Include="-lSDL3" />
<NativeLibrary Include="-lFNA3D" />
<NativeLibrary Include="-lFAudio" />
</ItemGroup>

<ItemGroup Condition="'$(OS)' == 'Windows_NT'">
<NativeLibrary Include="SDL3.lib" />
<NativeLibrary Include="FNA3D.lib" />
<NativeLibrary Include="FAudio.lib" />
</ItemGroup>

<ItemGroup>
Expand Down Expand Up @@ -61,4 +83,6 @@
<Name>FNA</Name>
</ProjectReference>
</ItemGroup>

<Import Project="$(SolutionDir)NativeAOT_Console.targets" Condition="Exists('$(SolutionDir)NativeAOT_Console.targets')" />
</Project>

0 comments on commit 331fb6e

Please sign in to comment.