UnitTests.vcxproj 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project>
  3. <Import Project="..\VSProps\Base.Macros.props" />
  4. <Import Project="$(VSPropsDir)Base.Targets.props" />
  5. <PropertyGroup Label="Globals">
  6. <ProjectGuid>{474661E7-C73A-43A6-AFEE-EE1EC433D49E}</ProjectGuid>
  7. </PropertyGroup>
  8. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  9. <Import Project="$(VSPropsDir)Configuration.Application.props" />
  10. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  11. <ImportGroup Label="ExtensionSettings" />
  12. <ImportGroup Label="PropertySheets">
  13. <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  14. <Import Project="$(VSPropsDir)Base.props" />
  15. <Import Project="$(VSPropsDir)Base.Dolphin.props" />
  16. <Import Project="$(VSPropsDir)PCHUse.props" />
  17. </ImportGroup>
  18. <PropertyGroup Label="UserMacros" />
  19. <ItemDefinitionGroup>
  20. <!--This project also compiles gtest-->
  21. <ClCompile>
  22. <AdditionalIncludeDirectories>$(ExternalsDir)gtest\googletest\include;$(ExternalsDir)gtest\googletest;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
  23. </ClCompile>
  24. <Link>
  25. <SubSystem>Console</SubSystem>
  26. </Link>
  27. </ItemDefinitionGroup>
  28. <ItemGroup>
  29. <ClInclude Include="Core\DSP\DSPTestBinary.h" />
  30. <ClInclude Include="Core\DSP\DSPTestText.h" />
  31. <ClInclude Include="Core\DSP\HermesBinary.h" />
  32. <ClInclude Include="Core\DSP\HermesText.h" />
  33. <ClInclude Include="Core\IOS\ES\TestBinaryData.h" />
  34. <ClInclude Include="Core\PowerPC\TestValues.h" />
  35. </ItemGroup>
  36. <ItemGroup>
  37. <!--gtest is rather small, so just include it into the build here-->
  38. <ClCompile Include="$(ExternalsDir)gtest\googletest\src\gtest-all.cc" />
  39. <!--Lump all of the tests (and supporting code) into one binary-->
  40. <ClCompile Include="UnitTestsMain.cpp" />
  41. <ClCompile Include="Common\BitFieldTest.cpp" />
  42. <ClCompile Include="Common\BitSetTest.cpp" />
  43. <ClCompile Include="Common\BitUtilsTest.cpp" />
  44. <ClCompile Include="Common\BlockingLoopTest.cpp" />
  45. <ClCompile Include="Common\BusyLoopTest.cpp" />
  46. <ClCompile Include="Common\CommonFuncsTest.cpp" />
  47. <ClCompile Include="Common\Crypto\EcTest.cpp" />
  48. <ClCompile Include="Common\Crypto\SHA1Test.cpp" />
  49. <ClCompile Include="Common\EnumFormatterTest.cpp" />
  50. <ClCompile Include="Common\EventTest.cpp" />
  51. <ClCompile Include="Common\FileUtilTest.cpp" />
  52. <ClCompile Include="Common\FixedSizeQueueTest.cpp" />
  53. <ClCompile Include="Common\FlagTest.cpp" />
  54. <ClCompile Include="Common\FloatUtilsTest.cpp" />
  55. <ClCompile Include="Common\MathUtilTest.cpp" />
  56. <ClCompile Include="Common\NandPathsTest.cpp" />
  57. <ClCompile Include="Common\SettingsHandlerTest.cpp" />
  58. <ClCompile Include="Common\SPSCQueueTest.cpp" />
  59. <ClCompile Include="Common\StringUtilTest.cpp" />
  60. <ClCompile Include="Common\SwapTest.cpp" />
  61. <ClCompile Include="Core\CoreTimingTest.cpp" />
  62. <ClCompile Include="Core\DSP\DSPAcceleratorTest.cpp" />
  63. <ClCompile Include="Core\DSP\DSPAssemblyTest.cpp" />
  64. <ClCompile Include="Core\DSP\DSPTestBinary.cpp" />
  65. <ClCompile Include="Core\DSP\DSPTestText.cpp" />
  66. <ClCompile Include="Core\DSP\HermesBinary.cpp" />
  67. <ClCompile Include="Core\DSP\HermesText.cpp" />
  68. <ClCompile Include="Core\IOS\ES\FormatsTest.cpp" />
  69. <ClCompile Include="Core\IOS\FS\FileSystemTest.cpp" />
  70. <ClCompile Include="Core\IOS\USB\SkylandersTest.cpp" />
  71. <ClCompile Include="Core\MMIOTest.cpp" />
  72. <ClCompile Include="Core\PageFaultTest.cpp" />
  73. <ClCompile Include="Core\PatchAllowlistTest.cpp" />
  74. <ClCompile Include="Core\PowerPC\DivUtilsTest.cpp" />
  75. <ClCompile Include="VideoCommon\VertexLoaderTest.cpp" />
  76. <ClCompile Include="StubHost.cpp" />
  77. </ItemGroup>
  78. <!--Arch-specific tests-->
  79. <ItemGroup Condition="'$(Platform)'=='x64'">
  80. <ClCompile Include="Common\x64EmitterTest.cpp" />
  81. <ClCompile Include="Core\PowerPC\Jit64Common\ConvertDoubleToSingle.cpp" />
  82. <ClCompile Include="Core\PowerPC\Jit64Common\Frsqrte.cpp" />
  83. </ItemGroup>
  84. <ItemGroup Condition="'$(Platform)'=='ARM64'">
  85. <ClCompile Include="Common\Arm64EmitterTest.cpp" />
  86. <ClCompile Include="Core\PowerPC\JitArm64\ConvertSingleDouble.cpp" />
  87. <ClCompile Include="Core\PowerPC\JitArm64\FPRF.cpp" />
  88. <ClCompile Include="Core\PowerPC\JitArm64\Fres.cpp" />
  89. <ClCompile Include="Core\PowerPC\JitArm64\Frsqrte.cpp" />
  90. <ClCompile Include="Core\PowerPC\JitArm64\MovI2R.cpp" />
  91. </ItemGroup>
  92. <ItemGroup>
  93. <Text Include="CMakeLists.txt" />
  94. </ItemGroup>
  95. <ItemGroup>
  96. <ProjectReference Include="$(CoreDir)DolphinLib.vcxproj">
  97. <Project>{D79392F7-06D6-4B4B-A39F-4D587C215D3A}</Project>
  98. </ProjectReference>
  99. <ProjectReference Include="$(DolphinRootDir)Languages\Languages.vcxproj">
  100. <Project>{0e033be3-2e08-428e-9ae9-bc673efa12b5}</Project>
  101. </ProjectReference>
  102. </ItemGroup>
  103. <Import Project="$(ExternalsDir)Bochs_disasm\exports.props" />
  104. <Import Project="$(ExternalsDir)fmt\exports.props" />
  105. <Import Project="$(ExternalsDir)picojson\exports.props" />
  106. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  107. <ImportGroup Label="ExtensionTargets">
  108. </ImportGroup>
  109. <ItemGroup>
  110. <DataSysFiles Include="$(DolphinRootDir)Data\**\Sys\**\*.*" />
  111. </ItemGroup>
  112. <Target Name="AfterBuild">
  113. <Message Text="Copying Data directory..." Importance="High" />
  114. <RemoveDir Directories="$(TargetDir)Sys" />
  115. <Copy SourceFiles="@(DataSysFiles)" DestinationFolder="$(TargetDir)%(RecursiveDir)" SkipUnchangedFiles="True" />
  116. </Target>
  117. <Target Name="ExecUnitTests" AfterTargets="AfterBuild" Condition="'$(RunUnitTests)'=='true'">
  118. <!--This is only executed via msbuild, VS test runner automatically does this-->
  119. <Exec Command="$(TargetPath)" />
  120. </Target>
  121. </Project>