Chakra.Build.props 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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_WinBlue)'">0x0603</Win32_WinNTVersion>
  8. <Win32_WinNTVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win10)'">0x0A00</Win32_WinNTVersion>
  9. <!-- Always use Platform SDK for core builds -->
  10. <EventManifestXmlPath Condition="'$(TargetPlatformVersion)'=='8.1'">$(WindowsSdkDir)Include\um</EventManifestXmlPath>
  11. <EventManifestXmlPath Condition="'$(TargetPlatformVersion)'!='8.1'">$(WindowsSdkDir)Include\$(TargetPlatformVersion)\um</EventManifestXmlPath>
  12. </PropertyGroup>
  13. <PropertyGroup>
  14. <NoThrowNewLib>nothrownew.obj</NoThrowNewLib>
  15. </PropertyGroup>
  16. <PropertyGroup Condition="'$(RunCodeAnalysis)'=='' AND '$(Configuration)'=='Release'">
  17. <RunCodeAnalysis>$(BuildWithCodeAnalysis)</RunCodeAnalysis>
  18. </PropertyGroup>
  19. <ItemDefinitionGroup>
  20. <ClCompile>
  21. <PreprocessorDefinitions>
  22. %(PreprocessorDefinitions);
  23. _CHAKRACOREBUILD;
  24. _WIN32_WINNT=$(Win32_WinNTVersion);
  25. WINVER=$(Win32_WinNTVersion);
  26. WIN32_LEAN_AND_MEAN=1
  27. </PreprocessorDefinitions>
  28. <PreprocessorDefinitions Condition="'$(BuildJIT)'=='false'">
  29. %(PreprocessorDefinitions);
  30. DISABLE_JIT=1
  31. </PreprocessorDefinitions>
  32. <PreprocessorDefinitions Condition="'$(IntlICU)'=='true'">
  33. %(PreprocessorDefinitions);
  34. INTL_ICU=1
  35. </PreprocessorDefinitions>
  36. <PreprocessorDefinitions Condition="'$(ForceSWB)'=='true'">
  37. %(PreprocessorDefinitions);
  38. GLOBAL_ENABLE_WRITE_BARRIER=1
  39. </PreprocessorDefinitions>
  40. <PreprocessorDefinitions Condition="'$(NTDDIVersion)'!=''" >%(PreprocessorDefinitions);NTDDI_VERSION=$(NTDDIVersion)</PreprocessorDefinitions>
  41. <!-- REVIEW: These are warning are introduced when moving to VS2015 tools, may want to clean these up -->
  42. <DisableSpecificWarnings>
  43. %(DisableSpecificWarnings);
  44. 4458; <!-- declaration of '' hides class member -->
  45. 4312; <!-- 'type cast': conversion from '' to '' of greater size -->
  46. </DisableSpecificWarnings>
  47. <!-- Use the debug CRT in debug build -->
  48. <RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'!='static_library'">MultiThreadedDebugDLL</RuntimeLibrary>
  49. <RuntimeLibrary Condition="'$(Configuration)'=='Debug' AND '$(RuntimeLib)'=='static_library'">MultiThreadedDebug</RuntimeLibrary>
  50. <AdditionalIncludeDirectories>
  51. $(ChakraCoreRootDirectory)\lib\common\placeholder;
  52. $(IntDir)..\CoreManifests;
  53. %(AdditionalIncludeDirectories)
  54. </AdditionalIncludeDirectories>
  55. <AdditionalIncludeDirectories Condition="'$(IntlICU)'=='true'">
  56. $(IcuIncludeDir)\common;
  57. $(IcuIncludeDir)\i18n;
  58. %(AdditionalIncludeDirectories)
  59. </AdditionalIncludeDirectories>
  60. </ClCompile>
  61. <ResourceCompile>
  62. <PreprocessorDefinitions>%(PreprocessorDefinitions);_CHAKRACOREBUILD</PreprocessorDefinitions>
  63. </ResourceCompile>
  64. </ItemDefinitionGroup>
  65. <!-- Link dependencies for projects that link with Chakra libraries -->
  66. <PropertyGroup>
  67. <ChakraCommonLinkDependencies>
  68. oleaut32.lib;
  69. version.lib
  70. </ChakraCommonLinkDependencies>
  71. <RLCommonLinkDependencies>
  72. kernel32.lib;
  73. ole32.lib
  74. </RLCommonLinkDependencies>
  75. </PropertyGroup>
  76. <PropertyGroup Condition="'$(DebugBuild)'=='true'">
  77. <ChakraCommonLinkDependencies>
  78. $(ChakraCommonLinkDependencies);
  79. dbghelp.lib;
  80. user32.lib
  81. </ChakraCommonLinkDependencies>
  82. </PropertyGroup>
  83. <Import Condition="'$(Clang)'!=''" Project="Chakra.Build.Clang.props"/>
  84. </Project>