/ src / Ryujinx.Tests / Ryujinx.Tests.csproj
Ryujinx.Tests.csproj
 1  <Project Sdk="Microsoft.NET.Sdk">
 2  
 3    <PropertyGroup>
 4      <TargetFramework>net8.0</TargetFramework>
 5      <OutputType>Exe</OutputType>
 6      <IsPackable>false</IsPackable>
 7  
 8      <TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">windows</TargetOS>
 9      <TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">osx</TargetOS>
10      <TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">linux</TargetOS>
11      <Configurations>Debug;Release</Configurations>
12      <RunSettingsFilePath>$(MSBuildProjectDirectory)\.runsettings</RunSettingsFilePath>
13    </PropertyGroup>
14  
15    <PropertyGroup>
16      <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
17      <AllowUnsafeBlocks>True</AllowUnsafeBlocks>
18    </PropertyGroup>
19  
20    <ItemGroup>
21      <PackageReference Include="Microsoft.NET.Test.Sdk" />
22      <PackageReference Include="NUnit" />
23      <PackageReference Include="NUnit3TestAdapter" />
24    </ItemGroup>
25  
26    <ItemGroup>
27      <ProjectReference Include="..\Ryujinx.Audio\Ryujinx.Audio.csproj" />
28      <ProjectReference Include="..\Ryujinx.Cpu\Ryujinx.Cpu.csproj" />
29      <ProjectReference Include="..\Ryujinx.HLE\Ryujinx.HLE.csproj" />
30      <ProjectReference Include="..\Ryujinx.Tests.Memory\Ryujinx.Tests.Memory.csproj" />
31      <ProjectReference Include="..\Ryujinx.Memory\Ryujinx.Memory.csproj" />
32      <ProjectReference Include="..\Ryujinx.Tests.Unicorn\Ryujinx.Tests.Unicorn.csproj" />
33      <ProjectReference Include="..\ARMeilleure\ARMeilleure.csproj" />
34    </ItemGroup>
35  
36    <Target Name="CopyUnicorn" AfterTargets="Build">
37      <ItemGroup>
38        <UnicornLib Include="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\*unicorn.*" />
39      </ItemGroup>
40      <Copy SourceFiles="@(UnicornLib)" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
41    </Target>
42  
43    <Target Name="CleanUnicorn" BeforeTargets="Clean">
44      <ItemGroup>
45        <UnicornLib Include="$(OutputPath)/unicorn.*" />
46      </ItemGroup>
47      <Delete Files="@(UnicornLib)" />
48    </Target>
49  
50  </Project>