common-build-settings.vcxproj 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup Label="UserMacros">
  4. <!-- WinXP = 0; Vista = 1; Win7 = 2; Win8 = 3...
  5. Only 0 and 1 are used currently -->
  6. <TargetOSLevel Condition="$(PlatformToolset.EndsWith('_xp'))">0</TargetOSLevel>
  7. <TargetOSLevel Condition="! $(PlatformToolset.EndsWith('_xp'))">1</TargetOSLevel>
  8. </PropertyGroup>
  9. <PropertyGroup>
  10. <IncludePath>$(SolutionDir);$(MhdW32Common);$(MhdSrc)include;$(IncludePath)</IncludePath>
  11. </PropertyGroup>
  12. <PropertyGroup Condition="'$(Platform)'=='Win32'">
  13. <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\</IntDir>
  14. <OutDir>$(SolutionDir)Output\</OutDir>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(Platform)'=='x64'">
  17. <IntDir>$(SolutionDir)$(ProjectName)\$(Configuration)\$(Platform)\</IntDir>
  18. <OutDir>$(SolutionDir)Output\$(Platform)\</OutDir>
  19. </PropertyGroup>
  20. <PropertyGroup Condition="'$(UseDebugLibraries)'=='true'">
  21. <LinkIncremental>true</LinkIncremental>
  22. </PropertyGroup>
  23. <PropertyGroup Condition="'$(UseDebugLibraries)'!='true'">
  24. <LinkIncremental>false</LinkIncremental>
  25. </PropertyGroup>
  26. <ItemDefinitionGroup>
  27. <ClCompile>
  28. <PrecompiledHeader>NotUsing</PrecompiledHeader>
  29. <WarningLevel>Level3</WarningLevel>
  30. <PreprocessorDefinitions>WIN32;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  31. <DisableSpecificWarnings>4996</DisableSpecificWarnings>
  32. <TreatSpecificWarningsAsErrors>4013</TreatSpecificWarningsAsErrors>
  33. <ProgramDataBaseFileName>$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName>
  34. <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
  35. <LanguageStandard_C Condition="'%(ClCompile.LanguageStandard_C)' != ''">stdc17</LanguageStandard_C>
  36. </ClCompile>
  37. <Link>
  38. <GenerateDebugInformation>true</GenerateDebugInformation>
  39. </Link>
  40. </ItemDefinitionGroup>
  41. <ItemDefinitionGroup Condition="'$(TargetOSLevel)'&gt;'0'">
  42. <ClCompile>
  43. <PreprocessorDefinitions>_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  44. </ClCompile>
  45. <Link>
  46. <MinimumRequiredVersion>6.00</MinimumRequiredVersion>
  47. </Link>
  48. <Lib>
  49. <MinimumRequiredVersion>6.00</MinimumRequiredVersion>
  50. </Lib>
  51. </ItemDefinitionGroup>
  52. <ItemDefinitionGroup Condition="'$(TargetOSLevel)'=='0' And '$(Platform)'=='Win32'">
  53. <ClCompile>
  54. <PreprocessorDefinitions>_WIN32_WINNT=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  55. </ClCompile>
  56. <Link>
  57. <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  58. </Link>
  59. <Lib>
  60. <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  61. </Lib>
  62. </ItemDefinitionGroup>
  63. <ItemDefinitionGroup Condition="'$(TargetOSLevel)'=='0' And '$(Platform)'=='x64'">
  64. <ClCompile>
  65. <PreprocessorDefinitions>_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  66. </ClCompile>
  67. <Link>
  68. <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  69. </Link>
  70. <Lib>
  71. <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  72. </Lib>
  73. </ItemDefinitionGroup>
  74. <ItemDefinitionGroup Condition="'$(UseDebugLibraries)'=='true'">
  75. <ClCompile>
  76. <Optimization>Disabled</Optimization>
  77. <SmallerTypeCheck>true</SmallerTypeCheck>
  78. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  79. </ClCompile>
  80. <ResourceCompile>
  81. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  82. </ResourceCompile>
  83. </ItemDefinitionGroup>
  84. <ItemDefinitionGroup Condition="'$(UseDebugLibraries)'!='true'">
  85. <ClCompile>
  86. <Optimization>Full</Optimization>
  87. <FunctionLevelLinking>true</FunctionLevelLinking>
  88. <IntrinsicFunctions>true</IntrinsicFunctions>
  89. <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
  90. <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
  91. <OmitFramePointers>true</OmitFramePointers>
  92. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  93. </ClCompile>
  94. <Link>
  95. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  96. <OptimizeReferences>true</OptimizeReferences>
  97. <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
  98. </Link>
  99. <ResourceCompile>
  100. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  101. </ResourceCompile>
  102. </ItemDefinitionGroup>
  103. <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
  104. <Link>
  105. <TargetMachine>MachineX86</TargetMachine>
  106. </Link>
  107. <Lib>
  108. <TargetMachine>MachineX86</TargetMachine>
  109. </Lib>
  110. </ItemDefinitionGroup>
  111. <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
  112. <Link>
  113. <TargetMachine>MachineX64</TargetMachine>
  114. </Link>
  115. <Lib>
  116. <TargetMachine>MachineX64</TargetMachine>
  117. </Lib>
  118. </ItemDefinitionGroup>
  119. </Project>