Chakra.Build.props 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="Common.Build.props"/>
  4. <PropertyGroup>
  5. <Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win7)'">0x0601</Win32_WinNTVersion>
  6. <Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win8)'">0x0602</Win32_WinNTVersion>
  7. <Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win10)'">0x0A00</Win32_WinNTVersion>
  8. </PropertyGroup>
  9. <PropertyGroup>
  10. <NoThrowNewLib>nothrownew.obj</NoThrowNewLib>
  11. </PropertyGroup>
  12. <PropertyGroup Condition="'$(RunCodeAnalysis)'=='' AND '$(Configuration)'=='Release'">
  13. <RunCodeAnalysis>$(BuildWithCodeAnalysis)</RunCodeAnalysis>
  14. </PropertyGroup>
  15. <ItemDefinitionGroup>
  16. <ClCompile>
  17. <PreprocessorDefinitions>
  18. %(PreprocessorDefinitions);
  19. _WIN32_WINNT=$(Win32_WinNTVersion);
  20. WINVER=$(Win32_WinNTVersion);
  21. WIN32_LEAN_AND_MEAN=1
  22. </PreprocessorDefinitions>
  23. <PreprocessorDefinitions Condition="'$(BuildJIT)'=='false'">
  24. %(PreprocessorDefinitions);
  25. DISABLE_JIT=1
  26. </PreprocessorDefinitions>
  27. <!-- REVIEW: These are warning are introduced when moving to VS2015 tools, may want to clean these up -->
  28. <DisableSpecificWarnings>
  29. %(DisableSpecificWarnings);
  30. 4456; <!-- declaration of '' hides previous local declaration -->
  31. 4457; <!-- declaration of '' hides function parameter -->
  32. 4458; <!-- declaration of '' hides class memeber -->
  33. 4091; <!-- '': ignore on lef of 'type' when no variable is declared -->
  34. 4838; <!-- conversion from 'unsigned int' to 'int requires a narrowing conversion -->
  35. 4499; <!-- explicit specialization cannot have a storage class (ignored) -->
  36. 4463; <!-- overflow; assigning 1 to bit-field that can only hold values from -1 to 0 -->
  37. 4311; <!-- 'type cast': pointer truncation from '' to '' -->
  38. 4312; <!-- 'type cast': conversion from '' to '' of greater size -->
  39. </DisableSpecificWarnings>
  40. <!-- Use the debug CRT in debug build -->
  41. <RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'!='static_library'">MultiThreadedDebugDLL</RuntimeLibrary>
  42. <RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'=='static_library'">MultiThreadedDebug</RuntimeLibrary>
  43. <AdditionalIncludeDirectories>
  44. $(ChakraCoreRootDirectory)\lib\common\placeholder;
  45. %(AdditionalIncludeDirectories)
  46. </AdditionalIncludeDirectories>
  47. <!-- ======== For Code Covearge ======== -->
  48. <Optimization Condition="'$(ENABLE_CODECOVERAGE)'=='true'">Disabled</Optimization>
  49. </ClCompile>
  50. <Link>
  51. <!-- ======== For Code Covearge ======== -->
  52. <AdditionalOptions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">%(AdditionalOptions) /DEBUGTYPE:CV,FIXUP</AdditionalOptions>
  53. </Link>
  54. </ItemDefinitionGroup>
  55. </Project>