Ryujinx.Tests.csproj 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>netcoreapp2.1</TargetFramework>
  4. <RuntimeIdentifiers>win10-x64;osx-x64;linux-x64</RuntimeIdentifiers>
  5. <OutputType>Exe</OutputType>
  6. <IsPackable>false</IsPackable>
  7. <TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Windows)))' == 'true'">windows</TargetOS>
  8. <TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">osx</TargetOS>
  9. <TargetOS Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true'">linux</TargetOS>
  10. <Configurations>Debug;Release;Profile Debug;Profile Release</Configurations>
  11. </PropertyGroup>
  12. <PropertyGroup>
  13. <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
  14. </PropertyGroup>
  15. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile Release|AnyCPU'">
  16. <DefineConstants>TRACE;USE_PROFILING</DefineConstants>
  17. <Optimize>true</Optimize>
  18. </PropertyGroup>
  19. <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile Debug|AnyCPU'">
  20. <DefineConstants>TRACE;USE_PROFILING</DefineConstants>
  21. <Optimize>false</Optimize>
  22. </PropertyGroup>
  23. <ItemGroup>
  24. <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.0.1" />
  25. <PackageReference Include="NUnit" Version="3.11.0" />
  26. <PackageReference Include="NUnit3TestAdapter" Version="3.13.0" />
  27. <PackageReference Include="System.Runtime.Intrinsics.Experimental" Version="4.5.0-rc1" />
  28. </ItemGroup>
  29. <ItemGroup>
  30. <ProjectReference Include="..\ChocolArm64\ChocolArm64.csproj" />
  31. <ProjectReference Include="..\Ryujinx.Tests.Unicorn\Ryujinx.Tests.Unicorn.csproj" />
  32. </ItemGroup>
  33. <Target Name="CopyUnicorn" AfterTargets="Build">
  34. <Copy SourceFiles="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\unicorn.dll" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
  35. <Copy SourceFiles="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\libunicorn.dylib" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
  36. <Copy SourceFiles="..\Ryujinx.Tests.Unicorn\libs\$(TargetOS)\libunicorn.so" DestinationFolder="$(OutputPath)" ContinueOnError="true" />
  37. </Target>
  38. </Project>