| <?xml version="1.0" encoding="utf-8"?> |
| <Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| <PropertyGroup> |
| <BuildLocalICU>false</BuildLocalICU> |
| <BuildLocalICU Condition="'$(ChakraICU)'=='static' OR '$(ChakraICU)'=='shared'">true</BuildLocalICU> |
| </PropertyGroup> |
| <ItemDefinitionGroup> |
| <ClCompile> |
| <!-- ICU warning output is exceptionally noisy --> |
| <WarningLevel>TurnOffAllWarnings</WarningLevel> |
| <TreatWarningAsError>false</TreatWarningAsError> |
| |
| <!-- ICU uses RTTI internally, while the rest of ChakraCore does not --> |
| <RuntimeTypeInfo>true</RuntimeTypeInfo> |
| |
| <!-- Common.Build.props sets the calling convention to stdcall for x86 and chpe, while ICU just wants the default --> |
| <CallingConvention></CallingConvention> |
| |
| <PreprocessorDefinitions Condition="'$(ChakraICU)'!='shared'"> |
| U_STATIC_IMPLEMENTATION=1; |
| %(PreprocessorDefinitions) |
| </PreprocessorDefinitions> |
| |
| <!-- These are mostly similar definitions to those used by Node --> |
| <PreprocessorDefinitions> |
| UCONFIG_NO_BREAK_ITERATION=1; |
| UCONFIG_NO_REGULAR_EXPRESSIONS=1; |
| UCONFIG_NO_SERVICE=1; |
| %(PreprocessorDefinitions) |
| </PreprocessorDefinitions> |
| |
| <!-- Default ICU Configuration (see source\common\common.vcxproj) --> |
| <!-- Note that we already configure most of what common.vcxproj handles elsewhere --> |
| <PreprocessorDefinitions> |
| U_ATTRIBUTE_DEPRECATED=; |
| _CRT_SECURE_NO_DEPRECATE; |
| %(PreprocessorDefinitions) |
| </PreprocessorDefinitions> |
| |
| <!-- Some ICU files use embedded UTF-8 --> |
| <AdditionalOptions>/utf-8 %(AdditionalOptions)</AdditionalOptions> |
| </ClCompile> |
| </ItemDefinitionGroup> |
| </Project> |