Ryujinx.Tests.csproj 2.2 KB

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