Ryujinx.Tests.csproj 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>netcoreapp3.1</TargetFramework>
  4. <LangVersion>8.0</LangVersion>
  5. <RuntimeIdentifiers>win-x64;osx-x64;linux-x64</RuntimeIdentifiers>
  6. <OutputType>Exe</OutputType>
  7. <IsPackable>false</IsPackable>
  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;Profile Debug;Profile Release</Configurations>
  12. </PropertyGroup>
  13. <PropertyGroup>
  14. <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile Release|AnyCPU'">
  17. <DefineConstants>TRACE;USE_DEBUGGING</DefineConstants>
  18. <Optimize>true</Optimize>
  19. </PropertyGroup>
  20. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile Debug|AnyCPU'">
  21. <DefineConstants>TRACE;USE_DEBUGGING</DefineConstants>
  22. <Optimize>false</Optimize>
  23. </PropertyGroup>
  24. <ItemGroup>
  25. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
  26. <PackageReference Include="NUnit" Version="3.12.0" />
  27. <PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
  28. </ItemGroup>
  29. <ItemGroup>
  30. <ProjectReference Include="..\Ryujinx.Cpu\Ryujinx.Cpu.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. <Target Name="CopyUnicorn" AfterTargets="Build">
  36. <Copy SourceFiles="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\unicorn.dll" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
  37. <Copy SourceFiles="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\libunicorn.dylib" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
  38. <Copy SourceFiles="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\libunicorn.so" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
  39. </Target>
  40. </Project>