Chakra.ICU.Build.props 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <PropertyGroup>
  4. <BuildLocalICU>false</BuildLocalICU>
  5. <BuildLocalICU Condition="'$(ChakraICU)'=='static' OR '$(ChakraICU)'=='shared'">true</BuildLocalICU>
  6. </PropertyGroup>
  7. <ItemDefinitionGroup>
  8. <ClCompile>
  9. <!-- ICU warning output is exceptionally noisy -->
  10. <WarningLevel>TurnOffAllWarnings</WarningLevel>
  11. <TreatWarningAsError>false</TreatWarningAsError>
  12. <!-- ICU uses RTTI internally, while the rest of ChakraCore does not -->
  13. <RuntimeTypeInfo>true</RuntimeTypeInfo>
  14. <!-- Common.Build.props sets the calling convention to stdcall for x86 and chpe, while ICU just wants the default -->
  15. <CallingConvention></CallingConvention>
  16. <PreprocessorDefinitions Condition="'$(ChakraICU)'!='shared'">
  17. U_STATIC_IMPLEMENTATION=1;
  18. %(PreprocessorDefinitions)
  19. </PreprocessorDefinitions>
  20. <!-- These are mostly similar definitions to those used by Node -->
  21. <PreprocessorDefinitions>
  22. UCONFIG_NO_BREAK_ITERATION=1;
  23. UCONFIG_NO_REGULAR_EXPRESSIONS=1;
  24. UCONFIG_NO_SERVICE=1;
  25. %(PreprocessorDefinitions)
  26. </PreprocessorDefinitions>
  27. <!-- Default ICU Configuration (see source\common\common.vcxproj) -->
  28. <!-- Note that we already configure most of what common.vcxproj handles elsewhere -->
  29. <PreprocessorDefinitions>
  30. U_ATTRIBUTE_DEPRECATED=;
  31. _CRT_SECURE_NO_DEPRECATE;
  32. %(PreprocessorDefinitions)
  33. </PreprocessorDefinitions>
  34. <!-- Some ICU files use embedded UTF-8 -->
  35. <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions>
  36. </ClCompile>
  37. </ItemDefinitionGroup>
  38. </Project>