common-build-settings.vcxproj 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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. </ClCompile>
  36. <Link>
  37. <GenerateDebugInformation>true</GenerateDebugInformation>
  38. </Link>
  39. </ItemDefinitionGroup>
  40. <ItemDefinitionGroup Condition="'$(TargetOSLevel)'&gt;'0'">
  41. <ClCompile>
  42. <PreprocessorDefinitions>_WIN32_WINNT=0x0600;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  43. </ClCompile>
  44. <Link>
  45. <MinimumRequiredVersion>6.00</MinimumRequiredVersion>
  46. </Link>
  47. <Lib>
  48. <MinimumRequiredVersion>6.00</MinimumRequiredVersion>
  49. </Lib>
  50. </ItemDefinitionGroup>
  51. <ItemDefinitionGroup Condition="'$(TargetOSLevel)'=='0' And '$(Platform)'=='Win32'">
  52. <ClCompile>
  53. <PreprocessorDefinitions>_WIN32_WINNT=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  54. </ClCompile>
  55. <Link>
  56. <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  57. </Link>
  58. <Lib>
  59. <MinimumRequiredVersion>5.01</MinimumRequiredVersion>
  60. </Lib>
  61. </ItemDefinitionGroup>
  62. <ItemDefinitionGroup Condition="'$(TargetOSLevel)'=='0' And '$(Platform)'=='x64'">
  63. <ClCompile>
  64. <PreprocessorDefinitions>_WIN32_WINNT=0x0502;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  65. </ClCompile>
  66. <Link>
  67. <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  68. </Link>
  69. <Lib>
  70. <MinimumRequiredVersion>5.02</MinimumRequiredVersion>
  71. </Lib>
  72. </ItemDefinitionGroup>
  73. <ItemDefinitionGroup Condition="'$(UseDebugLibraries)'=='true'">
  74. <ClCompile>
  75. <Optimization>Disabled</Optimization>
  76. <SmallerTypeCheck>true</SmallerTypeCheck>
  77. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  78. </ClCompile>
  79. <ResourceCompile>
  80. <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  81. </ResourceCompile>
  82. </ItemDefinitionGroup>
  83. <ItemDefinitionGroup Condition="'$(UseDebugLibraries)'!='true'">
  84. <ClCompile>
  85. <Optimization>Full</Optimization>
  86. <FunctionLevelLinking>true</FunctionLevelLinking>
  87. <IntrinsicFunctions>true</IntrinsicFunctions>
  88. <InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
  89. <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
  90. <OmitFramePointers>true</OmitFramePointers>
  91. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  92. </ClCompile>
  93. <Link>
  94. <EnableCOMDATFolding>true</EnableCOMDATFolding>
  95. <OptimizeReferences>true</OptimizeReferences>
  96. <LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
  97. </Link>
  98. <ResourceCompile>
  99. <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
  100. </ResourceCompile>
  101. </ItemDefinitionGroup>
  102. <ItemDefinitionGroup Condition="'$(Platform)'=='Win32'">
  103. <Link>
  104. <TargetMachine>MachineX86</TargetMachine>
  105. </Link>
  106. <Lib>
  107. <TargetMachine>MachineX86</TargetMachine>
  108. </Lib>
  109. </ItemDefinitionGroup>
  110. <ItemDefinitionGroup Condition="'$(Platform)'=='x64'">
  111. <Link>
  112. <TargetMachine>MachineX64</TargetMachine>
  113. </Link>
  114. <Lib>
  115. <TargetMachine>MachineX64</TargetMachine>
  116. </Lib>
  117. </ItemDefinitionGroup>
  118. </Project>