DolphinLib.vcxproj 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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>{d79392f7-06d6-4b4b-a39f-4d587c215d3a}</ProjectGuid>
  7. </PropertyGroup>
  8. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  9. <Import Project="$(VSPropsDir)Configuration.StaticLibrary.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. <Import Project="DolphinLib.props" />
  20. <ImportGroup Condition="'$(Platform)'=='x64'">
  21. <Import Project="DolphinLib.x64.props" />
  22. </ImportGroup>
  23. <ImportGroup Condition="'$(Platform)'=='ARM64'">
  24. <Import Project="DolphinLib.ARM64.props" />
  25. </ImportGroup>
  26. <ItemGroup>
  27. <ProjectReference Include="$(CoreDir)Common\SCMRevGen.vcxproj">
  28. <Project>{41279555-f94f-4ebc-99de-af863c10c5c4}</Project>
  29. </ProjectReference>
  30. </ItemGroup>
  31. <Import Project="$(ExternalsDir)Bochs_disasm\exports.props" />
  32. <Import Project="$(ExternalsDir)bzip2\exports.props" />
  33. <Import Project="$(ExternalsDir)cpp-optparse\exports.props" />
  34. <Import Project="$(ExternalsDir)cubeb\exports.props" />
  35. <Import Project="$(ExternalsDir)curl\exports.props" />
  36. <Import Project="$(ExternalsDir)discord-rpc\exports.props" />
  37. <Import Project="$(ExternalsDir)ed25519\exports.props" />
  38. <Import Project="$(ExternalsDir)enet\exports.props" />
  39. <Import Project="$(ExternalsDir)FatFs\exports.props" />
  40. <Import Project="$(ExternalsDir)fmt\exports.props" />
  41. <Import Project="$(ExternalsDir)FreeSurround\exports.props" />
  42. <Import Project="$(ExternalsDir)glslang\exports.props" />
  43. <Import Project="$(ExternalsDir)imgui\exports.props" />
  44. <Import Project="$(ExternalsDir)implot\exports.props" />
  45. <Import Project="$(ExternalsDir)liblzma\exports.props" />
  46. <Import Project="$(ExternalsDir)libspng\exports.props" />
  47. <Import Project="$(ExternalsDir)libusb\exports.props" />
  48. <Import Project="$(ExternalsDir)LZO\exports.props" />
  49. <Import Project="$(ExternalsDir)LZ4\exports.props" />
  50. <Import Project="$(ExternalsDir)mbedtls\exports.props" />
  51. <Import Project="$(ExternalsDir)mGBA\exports.props" />
  52. <Import Project="$(ExternalsDir)miniupnpc\exports.props" />
  53. <Import Project="$(ExternalsDir)minizip-ng\exports.props" />
  54. <Import Project="$(ExternalsDir)picojson\exports.props" />
  55. <Import Project="$(ExternalsDir)pugixml\exports.props" />
  56. <Import Project="$(ExternalsDir)rcheevos\exports.props" />
  57. <Import Project="$(ExternalsDir)SDL\exports.props" />
  58. <Import Project="$(ExternalsDir)SFML\exports.props" />
  59. <Import Project="$(ExternalsDir)soundtouch\exports.props" />
  60. <Import Project="$(ExternalsDir)spirv_cross\exports.props" />
  61. <Import Project="$(ExternalsDir)tinygltf\exports.props" />
  62. <Import Project="$(ExternalsDir)xxhash\exports.props" />
  63. <Import Project="$(ExternalsDir)zlib-ng\exports.props" />
  64. <Import Project="$(ExternalsDir)zstd\exports.props" />
  65. <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  66. <ImportGroup Label="ExtensionTargets" />
  67. <PropertyGroup>
  68. <BuildInfoTemplate>Common\build_info.txt.in</BuildInfoTemplate>
  69. <BuildInfoOutput>$(BinaryOutputDir)build_info.txt</BuildInfoOutput>
  70. </PropertyGroup>
  71. <ItemGroup>
  72. <Text Include="$(BuildInfoTemplate)" />
  73. </ItemGroup>
  74. <UsingTask TaskName="GetProductVersion"
  75. TaskFactory="CodeTaskFactory"
  76. AssemblyFile="$(MSBuildToolsPath)\Microsoft.Build.Tasks.Core.dll">
  77. <ParameterGroup>
  78. <Path ParameterType="System.String" Required="true" />
  79. <ProductVersion ParameterType="System.String" Output="true" />
  80. </ParameterGroup>
  81. <Task>
  82. <Using Namespace="System.Diagnostics"/>
  83. <Code Type="Fragment" Language="cs">
  84. <![CDATA[
  85. ProductVersion = FileVersionInfo.GetVersionInfo(Path).ProductVersion;
  86. ]]>
  87. </Code>
  88. </Task>
  89. </UsingTask>
  90. <Target Name="WriteBuildInfo" AfterTargets="Build" Inputs="$(BuildInfoTemplate)" Outputs="$(BuildInfoOutput)">
  91. <GetProductVersion Path="$(VCToolsRedistInstallDir)vc_redist.x64.exe">
  92. <Output PropertyName="VCToolsProductVersion" TaskParameter="ProductVersion" />
  93. </GetProductVersion>
  94. <Message Text="VCToolsProductVersion $(VCToolsProductVersion)" Importance="High" />
  95. <WriteLinesToFile
  96. File="$(BuildInfoOutput)"
  97. Lines="$([System.IO.File]::ReadAllText($(BuildInfoTemplate)).Replace('${VC_TOOLS_VERSION}', $(VCToolsProductVersion)))"
  98. Overwrite="true"
  99. />
  100. </Target>
  101. </Project>