Chakra.Build.props 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. <PreprocessorDefinitions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">
  28. %(PreprocessorDefinitions);
  29. BYTECODE_TESTING=1
  30. </PreprocessorDefinitions>
  31. <!-- REVIEW: These are warning are introduced when moving to VS2015 tools, may want to clean these up -->
  32. <DisableSpecificWarnings>
  33. %(DisableSpecificWarnings);
  34. 4458; <!-- declaration of '' hides class member -->
  35. 4312; <!-- 'type cast': conversion from '' to '' of greater size -->
  36. </DisableSpecificWarnings>
  37. <!-- Use the debug CRT in debug build -->
  38. <RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'!='static_library'">MultiThreadedDebugDLL</RuntimeLibrary>
  39. <RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'=='static_library'">MultiThreadedDebug</RuntimeLibrary>
  40. <AdditionalIncludeDirectories>
  41. $(ChakraCoreRootDirectory)\lib\common\placeholder;
  42. %(AdditionalIncludeDirectories)
  43. </AdditionalIncludeDirectories>
  44. <!-- ======== For Code Coverage ======== -->
  45. <Optimization Condition="'$(ENABLE_CODECOVERAGE)'=='true'">Disabled</Optimization>
  46. </ClCompile>
  47. <Link>
  48. <!-- ======== For Code Coverage ======== -->
  49. <AdditionalOptions Condition="'$(ENABLE_CODECOVERAGE)'=='true'">%(AdditionalOptions) /DEBUGTYPE:CV,FIXUP</AdditionalOptions>
  50. </Link>
  51. </ItemDefinitionGroup>
  52. <!-- Link dependencies for projects that link with Chakra libraries -->
  53. <PropertyGroup>
  54. <ChakraCommonLinkDependencies>
  55. oleaut32.lib;
  56. version.lib
  57. </ChakraCommonLinkDependencies>
  58. </PropertyGroup>
  59. <PropertyGroup Condition="'$(OptimizedBuild)'!='true'">
  60. <ChakraCommonLinkDependencies>
  61. $(ChakraCommonLinkDependencies);
  62. dbghelp.lib;
  63. user32.lib
  64. </ChakraCommonLinkDependencies>
  65. </PropertyGroup>
  66. <Import Condition="'$(Clang)'!=''" Project="Chakra.Build.Clang.props"/>
  67. </Project>