|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 3 | + <ItemDefinitionGroup> |
| 4 | + <ClCompile> |
| 5 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);NOMINMAX;USE_EDGEMODE_JSRT</PreprocessorDefinitions> |
| 6 | + <!-- Some of our STDMETHOD can throw |
| 7 | + TODO: Code review STDMETHOD and separate out API that can throw and those that can't --> |
| 8 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);COM_STDMETHOD_CAN_THROW</PreprocessorDefinitions> |
| 9 | + |
| 10 | + <PreprocessorDefinitions Condition="'$(RuntimeLib)'=='static_library'">%(PreprocessorDefinitions);USE_STATIC_RUNTIMELIB</PreprocessorDefinitions> |
| 11 | + |
| 12 | + <!-- /W4 --> |
| 13 | + <WarningLevel>Level4</WarningLevel> |
| 14 | + <!-- /WX --> |
| 15 | + <TreatWarningAsError>true</TreatWarningAsError> |
| 16 | + <!-- /GR- --> |
| 17 | + <RuntimeTypeInfo>false</RuntimeTypeInfo> |
| 18 | + <!-- /Zi --> |
| 19 | + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat> |
| 20 | + <!-- /EHsc- --> |
| 21 | + <ExceptionHandling>SyncCThrow</ExceptionHandling> |
| 22 | + <!-- /Gz --> |
| 23 | + <CallingConvention Condition="'$(Platform)'=='Win32'">StdCall</CallingConvention> |
| 24 | + <!-- /Zp8 --> |
| 25 | + <StructMemberAlignment>8Bytes</StructMemberAlignment> |
| 26 | + <!-- /GS --> |
| 27 | + <BufferSecurityCheck>true</BufferSecurityCheck> |
| 28 | + <!-- /Gy --> |
| 29 | + <FunctionLevelLinking>true</FunctionLevelLinking> |
| 30 | + <!-- /GF --> |
| 31 | + <StringPooling>true</StringPooling> |
| 32 | + <!-- /MD --> |
| 33 | + <RuntimeLibrary Condition="'$(RuntimeLib)'!='static_library'">MultiThreadedDLL</RuntimeLibrary> |
| 34 | + <RuntimeLibrary Condition="'$(RuntimeLib)'=='static_library'">MultiThreaded</RuntimeLibrary> |
| 35 | + |
| 36 | + <!-- We don't use any metadata --> |
| 37 | + <AdditionalUsingDirectories /> |
| 38 | + |
| 39 | + <AdditionalOptions>%(AdditionalOptions) /Zm125</AdditionalOptions> |
| 40 | + <AdditionalOptions>%(AdditionalOptions) /Yl$(TargetName)</AdditionalOptions> |
| 41 | + <!-- Separate global variable for linker --> |
| 42 | + <AdditionalOptions>%(AdditionalOptions) /Gw</AdditionalOptions> |
| 43 | + |
| 44 | + <ProgramDataBaseFileName Condition="'$(ConfigurationType)'=='StaticLibrary'">$(IntDir)$(TargetName).pdb</ProgramDataBaseFileName> |
| 45 | + <ProgramDataBaseFileName Condition="'$(ConfigurationType)'!='StaticLibrary'">$(IntDir)</ProgramDataBaseFileName> |
| 46 | + </ClCompile> |
| 47 | + <ResourceCompile> |
| 48 | + <PreprocessorDefinitions Condition="'$(ChakraVersionBuildNumber)'!=''">%(PreprocessorDefinitions);CHAKRA_VERSION_BUILD_NUMBER=$(ChakraVersionBuildNumber)</PreprocessorDefinitions> |
| 49 | + <PreprocessorDefinitions Condition="'$(ChakraVersionBuildQFENumber)'!=''">%(PreprocessorDefinitions);CHAKRA_VERSION_BUILD_QFE=$(ChakraVersionBuildQFENumber)</PreprocessorDefinitions> |
| 50 | + <PreprocessorDefinitions Condition="'$(ChakraVersionBuildCommit)'!=''">%(PreprocessorDefinitions);CHAKRA_VERSION_BUILD_COMMIT=$(ChakraVersionBuildCommit)</PreprocessorDefinitions> |
| 51 | + <PreprocessorDefinitions Condition="'$(ChakraVersionBuildDate)'!=''">%(PreprocessorDefinitions);CHAKRA_VERSION_BUILD_DATE=$(ChakraVersionBuildDate)</PreprocessorDefinitions> |
| 52 | + </ResourceCompile> |
| 53 | + <MASM> |
| 54 | + <!-- /Cx --> |
| 55 | + <PreserveIdentifierCase>3</PreserveIdentifierCase> |
| 56 | + </MASM> |
| 57 | + <Link> |
| 58 | + <TreatLinkerWarningAsErrors>true</TreatLinkerWarningAsErrors> |
| 59 | + <GenerateDebugInformation>true</GenerateDebugInformation> |
| 60 | + <EnableCOMDATFolding Condition="'$(OptimizedBuild)'=='true'">true</EnableCOMDATFolding> |
| 61 | + <OptimizeReferences Condition="'$(OptimizedBuild)'=='true'">true</OptimizeReferences> |
| 62 | + |
| 63 | + <MinimumRequiredVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win7)'" >6.1</MinimumRequiredVersion> |
| 64 | + <MinimumRequiredVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win8)'" >6.2</MinimumRequiredVersion> |
| 65 | + <MinimumRequiredVersion Condition="'$(NtTargetVersion)'=='$(NtTargetVersion_Win10)'" >10.00</MinimumRequiredVersion> |
| 66 | + |
| 67 | + <!-- Always set the checksum --> |
| 68 | + <AdditionalOptions>%(AdditionalOptions) /release</AdditionalOptions> |
| 69 | + </Link> |
| 70 | + </ItemDefinitionGroup> |
| 71 | + <!-- chk build flags --> |
| 72 | + <ItemDefinitionGroup Condition="'$(OptimizedBuild)'!='true'"> |
| 73 | + <ClCompile> |
| 74 | + <Optimization>Disabled</Optimization> |
| 75 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);_DEBUG;DBG;DBG_DUMP</PreprocessorDefinitions> |
| 76 | + </ClCompile> |
| 77 | + <ResourceCompile> |
| 78 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);DBG;ENABLE_DEBUG_CONFIG_OPTIONS=1</PreprocessorDefinitions> |
| 79 | + </ResourceCompile> |
| 80 | + </ItemDefinitionGroup> |
| 81 | + <!-- fre and fretest build flags --> |
| 82 | + <ItemDefinitionGroup Condition="'$(OptimizedBuild)'=='true'"> |
| 83 | + <ClCompile> |
| 84 | + <PreprocessorDefinitions>%(PreprocessorDefinitions);NDEBUG</PreprocessorDefinitions> |
| 85 | + <PreprocessorDefinitions Condition="'$(Configuration)'=='Test'">%(PreprocessorDefinitions);ENABLE_DEBUG_CONFIG_OPTIONS=1</PreprocessorDefinitions> |
| 86 | + <Optimization>MaxSpeed</Optimization> |
| 87 | + <WholeProgramOptimization>true</WholeProgramOptimization> |
| 88 | + </ClCompile> |
| 89 | + <ResourceCompile> |
| 90 | + <PreprocessorDefinitions Condition="'$(Configuration)'=='Test'">%(PreprocessorDefinitions);ENABLE_DEBUG_CONFIG_OPTIONS=1</PreprocessorDefinitions> |
| 91 | + </ResourceCompile> |
| 92 | + <Link> |
| 93 | + <LinkTimeCodeGeneration Condition="'$(PlatformToolset)'=='v120' OR '$(TF_BUILD)'!=''">UseLinkTimeCodeGeneration</LinkTimeCodeGeneration> |
| 94 | + <LinkTimeCodeGeneration Condition="'$(PlatformToolset)'!='v120'">UseFastLinkTimeCodeGeneration</LinkTimeCodeGeneration> |
| 95 | + </Link> |
| 96 | + <Lib> |
| 97 | + <LinkTimeCodeGeneration>true</LinkTimeCodeGeneration> |
| 98 | + </Lib> |
| 99 | + </ItemDefinitionGroup> |
| 100 | + <ItemGroup Condition="'$(ConfigurationType)'=='DynamicLibrary' OR '$(ConfigurationType)'=='Application'"> |
| 101 | + <Clean Include="$(OutDir)$(TargetName).lib" /> |
| 102 | + <Clean Include="$(OutDir)$(TargetName).exp" /> |
| 103 | + <Clean Include="$(OutDir)$(TargetName).ipdb" /> |
| 104 | + <Clean Include="$(OutDir)$(TargetName).iobj" /> |
| 105 | + </ItemGroup> |
| 106 | +</Project> |
0 commit comments