Chakra.Build.props 3.5 KB

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