Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- ***********************************************************************************************
- Microsoft.CppCommon.targets
- WARNING: DO NOT MODIFY this file unless you are knowledgeable about MSBuild and have
- created a backup copy. Incorrect changes to this file will make it
- impossible to load or build your projects from the command-line or the IDE.
- This file defines the steps/targets common to building Visual C++ projects.
- Copyright (C) Microsoft Corporation. All rights reserved.
- ***********************************************************************************************
- -->
- <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <!-- Yield optimization properties -->
- <YieldDuringToolExecution Condition="'$(YieldDuringToolExecution)' == ''">true</YieldDuringToolExecution>
- <ClYieldDuringToolExecution Condition="'$(ClYieldDuringToolExecution)' == ''">$(YieldDuringToolExecution)</ClYieldDuringToolExecution>
- <MidlYieldDuringToolExecution Condition="'$(MidlYieldDuringToolExecution)' == ''">$(YieldDuringToolExecution)</MidlYieldDuringToolExecution>
- </PropertyGroup>
- <!-- Define the Target Macros-->
- <PropertyGroup>
- <!-- If OutDir was set outside of the project file, then we will append ProjectName -->
- <OutDir Condition="'$(OutDirWasSpecified)' == 'true' and (('$(WindowsAppContainer)' == 'true' and '$(GenerateProjectSpecificOutputFolder)' != 'false') or '$(GenerateProjectSpecificOutputFolder)' == 'true')">$(OutDir)$(ProjectName)\</OutDir>
- <!-- Correct OutputPath as it may be out of sync with OutDir -->
- <OutputPath>$(OutDir)</OutputPath>
- <TargetPath Condition="'$(TargetPath)' == ''">$([System.IO.Path]::Combine($(ProjectDir),$(OutDir)$(TargetName)$(TargetExt)))</TargetPath>
- <TargetFileName Condition=" '$(TargetFileName)'=='' ">$([System.IO.Path]::GetFileName('$(TargetPath)'))</TargetFileName>
- <TargetDir Condition=" '$(TargetDir)'==''" >$([System.IO.Path]::GetDirectoryName('$(TargetPath)'))</TargetDir>
- <LocalDebuggerCommand Condition="'$(LocalDebuggerCommand)'==''">$(TargetPath)</LocalDebuggerCommand>
- <ExtensionsToDeleteOnClean>$(ExtensionsToDeleteOnClean);$(TargetPath).manifest;$(OutDir)$(TargetName).tlb;$(OutDir)$(TargetName).pdb;$(TargetPath);$(OutDir)$(TargetName).bsc;$(OutDir)$(TargetName).ilk;$(TargetPath).intermediate.manifest</ExtensionsToDeleteOnClean>
- <IntermediateOutputPath Condition="'$(IntermediateOutputPath)'==''">$(IntDir)</IntermediateOutputPath>
- <!-- Set AppxPackageDir before OutDirWasSpecified is set false -->
- <AppxPackageDir Condition=" '$(OutDirWasSpecified)' == 'true' ">$(OutDir)AppPackages\</AppxPackageDir>
- <!-- After OutDir has been fixed, disable Microsoft.common.targets from fixing it again -->
- <OutDirWasSpecified>false</OutDirWasSpecified>
- <!-- Enable incremental build by enable file tracking in tasks-->
- <TrackFileAccess Condition="'$(TrackFileAccess)' == ''">true</TrackFileAccess>
- </PropertyGroup>
- <!--
- Link.exe can now embed manifest. This helps the build avoid the double linking. The build will pretend that it is embedding by MT, but instead
- of passing MT the embed command, it will pass it them to link.exe via /manifest:embed and /manifestinput. MT will still run incase there are other utilities
- MT provides.
- To revert back to the old behavior set $(LegacyManifestEmbedding) to true.
- -->
- <!-- If we are compiling managed -->
- <PropertyGroup Condition="'$(GenerateManifest)' == 'true' AND '$(EmbedManifest)'=='true' AND '$(CLRSupport)'!='' AND '$(CLRSupport)'!='false' AND
- ('$(ConfigurationType)'=='Application' OR '$(ConfigurationType)'=='DynamicLibrary' ) ">
- <EmbedManifestBy Condition="'$(LinkKeyFile)'=='' OR '$(LinkDelaySign)'=='true'">MT</EmbedManifestBy>
- <EmbedManifestBy Condition="'$(LinkKeyFile)'!='' AND '$(LinkDelaySign)'!='true'">LINK</EmbedManifestBy>
- </PropertyGroup>
- <!-- If we are compiling native -->
- <PropertyGroup Condition="'$(GenerateManifest)' == 'true' AND '$(EmbedManifest)'=='true' AND ('$(CLRSupport)'=='false' or '$(CLRSupport)'=='') AND
- ('$(ConfigurationType)'=='Application' OR '$(ConfigurationType)'=='DynamicLibrary' ) ">
- <EmbedManifestBy Condition="'$(LinkIncremental)'=='true'">LINK</EmbedManifestBy>
- <EmbedManifestBy Condition="'$(LinkIncremental)'!='true'">MT</EmbedManifestBy>
- </PropertyGroup>
- <Import Project="$(VCTargetsPath)\Microsoft.CppBuild.targets"/>
- <UsingTask TaskName="VCMessage" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll" />
- <UsingTask TaskName="LIB" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="MIDL" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="RC" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="Mt" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="XSD" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="XDCMake" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="BscMake" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="CustomBuild" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="CL" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="Link" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="FXC" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <UsingTask TaskName="MultiToolTask" AssemblyFile="$(MSBuildThisFileDirectory)Microsoft.Build.CppTasks.Common.dll"/>
- <!-- *******************************************************************************************
- AvailableItemName
- ******************************************************************************************* -->
- <!-- Creates a connection between item names and the targets to build them. -->
- <ItemGroup>
- <AvailableItemName Include="ClCompile">
- <Targets>ClCompile</Targets>
- </AvailableItemName>
- <AvailableItemName Include="Midl">
- <Targets>Midl</Targets>
- </AvailableItemName>
- <AvailableItemName Include="ResourceCompile">
- <Targets>ResourceCompile</Targets>
- </AvailableItemName>
- <AvailableItemName Include="EmbeddedResource">
- <Targets>ResGen</Targets>
- </AvailableItemName>
- <AvailableItemName Include="CustomBuild">
- <Targets>CustomBuild</Targets>
- </AvailableItemName>
- <AvailableItemName Include="Xsd">
- <Targets>Xsd</Targets>
- </AvailableItemName>
- <AvailableItemName Include="FxCompile">
- <Targets>FxCompile</Targets>
- </AvailableItemName>
- </ItemGroup>
- <!-- *******************************************************************************************
- Build Events
- ******************************************************************************************* -->
- <PropertyGroup>
- <_BuildSuffix>
- :VCEnd</_BuildSuffix>
- </PropertyGroup>
- <Target Name="PreBuildEvent" Condition="'$(PreBuildEventUseInBuild)'!='false'">
- <Message Text="Description: %(PreBuildEvent.Message)" Condition="'%(PreBuildEvent.Message)' != '' and '%(PreBuildEvent.Command)' != ''"/>
- <Exec Command="%(PreBuildEvent.Command)$(_BuildSuffix)" Condition="'%(PreBuildEvent.Command)' != ''"/>
- </Target>
- <Target Name="PreLinkEvent" Condition="'$(PreLinkEventUseInBuild)'!='false'">
- <Message Text="Description: %(PreLinkEvent.Message)" Condition="'%(PreLinkEvent.Message)' != '' and '%(PreLinkEvent.Command)' != ''"/>
- <Exec Command="%(PreLinkEvent.Command)$(_BuildSuffix)" Condition="'%(PreLinkEvent.Command)' != ''"/>
- </Target>
- <Target Name="PostBuildEvent" Condition="'$(PostBuildEventUseInBuild)'!='false'">
- <Message Text="Description: %(PostBuildEvent.Message)" Condition="'%(PostBuildEvent.Message)' != '' and '%(PostBuildEvent.Command)' != ''"/>
- <Exec Command="%(PostBuildEvent.Command)$(_BuildSuffix)" Condition="'%(PostBuildEvent.Command)' != ''"/>
- </Target>
- <!-- *******************************************************************************************
- Custom Build
- ******************************************************************************************* -->
- <PropertyGroup Condition="'$(CustomBuildAfterTargets)'!='' or '$(CustomBuildBeforeTargets)'!=''">
- <CustomBuildToolBeforeTargets>$(CustomBuildBeforeTargets)</CustomBuildToolBeforeTargets>
- <CustomBuildToolAfterTargets>$(CustomBuildAfterTargets)</CustomBuildToolAfterTargets>
- </PropertyGroup>
- <!--If no before/after targets are set, then set the default-->
- <PropertyGroup Condition="'$(CustomBuildAfterTargets)'=='' and '$(CustomBuildBeforeTargets)'==''">
- <CustomBuildToolBeforeTargets>Midl</CustomBuildToolBeforeTargets>
- <CustomBuildToolAfterTargets>PreBuildEvent</CustomBuildToolAfterTargets>
- <CustomBuildBeforeTargets>PostBuildEvent</CustomBuildBeforeTargets>
- <CustomBuildAfterTargets>BscMake</CustomBuildAfterTargets>
- </PropertyGroup>
- <!-- If Selective File Build is enabled, then dont let custom interupt the build order-->
- <PropertyGroup Condition="'$(SelectedFiles)'!=''">
- <CustomBuildToolBeforeTargets></CustomBuildToolBeforeTargets>
- <CustomBuildToolAfterTargets></CustomBuildToolAfterTargets>
- <CustomBuildBeforeTargets></CustomBuildBeforeTargets>
- <CustomBuildAfterTargets></CustomBuildAfterTargets>
- </PropertyGroup>
- <Target Name="CustomBuild"
- Condition="'@(CustomBuild)' != ''"
- DependsOnTargets="SelectCustomBuild;ComputeCustomBuildOutput"
- BeforeTargets="$(CustomBuildToolBeforeTargets)"
- AfterTargets="$(CustomBuildToolAfterTargets)"
- >
- <PropertyGroup>
- <CustomBuildToolArchitecture Condition="'$(CustomBuildToolArchitecture)' == ''">Native32Bit</CustomBuildToolArchitecture>
- </PropertyGroup>
- <CustomBuild
- Sources ="@(CustomBuild)"
- BuildSuffix ="$(_BuildSuffix)"
- TrackerLogDirectory ="%(CustomBuild.TrackerLogDirectory)"
- MinimalRebuildFromTracking ="%(CustomBuild.MinimalRebuildFromTracking)"
- TLogReadFiles ="@(CustomBuildTLogReadFiles)"
- TLogWriteFiles ="@(CustomBuildTLogWriteFiles)"
- TrackFileAccess ="$(TrackFileAccess)"
- ToolArchitecture ="$(CustomBuildToolArchitecture)"
- TrackerFrameworkPath ="$(CustomBuildTrackerFrameworkPath)"
- TrackerSdkPath ="$(CustomBuildTrackerSdkPath)"
- AcceptableNonZeroExitCodes ="%(CustomBuild.AcceptableNonZeroExitCodes)"
- >
- </CustomBuild>
- </Target>
- <Target Name="CustomBuildStep"
- Condition="'@(CustomBuildStep)' != '' and '$(SelectedFiles)'==''"
- Inputs="%(CustomBuildStep.Inputs);$(ProjectFileName)"
- Outputs="%(CustomBuildStep.Outputs)"
- DependsOnTargets="ComputeCustomBuildOutput"
- BeforeTargets="$(CustomBuildBeforeTargets)"
- AfterTargets="$(CustomBuildAfterTargets)"
- >
- <Message Text="Description: %(CustomBuildStep.Message)" Condition="%(CustomBuildStep.Message) != ''"/>
- <!-- Appended tlog to track custom build events -->
- <WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="@(CustomBuildStep->'^%(Identity)');@(CustomBuildStep->MetaData('Outputs')->FullPath()->Distinct())" Encoding="Unicode"/>
- <Exec Command="%(CustomBuildStep.Command)$(_BuildSuffix)" />
- </Target>
- <!-- *******************************************************************************************
- CLCompile
- ******************************************************************************************* -->
- <PropertyGroup>
- <ComputeCompileInputsTargets>
- $(ComputeCompileInputsTargets);
- FixupCLCompileOptions;
- </ComputeCompileInputsTargets>
- </PropertyGroup>
- <Target Name="FixupCLCompileOptions"
- Condition="'@(ClCompile)' != ''">
- <ItemGroup>
- <ClCompile>
- <PrecompiledHeaderOutputFile Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderOutputFile>
- <PrecompiledHeaderOutputFile Condition="'%(ClCompile.PrecompiledHeader)' != 'NotUsing' and '$(RunCodeAnalysisOnce)' == 'true' and '$(RunCodeAnalysisOnThisProject)' == 'true' and '%(ClCompile.PrecompiledHeader)' != '' and '%(ClCompile.PrecompiledHeaderOutputFile)' != '' and '%(ClCompile.CompilerIteration)' == ''">%(ClCompile.PrecompiledHeaderOutputFile).codeanalysis</PrecompiledHeaderOutputFile>
- <PrecompiledHeaderFile Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderFile>
- <UseUnicodeForAssemblerListing Condition="'%(ClCompile.AssemblerOutput)' == 'NoListing' or '%(ClCompile.AssemblerOutput)' == ''"></UseUnicodeForAssemblerListing>
- <AssemblerListingLocation Condition="'%(ClCompile.AssemblerOutput)' == 'NoListing' or '%(ClCompile.AssemblerOutput)' == ''"></AssemblerListingLocation>
- <CompileAs Condition="'%(ClCompile.CompileAs)' == 'Default' and '%(ClCompile.Extension)' == '.c'">CompileAsC</CompileAs>
- <CompileAs Condition="'%(ClCompile.CompileAs)' == 'Default' and '%(ClCompile.Extension)' != '.c'">CompileAsCpp</CompileAs>
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- <WinRTNoStdLib Condition="'%(ClCompile.CompileAsWinRT)' != 'true'">false</WinRTNoStdLib>
- </ClCompile>
- </ItemGroup>
- </Target>
- <Target Name="ClCompile"
- Condition="'@(ClCompile)' != ''"
- DependsOnTargets="SelectClCompile">
- <PropertyGroup>
- <CLToolArchitecture Condition="'$(CLToolArchitecture)' == ''">$(VCToolArchitecture)</CLToolArchitecture>
- <CLDeleteOutputOnExecute Condition="'$(CLDeleteOutputOnExecute)' == ''">true</CLDeleteOutputOnExecute>
- </PropertyGroup>
- <ItemGroup>
- <ClNoDependencies Condition="'@(ClNoDependencies)' == '' and '%(ClInclude.NoDependency)' == 'true'" Include="@(ClInclude)"/>
- <ClNoDependencies Condition="'$(NoDependencies)' != ''" Include="$(NoDependencies)" />
- </ItemGroup>
- <!-- Delete the pch file if the pdb file has been deleted. This will prevent a compiler warning about obsolete pch. -->
- <Delete Condition="'%(ClCompile.DebugInformationFormat)' != '' and '%(ClCompile.DebugInformationFormat)' != 'None' and '%(ClCompile.DebugInformationFormat)' != 'OldStyle' and '%(ClCompile.ProgramDataBaseFileName)' != '' and !Exists(%(ClCompile.ProgramDataBaseFileName))"
- Files="%(ClCompile.PrecompiledHeaderOutputFile)" />
- <!-- Precompiled headers - need to build them first -->
- <CL Condition="'%(ClCompile.PrecompiledHeader)' == 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true' and '%(ClCompile.CompilerIteration)' == ''"
- BuildingInIDE ="$(BuildingInsideVisualStudio)"
- Sources ="@(ClCompile)"
- AdditionalIncludeDirectories ="%(ClCompile.AdditionalIncludeDirectories)"
- AdditionalOptions ="%(ClCompile.AdditionalOptions)"
- AdditionalUsingDirectories ="%(ClCompile.AdditionalUsingDirectories)"
- AssemblerListingLocation ="%(ClCompile.AssemblerListingLocation)"
- AssemblerOutput ="%(ClCompile.AssemblerOutput)"
- BasicRuntimeChecks ="%(ClCompile.BasicRuntimeChecks)"
- BrowseInformation ="%(ClCompile.BrowseInformation)"
- BrowseInformationFile ="%(ClCompile.BrowseInformationFile)"
- BufferSecurityCheck ="%(ClCompile.BufferSecurityCheck)"
- CallingConvention ="%(ClCompile.CallingConvention)"
- ControlFlowGuard ="%(ClCompile.ControlFlowGuard)"
- CompileAsManaged ="%(ClCompile.CompileAsManaged)"
- CompileAsWinRT ="%(ClCompile.CompileAsWinRT)"
- CompileAs ="%(ClCompile.CompileAs)"
- DebugInformationFormat ="%(ClCompile.DebugInformationFormat)"
- DiagnosticsFormat ="%(ClCompile.DiagnosticsFormat)"
- DisableLanguageExtensions ="%(ClCompile.DisableLanguageExtensions)"
- DisableSpecificWarnings ="%(ClCompile.DisableSpecificWarnings)"
- EnableEnhancedInstructionSet ="%(ClCompile.EnableEnhancedInstructionSet)"
- EnableFiberSafeOptimizations ="%(ClCompile.EnableFiberSafeOptimizations)"
- EnableParallelCodeGeneration ="%(ClCompile.EnableParallelCodeGeneration)"
- EnablePREfast ="%(ClCompile.EnablePREfast)"
- EnforceTypeConversionRules ="%(ClCompile.EnforceTypeConversionRules)"
- ErrorReporting ="%(ClCompile.ErrorReporting)"
- ExceptionHandling ="%(ClCompile.ExceptionHandling)"
- ExcludedInputPaths ="$(ExcludePath)"
- ExpandAttributedSource ="%(ClCompile.ExpandAttributedSource)"
- FavorSizeOrSpeed ="%(ClCompile.FavorSizeOrSpeed)"
- FloatingPointExceptions ="%(ClCompile.FloatingPointExceptions)"
- FloatingPointModel ="%(ClCompile.FloatingPointModel)"
- ForceConformanceInForLoopScope ="%(ClCompile.ForceConformanceInForLoopScope)"
- ForcedIncludeFiles ="%(ClCompile.ForcedIncludeFiles)"
- ForcedUsingFiles ="%(ClCompile.ForcedUsingFiles)"
- FunctionLevelLinking ="%(ClCompile.FunctionLevelLinking)"
- GenerateXMLDocumentationFiles ="%(ClCompile.GenerateXMLDocumentationFiles)"
- IgnoreStandardIncludePath ="%(ClCompile.IgnoreStandardIncludePath)"
- InlineFunctionExpansion ="%(ClCompile.InlineFunctionExpansion)"
- IntrinsicFunctions ="%(ClCompile.IntrinsicFunctions)"
- LanguageStandard ="%(ClCompile.LanguageStandard)"
- MinimalRebuild ="%(ClCompile.MinimalRebuild)"
- MultiProcessorCompilation ="%(ClCompile.MultiProcessorCompilation)"
- ObjectFileName ="%(ClCompile.ObjectFileName)"
- OmitDefaultLibName ="%(ClCompile.OmitDefaultLibName)"
- OmitFramePointers ="%(ClCompile.OmitFramePointers)"
- OpenMPSupport ="%(ClCompile.OpenMPSupport)"
- Optimization ="%(ClCompile.Optimization)"
- PrecompiledHeader ="%(ClCompile.PrecompiledHeader)"
- PrecompiledHeaderFile ="%(ClCompile.PrecompiledHeaderFile)"
- PrecompiledHeaderOutputFile ="%(ClCompile.PrecompiledHeaderOutputFile)"
- PREfastAdditionalOptions ="%(ClCompile.PREfastAdditionalOptions)"
- PREfastAdditionalPlugins ="%(ClCompile.PREfastAdditionalPlugins)"
- PREfastLog ="%(ClCompile.PREfastLog)"
- PreprocessKeepComments ="%(ClCompile.PreprocessKeepComments)"
- PreprocessorDefinitions ="%(ClCompile.PreprocessorDefinitions)"
- PreprocessSuppressLineNumbers ="%(ClCompile.PreprocessSuppressLineNumbers)"
- PreprocessToFile ="%(ClCompile.PreprocessToFile)"
- ProcessorNumber ="%(ClCompile.ProcessorNumber)"
- ProgramDataBaseFileName ="%(ClCompile.ProgramDataBaseFileName)"
- RemoveUnreferencedCodeData ="%(ClCompile.RemoveUnreferencedCodeData)"
- RuntimeLibrary ="%(ClCompile.RuntimeLibrary)"
- RuntimeTypeInfo ="%(ClCompile.RuntimeTypeInfo)"
- SDLCheck ="%(ClCompile.SDLCheck)"
- ShowIncludes ="%(ClCompile.ShowIncludes)"
- WarningVersion ="%(ClCompile.WarningVersion)"
- SmallerTypeCheck ="%(ClCompile.SmallerTypeCheck)"
- StringPooling ="%(ClCompile.StringPooling)"
- StructMemberAlignment ="%(ClCompile.StructMemberAlignment)"
- SuppressStartupBanner ="%(ClCompile.SuppressStartupBanner)"
- TreatSpecificWarningsAsErrors ="%(ClCompile.TreatSpecificWarningsAsErrors)"
- TreatWarningAsError ="%(ClCompile.TreatWarningAsError)"
- TreatWChar_tAsBuiltInType ="%(ClCompile.TreatWChar_tAsBuiltInType)"
- UndefineAllPreprocessorDefinitions ="%(ClCompile.UndefineAllPreprocessorDefinitions)"
- UndefinePreprocessorDefinitions ="%(ClCompile.UndefinePreprocessorDefinitions)"
- UseFullPaths ="%(ClCompile.UseFullPaths)"
- UseUnicodeForAssemblerListing ="%(ClCompile.UseUnicodeForAssemblerListing)"
- WarningLevel ="%(ClCompile.WarningLevel)"
- WholeProgramOptimization ="%(ClCompile.WholeProgramOptimization)"
- WinRTNoStdLib ="%(ClCompile.WinRTNoStdLib)"
- XMLDocumentationFileName ="%(ClCompile.XMLDocumentationFileName)"
- CreateHotpatchableImage ="%(CLCompile.CreateHotpatchableImage)"
- TrackerLogDirectory ="%(ClCompile.TrackerLogDirectory)"
- TLogReadFiles ="@(CLTLogReadFiles)"
- TLogWriteFiles ="@(CLTLogWriteFiles)"
- ToolExe ="$(CLToolExe)"
- ToolPath ="$(CLToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="%(ClCompile.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(CLToolArchitecture)"
- TrackerFrameworkPath ="$(CLTrackerFrameworkPath)"
- TrackerSdkPath ="$(CLTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(ClNoDependencies)"
- DeleteOutputOnExecute ="$(CLDeleteOutputOnExecute)"
- AcceptableNonZeroExitCodes ="%(ClCompile.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(ClYieldDuringToolExecution)"
- >
- </CL>
- <!-- Rest of the sources -->
- <CL Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true' and '%(ClCompile.CompilerIteration)' == '' and @(ClCompile) != ''"
- BuildingInIDE ="$(BuildingInsideVisualStudio)"
- Sources ="@(ClCompile)"
- AdditionalIncludeDirectories ="%(ClCompile.AdditionalIncludeDirectories)"
- AdditionalOptions ="%(ClCompile.AdditionalOptions)"
- AdditionalUsingDirectories ="%(ClCompile.AdditionalUsingDirectories)"
- AssemblerListingLocation ="%(ClCompile.AssemblerListingLocation)"
- AssemblerOutput ="%(ClCompile.AssemblerOutput)"
- BasicRuntimeChecks ="%(ClCompile.BasicRuntimeChecks)"
- BrowseInformation ="%(ClCompile.BrowseInformation)"
- BrowseInformationFile ="%(ClCompile.BrowseInformationFile)"
- BufferSecurityCheck ="%(ClCompile.BufferSecurityCheck)"
- CallingConvention ="%(ClCompile.CallingConvention)"
- ControlFlowGuard ="%(ClCompile.ControlFlowGuard)"
- CompileAsManaged ="%(ClCompile.CompileAsManaged)"
- CompileAsWinRT ="%(ClCompile.CompileAsWinRT)"
- CompileAs ="%(ClCompile.CompileAs)"
- DebugInformationFormat ="%(ClCompile.DebugInformationFormat)"
- DiagnosticsFormat ="%(ClCompile.DiagnosticsFormat)"
- DisableLanguageExtensions ="%(ClCompile.DisableLanguageExtensions)"
- DisableSpecificWarnings ="%(ClCompile.DisableSpecificWarnings)"
- EnableEnhancedInstructionSet ="%(ClCompile.EnableEnhancedInstructionSet)"
- EnableFiberSafeOptimizations ="%(ClCompile.EnableFiberSafeOptimizations)"
- EnableParallelCodeGeneration ="%(ClCompile.EnableParallelCodeGeneration)"
- EnablePREfast ="%(ClCompile.EnablePREfast)"
- EnforceTypeConversionRules ="%(ClCompile.EnforceTypeConversionRules)"
- ErrorReporting ="%(ClCompile.ErrorReporting)"
- ExceptionHandling ="%(ClCompile.ExceptionHandling)"
- ExcludedInputPaths ="$(ExcludePath)"
- ExpandAttributedSource ="%(ClCompile.ExpandAttributedSource)"
- FavorSizeOrSpeed ="%(ClCompile.FavorSizeOrSpeed)"
- FloatingPointExceptions ="%(ClCompile.FloatingPointExceptions)"
- FloatingPointModel ="%(ClCompile.FloatingPointModel)"
- ForceConformanceInForLoopScope ="%(ClCompile.ForceConformanceInForLoopScope)"
- ForcedIncludeFiles ="%(ClCompile.ForcedIncludeFiles)"
- ForcedUsingFiles ="%(ClCompile.ForcedUsingFiles)"
- FunctionLevelLinking ="%(ClCompile.FunctionLevelLinking)"
- GenerateXMLDocumentationFiles ="%(ClCompile.GenerateXMLDocumentationFiles)"
- IgnoreStandardIncludePath ="%(ClCompile.IgnoreStandardIncludePath)"
- InlineFunctionExpansion ="%(ClCompile.InlineFunctionExpansion)"
- IntrinsicFunctions ="%(ClCompile.IntrinsicFunctions)"
- LanguageStandard ="%(ClCompile.LanguageStandard)"
- MinimalRebuild ="%(ClCompile.MinimalRebuild)"
- MultiProcessorCompilation ="%(ClCompile.MultiProcessorCompilation)"
- ObjectFileName ="%(ClCompile.ObjectFileName)"
- OmitDefaultLibName ="%(ClCompile.OmitDefaultLibName)"
- OmitFramePointers ="%(ClCompile.OmitFramePointers)"
- OpenMPSupport ="%(ClCompile.OpenMPSupport)"
- Optimization ="%(ClCompile.Optimization)"
- PrecompiledHeader ="%(ClCompile.PrecompiledHeader)"
- PrecompiledHeaderFile ="%(ClCompile.PrecompiledHeaderFile)"
- PrecompiledHeaderOutputFile ="%(ClCompile.PrecompiledHeaderOutputFile)"
- PREfastAdditionalOptions ="%(ClCompile.PREfastAdditionalOptions)"
- PREfastAdditionalPlugins ="%(ClCompile.PREfastAdditionalPlugins)"
- PREfastLog ="%(ClCompile.PREfastLog)"
- PreprocessKeepComments ="%(ClCompile.PreprocessKeepComments)"
- PreprocessorDefinitions ="%(ClCompile.PreprocessorDefinitions)"
- PreprocessSuppressLineNumbers ="%(ClCompile.PreprocessSuppressLineNumbers)"
- PreprocessToFile ="%(ClCompile.PreprocessToFile)"
- ProcessorNumber ="%(ClCompile.ProcessorNumber)"
- ProgramDataBaseFileName ="%(ClCompile.ProgramDataBaseFileName)"
- RemoveUnreferencedCodeData ="%(ClCompile.RemoveUnreferencedCodeData)"
- RuntimeLibrary ="%(ClCompile.RuntimeLibrary)"
- RuntimeTypeInfo ="%(ClCompile.RuntimeTypeInfo)"
- SDLCheck ="%(ClCompile.SDLCheck)"
- ShowIncludes ="%(ClCompile.ShowIncludes)"
- WarningVersion ="%(ClCompile.WarningVersion)"
- SmallerTypeCheck ="%(ClCompile.SmallerTypeCheck)"
- StringPooling ="%(ClCompile.StringPooling)"
- StructMemberAlignment ="%(ClCompile.StructMemberAlignment)"
- SuppressStartupBanner ="%(ClCompile.SuppressStartupBanner)"
- TreatSpecificWarningsAsErrors ="%(ClCompile.TreatSpecificWarningsAsErrors)"
- TreatWarningAsError ="%(ClCompile.TreatWarningAsError)"
- TreatWChar_tAsBuiltInType ="%(ClCompile.TreatWChar_tAsBuiltInType)"
- UndefineAllPreprocessorDefinitions ="%(ClCompile.UndefineAllPreprocessorDefinitions)"
- UndefinePreprocessorDefinitions ="%(ClCompile.UndefinePreprocessorDefinitions)"
- UseFullPaths ="%(ClCompile.UseFullPaths)"
- UseUnicodeForAssemblerListing ="%(ClCompile.UseUnicodeForAssemblerListing)"
- WarningLevel ="%(ClCompile.WarningLevel)"
- WholeProgramOptimization ="%(ClCompile.WholeProgramOptimization)"
- WinRTNoStdLib ="%(ClCompile.WinRTNoStdLib)"
- XMLDocumentationFileName ="%(ClCompile.XMLDocumentationFileName)"
- CreateHotpatchableImage ="%(CLCompile.CreateHotpatchableImage)"
- TrackerLogDirectory ="%(ClCompile.TrackerLogDirectory)"
- TLogReadFiles ="@(CLTLogReadFiles)"
- TLogWriteFiles ="@(CLTLogWriteFiles)"
- ToolExe ="$(CLToolExe)"
- ToolPath ="$(CLToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="%(ClCompile.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(CLToolArchitecture)"
- TrackerFrameworkPath ="$(CLTrackerFrameworkPath)"
- TrackerSdkPath ="$(CLTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(ClNoDependencies)"
- DeleteOutputOnExecute ="$(CLDeleteOutputOnExecute)"
- AcceptableNonZeroExitCodes ="%(ClCompile.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(ClYieldDuringToolExecution)"
- >
- </CL>
- <OnError Condition="'$(OnXamlPreCompileErrorTarget)' != ''" ExecuteTargets="$(OnXamlPreCompileErrorTarget)" />
- </Target>
- <Target Name="CompileXamlGeneratedFiles" >
- <ItemGroup>
- <ClCompile Condition="'%(ClCompile.CompilerIteration)' == 'XamlGenerated'">
- <PrecompiledHeaderOutputFile Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderOutputFile>
- <PrecompiledHeaderOutputFile Condition="'%(ClCompile.PrecompiledHeader)' != 'NotUsing' and '$(RunCodeAnalysisOnce)' == 'true' and '$(RunCodeAnalysisOnThisProject)' == 'true' and '%(ClCompile.PrecompiledHeader)' != '' and '%(ClCompile.PrecompiledHeaderOutputFile)' != '' and '%(ClCompile.CompilerIteration)' == 'XamlGenerated'">%(ClCompile.PrecompiledHeaderOutputFile).codeanalysis</PrecompiledHeaderOutputFile>
- <PrecompiledHeaderFile Condition="'%(ClCompile.PrecompiledHeader)' == 'NotUsing' or '%(ClCompile.PrecompiledHeader)' == ''"></PrecompiledHeaderFile>
- <UseUnicodeForAssemblerListing Condition="'%(ClCompile.AssemblerOutput)' == 'NoListing' or '%(ClCompile.AssemblerOutput)' == ''"></UseUnicodeForAssemblerListing>
- <AssemblerListingLocation Condition="'%(ClCompile.AssemblerOutput)' == 'NoListing' or '%(ClCompile.AssemblerOutput)' == ''"></AssemblerListingLocation>
- <CompileAs Condition="'%(ClCompile.CompileAs)' == 'Default' and '%(ClCompile.Extension)' == '.c'">CompileAsC</CompileAs>
- <CompileAs Condition="'%(ClCompile.CompileAs)' == 'Default' and '%(ClCompile.Extension)' != '.c'">CompileAsCpp</CompileAs>
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- <WinRTNoStdLib Condition="'%(ClCompile.CompileAsWinRT)' != 'true'">false</WinRTNoStdLib>
- </ClCompile>
- </ItemGroup>
- <!-- Rest of the sources -->
- <CL Condition="'%(ClCompile.PrecompiledHeader)' != 'Create' and '%(ClCompile.ExcludedFromBuild)'!='true' and '%(ClCompile.CompilerIteration)' == 'XamlGenerated'"
- BuildingInIDE ="$(BuildingInsideVisualStudio)"
- Sources ="@(ClCompile)"
- AdditionalIncludeDirectories ="%(ClCompile.AdditionalIncludeDirectories)"
- AdditionalOptions ="%(ClCompile.AdditionalOptions)"
- AdditionalUsingDirectories ="%(ClCompile.AdditionalUsingDirectories)"
- AssemblerListingLocation ="%(ClCompile.AssemblerListingLocation)"
- AssemblerOutput ="%(ClCompile.AssemblerOutput)"
- BasicRuntimeChecks ="%(ClCompile.BasicRuntimeChecks)"
- BrowseInformation ="%(ClCompile.BrowseInformation)"
- BrowseInformationFile ="%(ClCompile.BrowseInformationFile)"
- BufferSecurityCheck ="%(ClCompile.BufferSecurityCheck)"
- CallingConvention ="%(ClCompile.CallingConvention)"
- ControlFlowGuard ="%(ClCompile.ControlFlowGuard)"
- CompileAsManaged ="%(ClCompile.CompileAsManaged)"
- CompileAsWinRT ="%(ClCompile.CompileAsWinRT)"
- CompileAs ="%(ClCompile.CompileAs)"
- DebugInformationFormat ="%(ClCompile.DebugInformationFormat)"
- DiagnosticsFormat ="%(ClCompile.DiagnosticsFormat)"
- DisableLanguageExtensions ="%(ClCompile.DisableLanguageExtensions)"
- DisableSpecificWarnings ="%(ClCompile.DisableSpecificWarnings)"
- EnableEnhancedInstructionSet ="%(ClCompile.EnableEnhancedInstructionSet)"
- EnableFiberSafeOptimizations ="%(ClCompile.EnableFiberSafeOptimizations)"
- EnableParallelCodeGeneration ="%(ClCompile.EnableParallelCodeGeneration)"
- EnablePREfast ="%(ClCompile.EnablePREfast)"
- EnforceTypeConversionRules ="%(ClCompile.EnforceTypeConversionRules)"
- ErrorReporting ="%(ClCompile.ErrorReporting)"
- ExceptionHandling ="%(ClCompile.ExceptionHandling)"
- ExcludedInputPaths ="$(ExcludePath)"
- ExpandAttributedSource ="%(ClCompile.ExpandAttributedSource)"
- FavorSizeOrSpeed ="%(ClCompile.FavorSizeOrSpeed)"
- FloatingPointExceptions ="%(ClCompile.FloatingPointExceptions)"
- FloatingPointModel ="%(ClCompile.FloatingPointModel)"
- ForceConformanceInForLoopScope ="%(ClCompile.ForceConformanceInForLoopScope)"
- ForcedIncludeFiles ="%(ClCompile.ForcedIncludeFiles)"
- ForcedUsingFiles ="%(ClCompile.ForcedUsingFiles)"
- FunctionLevelLinking ="%(ClCompile.FunctionLevelLinking)"
- GenerateXMLDocumentationFiles ="%(ClCompile.GenerateXMLDocumentationFiles)"
- IgnoreStandardIncludePath ="%(ClCompile.IgnoreStandardIncludePath)"
- InlineFunctionExpansion ="%(ClCompile.InlineFunctionExpansion)"
- IntrinsicFunctions ="%(ClCompile.IntrinsicFunctions)"
- LanguageStandard ="%(ClCompile.LanguageStandard)"
- MinimalRebuild ="%(ClCompile.MinimalRebuild)"
- MultiProcessorCompilation ="%(ClCompile.MultiProcessorCompilation)"
- ObjectFileName ="%(ClCompile.ObjectFileName)"
- OmitDefaultLibName ="%(ClCompile.OmitDefaultLibName)"
- OmitFramePointers ="%(ClCompile.OmitFramePointers)"
- OpenMPSupport ="%(ClCompile.OpenMPSupport)"
- Optimization ="%(ClCompile.Optimization)"
- PrecompiledHeader ="%(ClCompile.PrecompiledHeader)"
- PrecompiledHeaderFile ="%(ClCompile.PrecompiledHeaderFile)"
- PrecompiledHeaderOutputFile ="%(ClCompile.PrecompiledHeaderOutputFile)"
- PREfastAdditionalOptions ="%(ClCompile.PREfastAdditionalOptions)"
- PREfastAdditionalPlugins ="%(ClCompile.PREfastAdditionalPlugins)"
- PREfastLog ="%(ClCompile.PREfastLog)"
- PreprocessKeepComments ="%(ClCompile.PreprocessKeepComments)"
- PreprocessorDefinitions ="%(ClCompile.PreprocessorDefinitions)"
- PreprocessSuppressLineNumbers ="%(ClCompile.PreprocessSuppressLineNumbers)"
- PreprocessToFile ="%(ClCompile.PreprocessToFile)"
- ProcessorNumber ="%(ClCompile.ProcessorNumber)"
- ProgramDataBaseFileName ="%(ClCompile.ProgramDataBaseFileName)"
- RemoveUnreferencedCodeData ="%(ClCompile.RemoveUnreferencedCodeData)"
- RuntimeLibrary ="%(ClCompile.RuntimeLibrary)"
- RuntimeTypeInfo ="%(ClCompile.RuntimeTypeInfo)"
- SDLCheck ="%(ClCompile.SDLCheck)"
- ShowIncludes ="%(ClCompile.ShowIncludes)"
- WarningVersion ="%(ClCompile.WarningVersion)"
- SmallerTypeCheck ="%(ClCompile.SmallerTypeCheck)"
- StringPooling ="%(ClCompile.StringPooling)"
- StructMemberAlignment ="%(ClCompile.StructMemberAlignment)"
- SuppressStartupBanner ="%(ClCompile.SuppressStartupBanner)"
- TreatSpecificWarningsAsErrors ="%(ClCompile.TreatSpecificWarningsAsErrors)"
- TreatWarningAsError ="%(ClCompile.TreatWarningAsError)"
- TreatWChar_tAsBuiltInType ="%(ClCompile.TreatWChar_tAsBuiltInType)"
- UndefineAllPreprocessorDefinitions ="%(ClCompile.UndefineAllPreprocessorDefinitions)"
- UndefinePreprocessorDefinitions ="%(ClCompile.UndefinePreprocessorDefinitions)"
- UseFullPaths ="%(ClCompile.UseFullPaths)"
- UseUnicodeForAssemblerListing ="%(ClCompile.UseUnicodeForAssemblerListing)"
- WarningLevel ="%(ClCompile.WarningLevel)"
- WholeProgramOptimization ="%(ClCompile.WholeProgramOptimization)"
- WinRTNoStdLib ="%(ClCompile.WinRTNoStdLib)"
- XMLDocumentationFileName ="%(ClCompile.XMLDocumentationFileName)"
- CreateHotpatchableImage ="%(CLCompile.CreateHotpatchableImage)"
- TrackerLogDirectory ="%(ClCompile.TrackerLogDirectory)"
- TLogReadFiles ="@(CLTLogReadFiles)"
- TLogWriteFiles ="@(CLTLogWriteFiles)"
- ToolExe ="$(CLToolExe)"
- ToolPath ="$(CLToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="%(ClCompile.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(CLToolArchitecture)"
- TrackerFrameworkPath ="$(CLTrackerFrameworkPath)"
- TrackerSdkPath ="$(CLTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(ClNoDependencies)"
- DeleteOutputOnExecute ="$(CLDeleteOutputOnExecute)"
- AcceptableNonZeroExitCodes ="%(ClCompile.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(ClYieldDuringToolExecution)"
- >
- </CL>
- </Target>
- <!-- *******************************************************************************************
- Link
- ******************************************************************************************* -->
- <Target Name="ComputeLinkSwitches"
- Condition="'@(Link)' != ''">
- <ItemGroup>
- <_EmbedManagedResourceFile Include="@(Link->Metadata('EmbedManagedResourceFile')->Distinct())" />
- <_EmbedManagedResourceFile Include="@(Link->Metadata('AddModuleNamesToAssembly')->Distinct())" />
- <_EmbedManagedResourceFile Condition="'%(EmbeddedResource.LogicalName)' == '' and '%(EmbeddedResource.WithCulture)' != 'true' and '%(EmbeddedResource.ExcludedFromBuild)' != 'true'" Include="@(EmbeddedResource->'$(IntermediateOutputPath)%(ManifestResourceName).resources')" />
- <_EmbedManagedResourceFile Condition="'%(EmbeddedResource.LogicalName)' != '' and '%(EmbeddedResource.WithCulture)' != 'true' and '%(EmbeddedResource.ExcludedFromBuild)' != 'true'" Include="@(EmbeddedResource->'$(IntermediateOutputPath)%(ManifestResourceName).resources,%(LogicalName)')" />
- <Link Include="@(ResObjMt->WithMetadataValue('LinkCompiled', 'true')->ClearMetadata())" />
- </ItemGroup>
- <PropertyGroup>
- <Link_MinimalRebuildFromTracking Condition="'@(Link->AnyHaveMetadataValue('MinimalRebuildFromTracking', 'false'))' == 'true'">false</Link_MinimalRebuildFromTracking>
- <Link_MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'" >false</Link_MinimalRebuildFromTracking>
- <Link_MinimalRebuildFromTracking Condition="'$(Link_MinimalRebuildFromTracking)' == ''">true</Link_MinimalRebuildFromTracking>
- <LinkToolArchitecture Condition="'$(LinkToolArchitecture)' == ''">$(VCToolArchitecture)</LinkToolArchitecture>
- <LinkYieldDuringToolExecution Condition="'$(LinkYieldDuringToolExecution)' == '' and '%(Link.LinkTimeCodeGeneration)' == 'UseLinkTimeCodeGeneration'">true</LinkYieldDuringToolExecution>
- <_GenerateWindowsMetadata Condition="'$(_GenerateWindowsMetadata)' == '' and '$(OnlyCreateWinMD)' == 'true' and '$(GenerateBuildCompilePassWinMD)' == 'true'">false</_GenerateWindowsMetadata>
- <_GenerateWindowsMetadata Condition="'$(_GenerateWindowsMetadata)' == ''">%(Link.GenerateWindowsMetadata)</_GenerateWindowsMetadata>
- <!-- Compile's ControlFlowGuard needs to enable guard:cf on linker -->
- <LinkControlFlowGuard Condition="'$(LinkControlFlowGuard)' == '' and '@(ClCompile)' != '' and '@(ClCompile->AnyHaveMetadataValue('ControlFlowGuard', 'Guard'))' == 'true'">Guard</LinkControlFlowGuard>
- </PropertyGroup>
- </Target>
- <Target Name="Link"
- Condition="'@(Link)' != ''"
- DependsOnTargets="ComputeLinkSwitches">
- <ItemGroup>
- <Link>
- <ProfileGuidedDatabase Condition="'%(Link.LinkTimeCodeGeneration)' != 'PGOptimization' and
- '%(Link.LinkTimeCodeGeneration)' != 'PGUpdate' and
- '%(Link.LinkTimeCodeGeneration)' != 'PGInstrument'"></ProfileGuidedDatabase>
- <ManifestEmbed Condition="'%(Link.ManifestEmbed)' == '' and '$(LegacyManifestEmbedding)' != 'true'">$(EmbedManifest)</ManifestEmbed>
- <ManifestInput Condition="'$(LegacyManifestEmbedding)' != 'true' and '$(EmbedManifest)' == 'true'">@(Link->'%(ManifestInput)');@(Manifest);$(ManifestAdditionalManifestFiles)</ManifestInput>
- <ManifestFile Condition="'$(LegacyManifestEmbedding)' != 'true'" />
- </Link>
- <!-- Remove some Winmd switches if generation is false -->
- <Link>
- <WindowsMetadataFile Condition="'%(Link.GenerateWindowsMetadata)' == ''" />
- <WindowsMetadataLinkKeyFile Condition="'%(Link.GenerateWindowsMetadata)' == ''" />
- <WindowsMetadataKeyContainer Condition="'%(Link.GenerateWindowsMetadata)' == ''" />
- <WindowsMetadataLinkDelaySign Condition="'%(Link.GenerateWindowsMetadata)' == ''" />
- <WindowsMetadataSignHash Condition="'%(Link.GenerateWindowsMetadata)' == ''" />
- </Link>
- <Link>
- <!-- Encourge use of DebugFastLink -->
- <GenerateDebugInformation Condition="('%(Link.GenerateDebugInformation)' == 'Debug' or '%(Link.GenerateDebugInformation)' == 'true') and '$(UseDebugLibraries)' == 'true' and '$(UseDebugFastLink)' != 'false'">DebugFastLink</GenerateDebugInformation>
- <!-- Generate full PDB. For now call link without /debug:fastlink. Later will'll call a special tool to create merge pdbs -->
- <GenerateDebugInformation Condition="'%(Link.GenerateDebugInformation)' == 'DebugFastLink' and ('%(Link.FullProgramDatabaseFile)' == 'true' or '$(UseDebugFastLink)' == 'false')">true</GenerateDebugInformation>
- </Link>
- </ItemGroup>
- <Link
- BuildingInIDE ="$(BuildingInsideVisualStudio)"
- Sources ="@(Link)"
- AdditionalDependencies ="%(Link.AdditionalDependencies)"
- AdditionalLibraryDirectories ="%(Link.AdditionalLibraryDirectories)"
- AdditionalManifestDependencies ="%(Link.AdditionalManifestDependencies)"
- AdditionalOptions ="%(Link.AdditionalOptions)"
- AddModuleNamesToAssembly ="%(Link.AddModuleNamesToAssembly)"
- AllowIsolation ="%(Link.AllowIsolation)"
- AppContainer ="%(Link.AppContainer)"
- AssemblyDebug ="%(Link.AssemblyDebug)"
- AssemblyLinkResource ="%(Link.AssemblyLinkResource)"
- BaseAddress ="%(Link.BaseAddress)"
- ControlFlowGuard ="$(LinkControlFlowGuard)"
- CLRImageType ="%(Link.CLRImageType)"
- CLRSupportLastError ="%(Link.CLRSupportLastError)"
- CLRThreadAttribute ="%(Link.CLRThreadAttribute)"
- CLRUnmanagedCodeCheck ="%(Link.CLRUnmanagedCodeCheck)"
- CreateHotPatchableImage ="%(Link.CreateHotPatchableImage)"
- DataExecutionPrevention ="%(Link.DataExecutionPrevention)"
- DelayLoadDLLs ="%(Link.DelayLoadDLLs)"
- DelaySign ="$(LinkDelaySign)"
- Driver ="%(Link.Driver)"
- EmbedManagedResourceFile ="@(_EmbedManagedResourceFile)"
- EnableCOMDATFolding ="%(Link.EnableCOMDATFolding)"
- EnableUAC ="%(Link.EnableUAC)"
- EntryPointSymbol ="%(Link.EntryPointSymbol)"
- LinkErrorReporting ="%(Link.LinkErrorReporting)"
- FixedBaseAddress ="%(Link.FixedBaseAddress)"
- ForceFileOutput ="%(Link.ForceFileOutput)"
- ForceSymbolReferences ="%(Link.ForceSymbolReferences)"
- FunctionOrder ="%(Link.FunctionOrder)"
- GenerateDebugInformation ="%(Link.GenerateDebugInformation)"
- GenerateManifest ="$(GenerateManifest)"
- GenerateMapFile ="%(Link.GenerateMapFile)"
- GenerateWindowsMetadata ="$(_GenerateWindowsMetadata)"
- WindowsMetadataFile ="%(Link.WindowsMetadataFile)"
- HeapCommitSize ="%(Link.HeapCommitSize)"
- HeapReserveSize ="%(Link.HeapReserveSize)"
- IgnoreAllDefaultLibraries ="%(Link.IgnoreAllDefaultLibraries)"
- IgnoreEmbeddedIDL ="%(Link.IgnoreEmbeddedIDL)"
- IgnoreSpecificDefaultLibraries ="%(Link.IgnoreSpecificDefaultLibraries)"
- ImageHasSafeExceptionHandlers ="%(Link.ImageHasSafeExceptionHandlers)"
- ImportLibrary ="%(Link.ImportLibrary)"
- KeyContainer ="%(Link.KeyContainer)"
- KeyFile ="$(LinkKeyFile)"
- LargeAddressAware ="%(Link.LargeAddressAware)"
- LinkDLL ="%(Link.LinkDLL)"
- LinkIncremental ="$(LinkIncremental)"
- LinkStatus ="%(Link.LinkStatus)"
- LinkTimeCodeGeneration ="%(Link.LinkTimeCodeGeneration)"
- ManifestFile ="%(Link.ManifestFile)"
- ManifestEmbed ="%(Link.ManifestEmbed)"
- ManifestInput ="%(Link.ManifestInput)"
- MapExports ="%(Link.MapExports)"
- MapFileName ="%(Link.MapFileName)"
- MergedIDLBaseFileName ="%(Link.MergedIDLBaseFileName)"
- MergeSections ="%(Link.MergeSections)"
- MidlCommandFile ="%(Link.MidlCommandFile)"
- MinimumRequiredVersion ="%(Link.MinimumRequiredVersion)"
- ModuleDefinitionFile ="%(Link.ModuleDefinitionFile)"
- MSDOSStubFileName ="%(Link.MSDOSStubFileName)"
- Natvis ="@(Natvis)"
- OptimizeReferences ="%(Link.OptimizeReferences)"
- OutputFile ="%(Link.OutputFile)"
- PreventDllBinding ="%(Link.PreventDllBinding)"
- Profile ="%(Link.Profile)"
- ProfileGuidedDatabase ="%(Link.ProfileGuidedDatabase)"
- ProgramDatabaseFile ="%(Link.ProgramDatabaseFile)"
- RandomizedBaseAddress ="%(Link.RandomizedBaseAddress)"
- NoEntryPoint ="%(Link.NoEntryPoint)"
- SectionAlignment ="%(Link.SectionAlignment)"
- SetChecksum ="%(Link.SetChecksum)"
- ShowProgress ="%(Link.ShowProgress)"
- SignHash ="%(Link.SignHash)"
- SpecifySectionAttributes ="%(Link.SpecifySectionAttributes)"
- StackCommitSize ="%(Link.StackCommitSize)"
- StackReserveSize ="%(Link.StackReserveSize)"
- StripPrivateSymbols ="%(Link.StripPrivateSymbols)"
- SubSystem ="%(Link.SubSystem)"
- SupportUnloadOfDelayLoadedDLL ="%(Link.SupportUnloadOfDelayLoadedDLL)"
- SupportNobindOfDelayLoadedDLL ="%(Link.SupportNobindOfDelayLoadedDLL)"
- SuppressStartupBanner ="%(Link.SuppressStartupBanner)"
- SwapRunFromCD ="%(Link.SwapRunFromCD)"
- SwapRunFromNET ="%(Link.SwapRunFromNET)"
- TargetMachine ="%(Link.TargetMachine)"
- TerminalServerAware ="%(Link.TerminalServerAware)"
- TreatLinkerWarningAsErrors ="%(Link.TreatLinkerWarningAsErrors)"
- TurnOffAssemblyGeneration ="%(Link.TurnOffAssemblyGeneration)"
- TypeLibraryFile ="%(Link.TypeLibraryFile)"
- TypeLibraryResourceID ="%(Link.TypeLibraryResourceID)"
- UACExecutionLevel ="%(Link.UACExecutionLevel)"
- UACUIAccess ="%(Link.UACUIAccess)"
- Version ="%(Link.Version)"
- WindowsMetadataLinkKeyFile ="%(Link.WindowsMetadataLinkKeyFile)"
- WindowsMetadataKeyContainer ="%(Link.WindowsMetadataKeyContainer)"
- WindowsMetadataLinkDelaySign ="%(Link.WindowsMetadataLinkDelaySign)"
- WindowsMetadataSignHash ="%(Link.WindowsMetadataSignHash)"
- TrackerLogDirectory ="%(Link.TrackerLogDirectory)"
- TLogReadFiles ="@(LinkTLogReadFiles)"
- TLogWriteFiles ="@(LinkTLogWriteFiles)"
- ToolExe ="$(LinkToolExe)"
- ToolPath ="$(LinkToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="$(Link_MinimalRebuildFromTracking)"
- ToolArchitecture ="$(LinkToolArchitecture)"
- TrackerFrameworkPath ="$(LinkTrackerFrameworkPath)"
- TrackerSdkPath ="$(LinkTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(LinkNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Link.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(LinkYieldDuringToolExecution)"
- >
- <Output TaskParameter="SkippedExecution" PropertyName="LinkSkippedExecution" />
- </Link>
- <Message Text="$(MSBuildProjectFile) -> $(TargetPath)" Importance="High" Condition="'$(EmbedManifestBy)' != 'LINK' or '$(LegacyManifestEmbedding)' != 'true' or '$(LinkSkippedExecution)' == 'true'"/>
- <VCMessage Code="MSB8033" Type="Message" Arguments="$(MSBuildProjectFile);%(Link.ProgramDatabaseFile)" Importance="High"
- Condition="('$(EmbedManifestBy)' != 'LINK' or '$(LegacyManifestEmbedding)' != 'true' or '$(LinkSkippedExecution)' == 'true') and
- %(Link.GenerateDebugInformation) == 'DebugFastLink'"/>
- <VCMessage Code="MSB8034" Type="Message" Arguments="$(MSBuildProjectFile);%(Link.ProgramDatabaseFile)" Importance="High"
- Condition="('$(EmbedManifestBy)' != 'LINK' or '$(LegacyManifestEmbedding)' != 'true' or '$(LinkSkippedExecution)' == 'true') and
- %(Link.GenerateDebugInformation) == 'true'"/>
- </Target>
- <Target Name="LinkEmbedManifest"
- Condition="'@(Link)' != '' AND '$(EmbedManifestBy)'=='LINK' AND '$(LinkSkippedExecution)' != 'true'"
- DependsOnTargets="ComputeLinkSwitches">
- <Link
- BuildingInIDE ="$(BuildingInsideVisualStudio)"
- Sources ="@(Link)"
- AdditionalDependencies ="%(Link.AdditionalDependencies)"
- AdditionalLibraryDirectories ="%(Link.AdditionalLibraryDirectories)"
- AdditionalManifestDependencies ="%(Link.AdditionalManifestDependencies)"
- AdditionalOptions ="%(Link.AdditionalOptions)"
- AddModuleNamesToAssembly ="%(Link.AddModuleNamesToAssembly)"
- AllowIsolation ="%(Link.AllowIsolation)"
- AppContainer ="%(Link.AppContainer)"
- AssemblyDebug ="%(Link.AssemblyDebug)"
- AssemblyLinkResource ="%(Link.AssemblyLinkResource)"
- BaseAddress ="%(Link.BaseAddress)"
- ControlFlowGuard ="$(LinkControlFlowGuard)"
- CLRImageType ="%(Link.CLRImageType)"
- CLRSupportLastError ="%(Link.CLRSupportLastError)"
- CLRThreadAttribute ="%(Link.CLRThreadAttribute)"
- CLRUnmanagedCodeCheck ="%(Link.CLRUnmanagedCodeCheck)"
- CreateHotPatchableImage ="%(Link.CreateHotPatchableImage)"
- DataExecutionPrevention ="%(Link.DataExecutionPrevention)"
- DelayLoadDLLs ="%(Link.DelayLoadDLLs)"
- DelaySign ="$(LinkDelaySign)"
- Driver ="%(Link.Driver)"
- EmbedManagedResourceFile ="@(_EmbedManagedResourceFile)"
- EnableCOMDATFolding ="%(Link.EnableCOMDATFolding)"
- EnableUAC ="%(Link.EnableUAC)"
- EntryPointSymbol ="%(Link.EntryPointSymbol)"
- LinkErrorReporting ="%(Link.LinkErrorReporting)"
- FixedBaseAddress ="%(Link.FixedBaseAddress)"
- ForceFileOutput ="%(Link.ForceFileOutput)"
- ForceSymbolReferences ="%(Link.ForceSymbolReferences)"
- FunctionOrder ="%(Link.FunctionOrder)"
- GenerateDebugInformation ="%(Link.GenerateDebugInformation)"
- GenerateManifest ="$(GenerateManifest)"
- GenerateMapFile ="%(Link.GenerateMapFile)"
- GenerateWindowsMetadata ="$(_GenerateWindowsMetadata)"
- WindowsMetadataFile ="%(Link.WindowsMetadataFile)"
- HeapCommitSize ="%(Link.HeapCommitSize)"
- HeapReserveSize ="%(Link.HeapReserveSize)"
- IgnoreAllDefaultLibraries ="%(Link.IgnoreAllDefaultLibraries)"
- IgnoreEmbeddedIDL ="%(Link.IgnoreEmbeddedIDL)"
- IgnoreSpecificDefaultLibraries ="%(Link.IgnoreSpecificDefaultLibraries)"
- ImageHasSafeExceptionHandlers ="%(Link.ImageHasSafeExceptionHandlers)"
- ImportLibrary ="%(Link.ImportLibrary)"
- KeyContainer ="%(Link.KeyContainer)"
- KeyFile ="$(LinkKeyFile)"
- LargeAddressAware ="%(Link.LargeAddressAware)"
- LinkDLL ="%(Link.LinkDLL)"
- LinkIncremental ="$(LinkIncremental)"
- LinkStatus ="%(Link.LinkStatus)"
- LinkTimeCodeGeneration ="%(Link.LinkTimeCodeGeneration)"
- ManifestFile ="%(Link.ManifestFile)"
- ManifestEmbed ="%(Link.ManifestEmbed)"
- ManifestInput ="%(Link.ManifestInput)"
- MapExports ="%(Link.MapExports)"
- MapFileName ="%(Link.MapFileName)"
- MergedIDLBaseFileName ="%(Link.MergedIDLBaseFileName)"
- MergeSections ="%(Link.MergeSections)"
- MidlCommandFile ="%(Link.MidlCommandFile)"
- MinimumRequiredVersion ="%(Link.MinimumRequiredVersion)"
- ModuleDefinitionFile ="%(Link.ModuleDefinitionFile)"
- MSDOSStubFileName ="%(Link.MSDOSStubFileName)"
- Natvis ="@(Natvis)"
- OptimizeReferences ="%(Link.OptimizeReferences)"
- OutputFile ="%(Link.OutputFile)"
- PreventDllBinding ="%(Link.PreventDllBinding)"
- Profile ="%(Link.Profile)"
- ProfileGuidedDatabase ="%(Link.ProfileGuidedDatabase)"
- ProgramDatabaseFile ="%(Link.ProgramDatabaseFile)"
- RandomizedBaseAddress ="%(Link.RandomizedBaseAddress)"
- NoEntryPoint ="%(Link.NoEntryPoint)"
- SectionAlignment ="%(Link.SectionAlignment)"
- SetChecksum ="%(Link.SetChecksum)"
- ShowProgress ="%(Link.ShowProgress)"
- SignHash ="%(Link.SignHash)"
- SpecifySectionAttributes ="%(Link.SpecifySectionAttributes)"
- StackCommitSize ="%(Link.StackCommitSize)"
- StackReserveSize ="%(Link.StackReserveSize)"
- StripPrivateSymbols ="%(Link.StripPrivateSymbols)"
- SubSystem ="%(Link.SubSystem)"
- SupportUnloadOfDelayLoadedDLL ="%(Link.SupportUnloadOfDelayLoadedDLL)"
- SupportNobindOfDelayLoadedDLL ="%(Link.SupportNobindOfDelayLoadedDLL)"
- SuppressStartupBanner ="%(Link.SuppressStartupBanner)"
- SwapRunFromCD ="%(Link.SwapRunFromCD)"
- SwapRunFromNET ="%(Link.SwapRunFromNET)"
- TargetMachine ="%(Link.TargetMachine)"
- TerminalServerAware ="%(Link.TerminalServerAware)"
- TreatLinkerWarningAsErrors ="%(Link.TreatLinkerWarningAsErrors)"
- TurnOffAssemblyGeneration ="%(Link.TurnOffAssemblyGeneration)"
- TypeLibraryFile ="%(Link.TypeLibraryFile)"
- TypeLibraryResourceID ="%(Link.TypeLibraryResourceID)"
- UACExecutionLevel ="%(Link.UACExecutionLevel)"
- UACUIAccess ="%(Link.UACUIAccess)"
- Version ="%(Link.Version)"
- WindowsMetadataLinkKeyFile ="%(Link.WindowsMetadataLinkKeyFile)"
- WindowsMetadataKeyContainer ="%(Link.WindowsMetadataKeyContainer)"
- WindowsMetadataLinkDelaySign ="%(Link.WindowsMetadataLinkDelaySign)"
- WindowsMetadataSignHash ="%(Link.WindowsMetadataSignHash)"
- TrackerLogDirectory ="%(Link.TrackerLogDirectory)"
- TLogReadFiles ="@(LinkTLogReadFiles)"
- TLogWriteFiles ="@(LinkTLogWriteFiles)"
- ToolExe ="$(LinkToolExe)"
- ToolPath ="$(LinkToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="$(Link_MinimalRebuildFromTracking)"
- ToolArchitecture ="$(LinkToolArchitecture)"
- TrackerFrameworkPath ="$(LinkTrackerFrameworkPath)"
- TrackerSdkPath ="$(LinkTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(LinkNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Link.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(LinkYieldDuringToolExecution)"
- >
- </Link>
- <Message Text="$(MSBuildProjectFile) -> $(TargetPath)" Importance="High" />
- <VCMessage Code="MSB8033" Type="Message" Arguments="$(MSBuildProjectFile);%(Link.ProgramDatabaseFile)" Importance="High"
- Condition="%(Link.GenerateDebugInformation) == 'DebugFastLink'"/>
- <VCMessage Code="MSB8034" Type="Message" Arguments="$(MSBuildProjectFile);%(Link.ProgramDatabaseFile)" Importance="High"
- Condition="%(Link.GenerateDebugInformation) == 'true'"/>
- </Target>
- <Target Name="CreateWinMD"
- Condition="'@(Link)' != '' and '$(GenerateBuildCompilePassWinMD)' == 'true' and '$(OnlyCreateWinMD)' == 'true'"
- DependsOnTargets="ComputeLinkSwitches">
- <PropertyGroup>
- <LinkToolArchitecture Condition="'$(LinkToolArchitecture)' == ''">$(VCToolArchitecture)</LinkToolArchitecture>
- </PropertyGroup>
- <ItemGroup>
- <Link>
- <ProfileGuidedDatabase Condition="'%(Link.LinkTimeCodeGeneration)' != 'PGOptimization' and
- '%(Link.LinkTimeCodeGeneration)' != 'PGUpdate' and
- '%(Link.LinkTimeCodeGeneration)' != 'PGInstrument'"></ProfileGuidedDatabase>
- <!-- Generate full PDB. For now call link without /debug:fastlink. Later will'll call a special tool to create merge pdbs -->
- <GenerateDebugInformation Condition="'%(Link.GenerateDebugInformation)' == 'DebugFastLink' and '%(Link.FullProgramDatabaseFile)' == 'true'">true</GenerateDebugInformation>
- </Link>
- </ItemGroup>
- <Link
- BuildingInIDE ="$(BuildingInsideVisualStudio)"
- Sources ="@(Link)"
- AdditionalDependencies ="%(Link.AdditionalDependencies)"
- AdditionalLibraryDirectories ="%(Link.AdditionalLibraryDirectories)"
- AdditionalManifestDependencies ="%(Link.AdditionalManifestDependencies)"
- AdditionalOptions ="%(Link.AdditionalOptions)"
- AddModuleNamesToAssembly ="%(Link.AddModuleNamesToAssembly)"
- AllowIsolation ="%(Link.AllowIsolation)"
- AppContainer ="%(Link.AppContainer)"
- AssemblyDebug ="%(Link.AssemblyDebug)"
- AssemblyLinkResource ="%(Link.AssemblyLinkResource)"
- BaseAddress ="%(Link.BaseAddress)"
- ControlFlowGuard ="$(LinkControlFlowGuard)"
- CLRImageType ="%(Link.CLRImageType)"
- CLRSupportLastError ="%(Link.CLRSupportLastError)"
- CLRThreadAttribute ="%(Link.CLRThreadAttribute)"
- CLRUnmanagedCodeCheck ="%(Link.CLRUnmanagedCodeCheck)"
- CreateHotPatchableImage ="%(Link.CreateHotPatchableImage)"
- DataExecutionPrevention ="%(Link.DataExecutionPrevention)"
- DelayLoadDLLs ="%(Link.DelayLoadDLLs)"
- DelaySign ="$(LinkDelaySign)"
- Driver ="%(Link.Driver)"
- EmbedManagedResourceFile ="@(_EmbedManagedResourceFile)"
- EnableCOMDATFolding ="%(Link.EnableCOMDATFolding)"
- EnableUAC ="%(Link.EnableUAC)"
- EntryPointSymbol ="%(Link.EntryPointSymbol)"
- LinkErrorReporting ="%(Link.LinkErrorReporting)"
- FixedBaseAddress ="%(Link.FixedBaseAddress)"
- ForceFileOutput ="%(Link.ForceFileOutput)"
- ForceSymbolReferences ="%(Link.ForceSymbolReferences)"
- FunctionOrder ="%(Link.FunctionOrder)"
- GenerateDebugInformation ="%(Link.GenerateDebugInformation)"
- GenerateManifest ="$(GenerateManifest)"
- GenerateMapFile ="%(Link.GenerateMapFile)"
- GenerateWindowsMetadata ="Only"
- WindowsMetadataFile ="%(Link.WindowsMetadataFile)"
- HeapCommitSize ="%(Link.HeapCommitSize)"
- HeapReserveSize ="%(Link.HeapReserveSize)"
- IgnoreAllDefaultLibraries ="%(Link.IgnoreAllDefaultLibraries)"
- IgnoreEmbeddedIDL ="%(Link.IgnoreEmbeddedIDL)"
- IgnoreSpecificDefaultLibraries ="%(Link.IgnoreSpecificDefaultLibraries)"
- ImageHasSafeExceptionHandlers ="%(Link.ImageHasSafeExceptionHandlers)"
- ImportLibrary ="%(Link.ImportLibrary)"
- KeyContainer ="%(Link.KeyContainer)"
- KeyFile ="$(LinkKeyFile)"
- LargeAddressAware ="%(Link.LargeAddressAware)"
- LinkDLL ="%(Link.LinkDLL)"
- LinkIncremental ="$(LinkIncremental)"
- LinkStatus ="%(Link.LinkStatus)"
- LinkTimeCodeGeneration ="%(Link.LinkTimeCodeGeneration)"
- ManifestFile ="%(Link.ManifestFile)"
- ManifestEmbed ="%(Link.ManifestEmbed)"
- ManifestInput ="%(Link.ManifestInput)"
- MapExports ="%(Link.MapExports)"
- MapFileName ="%(Link.MapFileName)"
- MergedIDLBaseFileName ="%(Link.MergedIDLBaseFileName)"
- MergeSections ="%(Link.MergeSections)"
- MidlCommandFile ="%(Link.MidlCommandFile)"
- MinimumRequiredVersion ="%(Link.MinimumRequiredVersion)"
- ModuleDefinitionFile ="%(Link.ModuleDefinitionFile)"
- MSDOSStubFileName ="%(Link.MSDOSStubFileName)"
- Natvis ="@(Natvis)"
- OptimizeReferences ="%(Link.OptimizeReferences)"
- OutputFile ="%(Link.OutputFile)"
- PreventDllBinding ="%(Link.PreventDllBinding)"
- Profile ="%(Link.Profile)"
- ProfileGuidedDatabase ="%(Link.ProfileGuidedDatabase)"
- ProgramDatabaseFile ="%(Link.ProgramDatabaseFile)"
- RandomizedBaseAddress ="%(Link.RandomizedBaseAddress)"
- NoEntryPoint ="%(Link.NoEntryPoint)"
- SectionAlignment ="%(Link.SectionAlignment)"
- SetChecksum ="%(Link.SetChecksum)"
- ShowProgress ="%(Link.ShowProgress)"
- SignHash ="%(Link.SignHash)"
- SpecifySectionAttributes ="%(Link.SpecifySectionAttributes)"
- StackCommitSize ="%(Link.StackCommitSize)"
- StackReserveSize ="%(Link.StackReserveSize)"
- StripPrivateSymbols ="%(Link.StripPrivateSymbols)"
- SubSystem ="%(Link.SubSystem)"
- SupportUnloadOfDelayLoadedDLL ="%(Link.SupportUnloadOfDelayLoadedDLL)"
- SupportNobindOfDelayLoadedDLL ="%(Link.SupportNobindOfDelayLoadedDLL)"
- SuppressStartupBanner ="%(Link.SuppressStartupBanner)"
- SwapRunFromCD ="%(Link.SwapRunFromCD)"
- SwapRunFromNET ="%(Link.SwapRunFromNET)"
- TargetMachine ="%(Link.TargetMachine)"
- TerminalServerAware ="%(Link.TerminalServerAware)"
- TreatLinkerWarningAsErrors ="%(Link.TreatLinkerWarningAsErrors)"
- TurnOffAssemblyGeneration ="%(Link.TurnOffAssemblyGeneration)"
- TypeLibraryFile ="%(Link.TypeLibraryFile)"
- TypeLibraryResourceID ="%(Link.TypeLibraryResourceID)"
- UACExecutionLevel ="%(Link.UACExecutionLevel)"
- UACUIAccess ="%(Link.UACUIAccess)"
- Version ="%(Link.Version)"
- WindowsMetadataLinkKeyFile ="%(Link.WindowsMetadataLinkKeyFile)"
- WindowsMetadataKeyContainer ="%(Link.WindowsMetadataKeyContainer)"
- WindowsMetadataLinkDelaySign ="%(Link.WindowsMetadataLinkDelaySign)"
- WindowsMetadataSignHash ="%(Link.WindowsMetadataSignHash)"
- TrackerLogDirectory ="%(Link.TrackerLogDirectory)"
- TLogReadFiles ="@(LinkTLogReadFiles)"
- TLogWriteFiles ="@(LinkTLogWriteFiles)"
- ToolExe ="$(LinkToolExe)"
- ToolPath ="$(LinkToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="$(Link_MinimalRebuildFromTracking)"
- ToolArchitecture ="$(LinkToolArchitecture)"
- TrackerFrameworkPath ="$(LinkTrackerFrameworkPath)"
- TrackerSdkPath ="$(LinkTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(LinkNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Link.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(LinkYieldDuringToolExecution)"
- >
- </Link>
- <OnError Condition="'$(OnXamlPreCompileErrorTarget)' != ''" ExecuteTargets="$(OnXamlPreCompileErrorTarget)" />
- </Target>
- <Target Name="CreateFullDebugSymbols" DependsOnTargets="DebugSymbolsProjectOutputGroup">
- <VCMessage Code="MSB8035" Type="Message" Arguments="$(MSBuildProjectFile);%(DebugSymbolsProjectOutputGroupOutput.FullPath)" Importance="High" />
- <!-- Calling target DebugSymbolsProjectOutputGroup to get the pdb path -->
- <!-- mspdbcmd returns error if it is already a full pdb. -->
- <Exec Command="mspdbcmf.exe /nologo "%(DebugSymbolsProjectOutputGroupOutput.FullPath)"" IgnoreExitCode="true" />
- </Target>
- <!-- *******************************************************************************************
- Lib
- ******************************************************************************************* -->
- <Target Name="Lib"
- Condition="'@(Lib)' != ''">
- <ItemGroup>
- <Lib>
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </Lib>
- </ItemGroup>
- <PropertyGroup>
- <LibToolArchitecture Condition="'$(LibToolArchitecture)' == ''">$(VCToolArchitecture)</LibToolArchitecture>
- </PropertyGroup>
- <LIB
- Sources ="@(Lib)"
- AdditionalDependencies ="%(Lib.AdditionalDependencies)"
- AdditionalLibraryDirectories ="%(Lib.AdditionalLibraryDirectories)"
- AdditionalOptions ="$(LibAdditionalOptions)"
- DisplayLibrary ="%(Lib.DisplayLibrary)"
- ErrorReporting ="%(Lib.LinkErrorReporting)"
- ExportNamedFunctions ="%(Lib.ExportNamedFunctions)"
- ForceSymbolReferences ="%(Lib.ForceSymbolReferences)"
- IgnoreAllDefaultLibraries ="%(Lib.IgnoreAllDefaultLibraries)"
- IgnoreSpecificDefaultLibraries ="%(Lib.IgnoreSpecificDefaultLibraries)"
- LinkTimeCodeGeneration ="%(Lib.LinkTimeCodeGeneration)"
- ModuleDefinitionFile ="%(Lib.ModuleDefinitionFile)"
- Name ="%(Lib.Name)"
- OutputFile ="%(Lib.OutputFile)"
- RemoveObjects ="%(Lib.RemoveObjects)"
- SubSystem ="%(Lib.SubSystem)"
- SuppressStartupBanner ="%(Lib.SuppressStartupBanner)"
- TargetMachine ="%(Lib.TargetMachine)"
- TreatLibWarningAsErrors ="%(Lib.TreatLibWarningAsErrors)"
- Verbose ="%(Lib.Verbose)"
- TrackerLogDirectory ="%(Lib.TrackerLogDirectory)"
- TLogReadFiles ="@(LIBTLogReadFiles)"
- TLogWriteFiles ="@(LIBTLogWriteFiles)"
- ToolExe ="$(LIBToolExe)"
- ToolPath ="$(LIBToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="%(Lib.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(LibToolArchitecture)"
- TrackerFrameworkPath ="$(LibTrackerFrameworkPath)"
- TrackerSdkPath ="$(LibTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(LibNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Lib.AcceptableNonZeroExitCodes)"
- >
- </LIB>
- <Message Text="$(MSBuildProjectFile) -> $(TargetPath)" Importance="High" />
- </Target>
- <Target Name="ImpLib"
- Condition="'@(ImpLib)' != '' and '$(IgnoreImportLibrary)' != 'true' and '$(GenerateImportLib)' == 'true'">
- <ItemGroup>
- <ImpLib>
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </ImpLib>
- </ItemGroup>
- <PropertyGroup>
- <LibUseEmptyDef Condition="'%(ImpLib.ModuleDefinitionFile)' == ''">/DEF:</LibUseEmptyDef>
- <LibToolArchitecture Condition="'$(LibToolArchitecture)' == ''">$(VCToolArchitecture)</LibToolArchitecture>
- </PropertyGroup>
- <LIB
- Sources ="@(ImpLib)"
- AdditionalDependencies ="%(ImpLib.AdditionalDependencies)"
- AdditionalLibraryDirectories ="%(ImpLib.AdditionalLibraryDirectories)"
- AdditionalOptions ="$(ImpLibAdditionalOptions) $(LibUseEmptyDef)"
- DisplayLibrary ="%(ImpLib.DisplayLibrary)"
- ErrorReporting ="%(ImpLib.LinkErrorReporting)"
- ExportNamedFunctions ="%(ImpLib.ExportNamedFunctions)"
- ForceSymbolReferences ="%(ImpLib.ForceSymbolReferences)"
- IgnoreAllDefaultLibraries ="%(ImpLib.IgnoreAllDefaultLibraries)"
- IgnoreSpecificDefaultLibraries ="%(ImpLib.IgnoreSpecificDefaultLibraries)"
- LinkTimeCodeGeneration ="%(ImpLib.LinkTimeCodeGeneration)"
- ModuleDefinitionFile ="%(ImpLib.ModuleDefinitionFile)"
- Name ="%(ImpLib.Name)"
- OutputFile ="%(ImpLib.OutputFile)"
- RemoveObjects ="%(ImpLib.RemoveObjects)"
- SubSystem ="%(ImpLib.SubSystem)"
- SuppressStartupBanner ="%(ImpLib.SuppressStartupBanner)"
- TargetMachine ="%(ImpLib.TargetMachine)"
- TreatLibWarningAsErrors ="%(ImpLib.TreatLibWarningAsErrors)"
- Verbose ="%(ImpLib.Verbose)"
- TrackerLogDirectory ="%(ImpLib.TrackerLogDirectory)"
- TLogReadFiles ="@(LIBTLogReadFiles)"
- TLogWriteFiles ="@(LIBTLogWriteFiles)"
- ToolExe ="$(LIBToolExe)"
- ToolPath ="$(LIBToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="%(ImpLib.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(LibToolArchitecture)"
- TrackerFrameworkPath ="$(LibTrackerFrameworkPath)"
- TrackerSdkPath ="$(LibTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(LibNoDependencies)"
- AcceptableNonZeroExitCodes ="%(ImpLib.AcceptableNonZeroExitCodes)"
- >
- </LIB>
- </Target>
- <!-- *******************************************************************************************
- FXC
- ******************************************************************************************* -->
- <PropertyGroup Condition="'$(FxCompileBeforeTargets)' == '' and '$(FxCompileAfterTargets)' == '' and '$(ConfigurationType)' != 'Makefile'">
- <FxCompileBeforeTargets>Midl</FxCompileBeforeTargets>
- <FxCompileAfterTargets>CustomBuild</FxCompileAfterTargets>
- </PropertyGroup>
- <Target
- Name="FxExport"
- BeforeTargets="$(FxCompileBeforeTargets)"
- AfterTargets="$(FxCompileAfterTargets)"
- Condition="'@(FxCompile)' != ''"
- DependsOnTargets="_SelectedFiles;MakeDirsForFxc">
- <ItemGroup Condition="'@(SelectedFiles)' != ''">
- <FxCompile Remove="@(FxCompile)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
- </ItemGroup>
- <ItemGroup>
- <FxCompile Condition="'@(FxCompile)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </FxCompile>
- </ItemGroup>
- <ItemGroup>
- <FxCompile Condition="'%(FxCompile.CompileD2DCustomEffect)'=='true'">
- <OriginalPreprocessorDefinitions>%(FxCompile.PreprocessorDefinitions)</OriginalPreprocessorDefinitions>
- <PreprocessorDefinitions>D2D_FUNCTION;D2D_ENTRY=%(FxCompile.EntryPointName);%(FxCompile.OriginalPreprocessorDefinitions)</PreprocessorDefinitions>
- </FxCompile>
- </ItemGroup>
- <PropertyGroup>
- <FxCompileToolArchitecture Condition="'$(FxCompileToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</FxCompileToolArchitecture>
- <D2DCustomEffectExportFile Condition="'%(FxCompile.CompileD2DCustomEffect)'=='true'">$(OutDir)%(FxCompile.Filename).fxlib</D2DCustomEffectExportFile>
- </PropertyGroup>
- <FXC
- Condition = "'@(FxCompile)' != '' and '%(FxCompile.ExcludedFromBuild)'!='true' and '%(FxCompile.CompileD2DCustomEffect)'=='true'"
- Source = "%(FxCompile.Identity)"
- ToolPath = "$(FXCToolPath)"
- AdditionalIncludeDirectories = "%(FxCompile.AdditionalIncludeDirectories)"
- SuppressStartupBanner = "%(FxCompile.SuppressStartupBanner)"
- TreatWarningAsError = "%(FxCompile.TreatWarningAsError)"
- PreprocessorDefinitions = "%(FxCompile.PreprocessorDefinitions)"
- AdditionalOptions = "%(FxCompile.AdditionalOptions)"
- DisableOptimizations = "%(FxCompile.DisableOptimizations)"
- EnableDebuggingInformation = "%(FxCompile.EnableDebuggingInformation)"
- GenerateExportFile = "$(D2DCustomEffectExportFile)"
- GenerateExportShaderProfile = "%(FxCompile.ShaderType);%(FxCompile.ShaderModel)"
- ToolArchitecture = "$(FxCompileToolArchitecture)"
- TrackerLogDirectory = "%(FxCompile.TrackerLogDirectory)"
- TrackedInputFilesToIgnore = "@(FxCompileNoDependencies)"
- TrackFileAccess = "$(TrackFileAccess)"
- MinimalRebuildFromTracking = "%(FxCompile.MinimalRebuildFromTracking)"
- />
- <WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="@(FxCompile->'^%(Identity)');@(FxCompile->MetaData('HeaderFileOutput')->FullPath()->Distinct());@(FxCompile->MetaData('ObjectFileOutput')->FullPath()->Distinct());@(FxCompile->MetaData('AssemblerOutputFile')->FullPath()->Distinct())" Encoding="Unicode"/>
- </Target>
- <Target
- Name="FxCompile"
- BeforeTargets="$(FxCompileBeforeTargets)"
- AfterTargets="$(FxCompileAfterTargets)"
- Condition="'@(FxCompile)' != ''"
- DependsOnTargets="_SelectedFiles;MakeDirsForFxc;FxExport">
- <ItemGroup Condition="'@(SelectedFiles)' != ''">
- <FxCompile Remove="@(FxCompile)" Condition="'%(Identity)' != '@(SelectedFiles)'" />
- </ItemGroup>
- <ItemGroup>
- <FxCompile Condition="'@(FxCompile)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </FxCompile>
- </ItemGroup>
- <ItemGroup>
- <FxCompile Condition="'%(FxCompile.CompileD2DCustomEffect)'=='true'">
- <PreprocessorDefinitions>D2D_FULL_SHADER;D2D_ENTRY=%(FxCompile.EntryPointName);%(FxCompile.OriginalPreprocessorDefinitions)</PreprocessorDefinitions>
- </FxCompile>
- </ItemGroup>
- <PropertyGroup>
- <FxCompileToolArchitecture Condition="'$(FxCompileToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</FxCompileToolArchitecture>
- <D2DCustomEffectExportFile Condition="'%(FxCompile.CompileD2DCustomEffect)'=='true'">$(OutDir)%(FxCompile.Filename).fxlib</D2DCustomEffectExportFile>
- </PropertyGroup>
- <FXC
- Condition = "'@(FxCompile)' != '' and '%(FxCompile.ExcludedFromBuild)'!='true'"
- Source = "%(FxCompile.Identity)"
- ToolPath = "$(FXCToolPath)"
- AdditionalIncludeDirectories = "%(FxCompile.AdditionalIncludeDirectories)"
- SuppressStartupBanner = "%(FxCompile.SuppressStartupBanner)"
- EntryPointName = "%(FxCompile.EntryPointName)"
- TreatWarningAsError = "%(FxCompile.TreatWarningAsError)"
- ShaderType = "%(FxCompile.ShaderType)"
- ShaderModel = "%(FxCompile.ShaderModel)"
- AllResourcesBound = "%(FxCompile.AllResourcesBound)"
- EnableUnboundedDescriptorTables = "%(FxCompile.EnableUnboundedDescriptorTables)"
- SetRootSignature = "%(FxCompile.SetRootSignature)"
- PreprocessorDefinitions = "%(FxCompile.PreprocessorDefinitions)"
- HeaderFileOutput = "%(FxCompile.HeaderFileOutput)"
- ObjectFileOutput = "%(FxCompile.ObjectFileOutput)"
- AssemblerOutput = "%(FxCompile.AssemblerOutput)"
- AssemblerOutputFile = "%(FxCompile.AssemblerOutputFile)"
- VariableName = "%(FxCompile.VariableName)"
- AdditionalOptions = "%(FxCompile.AdditionalOptions)"
- DisableOptimizations = "%(FxCompile.DisableOptimizations)"
- EnableDebuggingInformation = "%(FxCompile.EnableDebuggingInformation)"
- ConsumeExportFile = "$(D2DCustomEffectExportFile)"
- ToolArchitecture = "$(FxCompileToolArchitecture)"
- TrackerLogDirectory = "%(FxCompile.TrackerLogDirectory)"
- TrackedInputFilesToIgnore = "@(FxCompileNoDependencies)"
- TrackFileAccess = "$(TrackFileAccess)"
- MinimalRebuildFromTracking = "%(FxCompile.MinimalRebuildFromTracking)"
- />
- <WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="@(FxCompile->'^%(Identity)');@(FxCompile->MetaData('HeaderFileOutput')->FullPath()->Distinct());@(FxCompile->MetaData('ObjectFileOutput')->FullPath()->Distinct());@(FxCompile->MetaData('AssemblerOutputFile')->FullPath()->Distinct())" Encoding="Unicode"/>
- </Target>
- <!-- *******************************************************************************************
- MIDL
- ******************************************************************************************* -->
- <Target Name="Midl"
- Condition="'@(Midl)' != ''"
- DependsOnTargets="SelectMidl">
- <ItemGroup>
- <Midl Condition="'@(Midl)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </Midl>
- </ItemGroup>
- <PropertyGroup>
- <MidlToolArchitecture Condition="'$(MidlToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</MidlToolArchitecture>
- </PropertyGroup>
- <ItemGroup>
- <MidlNoDependencies Condition="'@(MidlNoDependencies)' == '' and '%(ClInclude.NoDependency)' == 'true'" Include="@(ClInclude)"/>
- <MidlNoDependencies Condition="'$(NoDependencies)' != ''" Include="$(NoDependencies)" />
- <MidlNoDependencies Condition="'%(Midl.DllDataFileName)' != '' and '%(Midl.OutputDirectory)' != ''" Include="$([System.IO.Path]::Combine($(MSBuildProjectDirectory), %(Midl.OutputDirectory), %(Midl.DllDataFileName)))" />
- <MidlNoDependencies Condition="'%(Midl.DllDataFileName)' == '' and '%(Midl.OutputDirectory)' != ''" Include="$([System.IO.Path]::Combine($(MSBuildProjectDirectory), %(Midl.OutputDirectory), dlldata.c))" />
- <MidlNoDependencies Condition="'%(Midl.DllDataFileName)' == '' and '%(Midl.OutputDirectory)' == ''" Include="$([System.IO.Path]::Combine($(MSBuildProjectDirectory), dlldata.c))" />
- </ItemGroup>
- <MultiToolTask
- Condition ="'%(Midl.ExcludedFromBuild)'!='true' and '$(UseMultiToolTask)' == 'true'"
- TaskName ="Microsoft.Build.CPPTasks.MIDL"
- Sources ="@(Midl)"
- TrackerLogDirectory ="$(TLogLocation)"
- MinimalRebuildFromTracking ="%(Midl.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(MidlToolArchitecture)"
- TrackerFrameworkPath ="$(MidlTrackerFrameworkPath)"
- TrackerSdkPath ="$(MidlTrackerSdkPath)"
- TLogReadFiles ="@(MIDLTLogReadFiles)"
- TLogWriteFiles ="@(MIDLTLogWriteFiles)"
- ToolExe ="$(MIDLToolExe)"
- ToolPath ="$(MIDLToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- TrackedInputFilesToIgnore ="@(MidlNoDependencies)"
- TrackedOutputFilesToIgnore ="@(MidlNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Midl.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(MidlYieldDuringToolExecution)"
- SchedulerVerbose ="$(SchedulerVerbose)"
- >
- </MultiToolTask>
- <MIDL
- Condition ="'%(Midl.ExcludedFromBuild)'!='true' and '$(UseMultiToolTask)' != 'true'"
- Source ="%(Midl.Identity)"
- AdditionalIncludeDirectories ="%(Midl.AdditionalIncludeDirectories)"
- AdditionalMetadataDirectories ="%(Midl.AdditionalMetadataDirectories)"
- AdditionalOptions ="%(Midl.AdditionalOptions)"
- ApplicationConfigurationMode ="%(Midl.ApplicationConfigurationMode)"
- ClientStubFile ="%(Midl.ClientStubFile)"
- CPreprocessOptions ="%(Midl.CPreprocessOptions)"
- DefaultCharType ="%(Midl.DefaultCharType)"
- DllDataFileName ="%(Midl.DllDataFileName)"
- EnableErrorChecks ="%(Midl.EnableErrorChecks)"
- EnableWindowsRuntime ="%(Midl.EnableWindowsRuntime)"
- Enumclass ="%(Midl.Enumclass)"
- ErrorCheckAllocations ="%(Midl.ErrorCheckAllocations)"
- ErrorCheckBounds ="%(Midl.ErrorCheckBounds)"
- ErrorCheckEnumRange ="%(Midl.ErrorCheckEnumRange)"
- ErrorCheckRefPointers ="%(Midl.ErrorCheckRefPointers)"
- ErrorCheckStubData ="%(Midl.ErrorCheckStubData)"
- ExcludedInputPaths ="$(ExcludePath)"
- GenerateClientFiles ="%(Midl.GenerateClientFiles)"
- GenerateServerFiles ="%(Midl.GenerateServerFiles)"
- GenerateStublessProxies ="%(Midl.GenerateStublessProxies)"
- GenerateTypeLibrary ="%(Midl.GenerateTypeLibrary)"
- HeaderFileName ="%(Midl.HeaderFileName)"
- IgnoreStandardIncludePath ="%(Midl.IgnoreStandardIncludePath)"
- InterfaceIdentifierFileName ="%(Midl.InterfaceIdentifierFileName)"
- LocaleID ="%(Midl.LocaleID)"
- MkTypLibCompatible ="%(Midl.MkTypLibCompatible)"
- MetadataFileName ="%(Midl.MetadataFileName)"
- OutputDirectory ="%(Midl.OutputDirectory)"
- PrependWithABINamepsace ="%(Midl.PrependWithABINamepsace)"
- PreprocessorDefinitions ="%(Midl.PreprocessorDefinitions)"
- ProxyFileName ="%(Midl.ProxyFileName)"
- RedirectOutputAndErrors ="%(Midl.RedirectOutputAndErrors)"
- ServerStubFile ="%(Midl.ServerStubFile)"
- StructMemberAlignment ="%(Midl.StructMemberAlignment)"
- SuppressCompilerWarnings ="%(Midl.SuppressCompilerWarnings)"
- SuppressStartupBanner ="%(Midl.SuppressStartupBanner)"
- TargetEnvironment ="%(Midl.TargetEnvironment)"
- TypeLibFormat ="%(Midl.TypeLibFormat)"
- TypeLibraryName ="%(Midl.TypeLibraryName)"
- UndefinePreprocessorDefinitions ="%(Midl.UndefinePreprocessorDefinitions)"
- ValidateAllParameters ="%(Midl.ValidateAllParameters)"
- WarnAsError ="%(Midl.WarnAsError)"
- WarningLevel ="%(Midl.WarningLevel)"
- TrackerLogDirectory ="%(Midl.TrackerLogDirectory)"
- MinimalRebuildFromTracking ="%(Midl.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(MidlToolArchitecture)"
- TrackerFrameworkPath ="$(MidlTrackerFrameworkPath)"
- TrackerSdkPath ="$(MidlTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(MidlNoDependencies)"
- TLogReadFiles ="@(MIDLTLogReadFiles)"
- TLogWriteFiles ="@(MIDLTLogWriteFiles)"
- ToolExe ="$(MIDLToolExe)"
- ToolPath ="$(MIDLToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- AcceptableNonZeroExitCodes ="%(Midl.AcceptableNonZeroExitCodes)"
- YieldDuringToolExecution ="$(MidlYieldDuringToolExecution)"
- >
- </MIDL>
- </Target>
- <!-- *******************************************************************************************
- ResourceCompile
- ******************************************************************************************* -->
- <Target Name="ResourceCompile"
- Condition="'@(ResourceCompile)' != ''"
- DependsOnTargets="SelectResourceCompile">
- <ItemGroup>
- <ResourceCompile Condition="'@(ResourceCompile)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </ResourceCompile>
- </ItemGroup>
- <PropertyGroup>
- <RCToolArchitecture Condition="'$(RCToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</RCToolArchitecture>
- </PropertyGroup>
- <ItemGroup>
- <RCNoDependencies Condition="'@(RCNoDependencies)' == '' and '%(ClInclude.NoDependency)' == 'true'" Include="@(ClInclude)"/>
- <RCNoDependencies Condition="'@(NoDependencies)' != ''" Include="@(NoDependencies)" />
- </ItemGroup>
- <RC
- Condition ="'%(ResourceCompile.ExcludedFromBuild)'!='true'"
- Source ="%(ResourceCompile.Identity)"
- AdditionalIncludeDirectories ="%(ResourceCompile.AdditionalIncludeDirectories)"
- AdditionalOptions ="%(ResourceCompile.AdditionalOptions)"
- Culture ="%(ResourceCompile.Culture)"
- IgnoreStandardIncludePath ="%(ResourceCompile.IgnoreStandardIncludePath)"
- NullTerminateStrings ="%(ResourceCompile.NullTerminateStrings)"
- PreprocessorDefinitions ="%(ResourceCompile.PreprocessorDefinitions)"
- ResourceOutputFileName ="%(ResourceCompile.ResourceOutputFileName)"
- SuppressStartupBanner ="%(ResourceCompile.SuppressStartupBanner)"
- ShowProgress ="%(ResourceCompile.ShowProgress)"
- UndefinePreprocessorDefinitions ="%(ResourceCompile.UndefinePreprocessorDefinitions)"
- TrackerLogDirectory ="%(ResourceCompile.TrackerLogDirectory)"
- MinimalRebuildFromTracking ="%(ResourceCompile.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(RCToolArchitecture)"
- TrackerFrameworkPath ="$(RCTrackerFrameworkPath)"
- TrackerSdkPath ="$(RCTrackerSdkPath)"
- TrackedInputFilesToIgnore ="@(RCNoDependencies)"
- TLogReadFiles ="@(RCTLogReadFiles)"
- TLogWriteFiles ="@(RCTLogWriteFiles)"
- ToolExe ="$(RCToolExe)"
- ToolPath ="$(RCToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- AcceptableNonZeroExitCodes ="%(ResourceCompile.AcceptableNonZeroExitCodes)"
- >
- </RC>
- </Target>
- <!-- *******************************************************************************************
- Managed Resource Compile
- ******************************************************************************************* -->
- <Target Name="BeforeResGen" DependsOnTargets="CreateManifestResourceNames"/>
- <Target Name="ResGen" DependsOnTargets="$(ResGenDependsOn)"/>
- <Target Name="_ResGen" DependsOnTargets="ResGen" Condition="'@(EmbeddedResource)'!=''"/>
- <PropertyGroup>
- <CreateManifestResourceNamesDependsOn></CreateManifestResourceNamesDependsOn>
- <!-- CopyFilesToOutputDirectory target will copy the managed files to the output directory.
- This flag will skip the primary output. -->
- <SkipCopyBuildProduct>true</SkipCopyBuildProduct>
- <BuildingProject>true</BuildingProject>
- </PropertyGroup>
- <Target Name="CreateManifestResourceNames"
- Condition="'@(EmbeddedResource)' != ''"
- DependsOnTargets="$(CreateManifestResourceNamesDependsOn)"
- >
- <ItemGroup>
- <_Temporary Remove="@(_Temporary)"/>
- </ItemGroup>
- <!-- Create manifest names for culture and non-culture Resx files, and for non-culture Non-Resx resources -->
- <CreateCSharpManifestResourceName
- ResourceFiles="@(EmbeddedResource)"
- RootNamespace="$(RootNamespace)"
- Condition="'%(EmbeddedResource.ExcludedFromBuild)' != 'true' and '%(EmbeddedResource.ManifestResourceName)' == '' and ('%(EmbeddedResource.WithCulture)' == 'false' or '%(EmbeddedResource.Type)' == 'Resx')"
- >
- <Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary"/>
- </CreateCSharpManifestResourceName>
- <!-- Create manifest names for all culture non-resx resources -->
- <CreateCSharpManifestResourceName
- ResourceFiles="@(EmbeddedResource)"
- RootNamespace="$(RootNamespace)"
- PrependCultureAsDirectory="false"
- Condition="'%(EmbeddedResource.ExcludedFromBuild)' != 'true' and '%(EmbeddedResource.ManifestResourceName)' == '' and '%(EmbeddedResource.WithCulture)' == 'true' and '%(EmbeddedResource.Type)' == 'Non-Resx'"
- >
- <Output TaskParameter="ResourceFilesWithManifestResourceNames" ItemName="_Temporary"/>
- </CreateCSharpManifestResourceName>
- <ItemGroup>
- <EmbeddedResource Remove="@(EmbeddedResource)" Condition="'%(EmbeddedResource.ManifestResourceName)' == '' "/>
- <EmbeddedResource Include="@(_Temporary)"/>
- <_Temporary Remove="@(_Temporary)"/>
- </ItemGroup>
- <WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="^$(ProjectPath);@(EmbeddedResource->'$(IntermediateOutputPath)%(ManifestResourceName).resources'->FullPath())" Encoding="Unicode"/>
- </Target>
- <!--
- ============================================================
- GenerateSatelliteAssemblies
- al.exe to create the satellite assemblies into the OutDir.
- ============================================================
- -->
- <Target Name="GenerateSatelliteAssemblies"
- Inputs="$(MSBuildAllProjects);@(_SatelliteAssemblyResourceInputs);$(OutDir)$(TargetName)$(TargetExt)"
- Outputs="$(OutDir)%(Culture)\$(TargetName).resources.dll"
- Condition="'@(_SatelliteAssemblyResourceInputs)' != ''">
- <MakeDir
- Directories="@(EmbeddedResource->'$(OutDir)%(Culture)')" />
- <AL AlgorithmId="$(Satellite_AlgorithmId)"
- BaseAddress="$(Satellite_BaseAddress)"
- CompanyName="$(Satellite_CompanyName)"
- Configuration="$(Satellite_Configuration)"
- Copyright="$(Satellite_Copyright)"
- Culture="%(Culture)"
- DelaySign="$(DelaySign)"
- Description="$(Satellite_Description)"
- EmbedResources="@(_SatelliteAssemblyResourceInputs)"
- EnvironmentVariables="$(AlEnvironment)"
- EvidenceFile="$(Satellite_EvidenceFile)"
- FileVersion="$(Satellite_FileVersion)"
- Flags="$(Satellite_Flags)"
- GenerateFullPaths="$(Satellite_GenerateFullPaths)"
- KeyContainer="$(KeyContainerName)"
- KeyFile="$(KeyOriginatorFile)"
- LinkResources="@(Satellite_LinkResource)"
- MainEntryPoint="$(Satellite_MainEntryPoint)"
- OutputAssembly="$(OutDir)%(Culture)\$(TargetName).resources.dll"
- Platform="$(PlatformTarget)"
- ProductName="$(Satellite_ProductName)"
- ProductVersion="$(Satellite_ProductVersion)"
- ResponseFiles="@(AlResponseFile)"
- SourceModules="@(Satellite_SourceModule)"
- TargetType="$(Satellite_TargetType)"
- TemplateFile="$(OutDir)$(TargetName)$(TargetExt)"
- Title="$(Satellite_Title)"
- ToolPath="$(AlToolPath)"
- SdkToolsPath="$(TargetFrameworkSDKToolsDirectory)"
- Trademark="$(Satellite_Trademark)"
- Version="$(Satellite_Version)"
- Win32Icon="$(Satellite_Win32Icon)"
- Win32Resource="$(Satellite_Win32Resource)">
- <Output TaskParameter="OutputAssembly" ItemName="GenerateSatelliteAssembliesOutputs"/>
- </AL>
- <WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.1u.tlog" Lines="^$(ProjectPath);@(GenerateSatelliteAssembliesOutputs->FullPath()->Distinct())" Encoding="Unicode"/>
- </Target>
- <!-- *******************************************************************************************
- MT
- ******************************************************************************************* -->
- <Target Name="Manifest"
- Condition="'@(Manifest)' != ''"
- DependsOnTargets="MakeDirsForManifest;$(ComputeManifestInputsTargets)">
- <ItemGroup>
- <Manifest>
- <OutputResourceManifests Condition="'$(LegacyManifestEmbedding)' == 'true' and '$(EmbedManifest)' == 'true' AND '$(EmbedManifestBy)'=='MT' AND '$(ConfigurationType)'=='Application'" >%(Link.OutputFile);#1</OutputResourceManifests>
- <OutputResourceManifests Condition="'$(LegacyManifestEmbedding)' == 'true' and '$(EmbedManifest)' == 'true' AND '$(EmbedManifestBy)'=='MT' AND '$(ConfigurationType)'=='DynamicLibrary'" >%(Link.OutputFile);#2</OutputResourceManifests>
- </Manifest>
- </ItemGroup>
- <PropertyGroup>
- <ManifestToolArchitecture Condition="'$(ManifestToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</ManifestToolArchitecture>
- <RCToolArchitecture Condition="'$(RCToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</RCToolArchitecture>
- </PropertyGroup>
- <!-- Deleting the outputs incase it came from an older build. This will force a clean MT instead of an incremental run.-->
- <Delete Condition="('$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true') and '$(EmbedManifestby)'=='LINK'" Files="@(Manifest->Metadata('OutputManifestFile')->Distinct());@(Manifest->Metadata('OutputResourceManifests')->Distinct())" />
- <Mt
- Sources ="@(Manifest);$(ManifestAdditionalManifestFiles)"
- AdditionalOptions ="%(Manifest.AdditionalOptions)"
- AssemblyIdentity ="%(Manifest.AssemblyIdentity)"
- ComponentFileName ="%(Manifest.ComponentFileName)"
- GenerateCatalogFiles ="%(Manifest.GenerateCatalogFiles)"
- GenerateCategoryTags ="%(Manifest.GenerateCategoryTags)"
- InputResourceManifests ="%(Manifest.InputResourceManifests)"
- OutputResourceManifests ="%(Manifest.OutputResourceManifests)"
- ManifestFromManagedAssembly ="%(Manifest.ManifestFromManagedAssembly)"
- OutputManifestFile ="%(Manifest.OutputManifestFile)"
- RegistrarScriptFile ="%(Manifest.RegistrarScriptFile)"
- ReplacementsFile ="%(Manifest.ReplacementsFile)"
- SuppressDependencyElement ="%(Manifest.SuppressDependencyElement)"
- SuppressStartupBanner ="%(Manifest.SuppressStartupBanner)"
- TypeLibraryFile ="%(Manifest.TypeLibraryFile)"
- UpdateFileHashes ="%(Manifest.UpdateFileHashes)"
- UpdateFileHashesSearchPath ="%(Manifest.UpdateFileHashesSearchPath)"
- VerboseOutput ="%(Manifest.VerboseOutput)"
- MinimalRebuildFromTracking ="$(LinkSkippedExecution)"
- TrackerLogDirectory ="%(Manifest.TrackerLogDirectory)"
- ToolArchitecture ="$(ManifestToolArchitecture)"
- TrackerFrameworkPath ="$(ManifestTrackerFrameworkPath)"
- TrackerSdkPath ="$(ManifestTrackerSdkPath)"
- ManifestToIgnore ="$(_ManifestToIgnore)"
- TLogReadFiles ="@(MtTLogReadFiles)"
- TLogWriteFiles ="@(MtTLogWriteFiles)"
- ToolExe ="$(MtToolExe)"
- ToolPath ="$(MtToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- TrackedInputFilesToIgnore ="@(MTNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Manifest.AcceptableNonZeroExitCodes)"
- >
- </Mt>
- <ItemGroup>
- <ManifestResourceCompile Condition="'@(ManifestResourceCompile)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </ManifestResourceCompile>
- </ItemGroup>
- <!-- If we are embedding with Link, we need to regenerate the .res file with the updated manifest.
- The .rc should have been auto-generated by the previous ManifestResourceCompile target. -->
- <RC
- Condition ="'$(EmbedManifestby)'=='LINK'"
- Source ="@(ManifestResourceCompile)"
- ResourceOutputFileName ="%(ManifestResourceCompile.ResourceOutputFileName)"
- SuppressStartupBanner ="%(ManifestResourceCompile.SuppressStartupBanner)"
- MinimalRebuildFromTracking ="%(ManifestResourceCompile.MinimalRebuildFromTracking)"
- TrackerLogDirectory ="%(ManifestResourceCompile.TrackerLogDirectory)"
- ToolArchitecture ="$(RCToolArchitecture)"
- TrackerFrameworkPath ="$(RCTrackerFrameworkPath)"
- TrackerSdkPath ="$(RCTrackerSdkPath)"
- TLogReadFiles ="@(RCTLogReadFiles)"
- TLogWriteFiles ="@(RCTLogWriteFiles)"
- ToolExe ="$(RCToolExe)"
- ToolPath ="$(RCToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- TrackedInputFilesToIgnore ="@(RCNoDependencies)"
- >
- <Output TaskParameter="SourcesCompiled" ItemName="RCSourcesCompiled"/>
- </RC>
- <!-- If RC did produce an output, then force link to embed that manifest.
- This enforcement is required for projects residing on FAT32 drives. -->
- <ItemGroup Condition="'$(EmbedManifestby)'=='LINK'">
- <Link>
- <MinimalRebuildFromTracking Condition="@(RCSourcesCompiled)!=''">false</MinimalRebuildFromTracking>
- </Link>
- </ItemGroup>
- </Target>
- <!-- Makes the the directories that Manifest uses -->
- <Target Name="MakeDirsForManifest">
- <!-- List of directories and files whose directories should be made prior to running Manifest -->
- <ItemGroup Condition="'@(Manifest)'!=''">
- <ManifestDirsToMake Include="@(Manifest->'%(OutputManifestFile)')" />
- <ManifestDirsToMake Include="@(Manifest->'%(OutputResourceManifests)')" />
- </ItemGroup>
- <ItemGroup Condition="'@(ManifestResourceCompile)'!=''">
- <ManifestDirsToMake Include="@(ManifestResourceCompile->'%(ResourceOutputFileName)')" />
- </ItemGroup>
- <MakeDir Directories="@(ManifestDirsToMake->'%(RootDir)%(Directory)')" />
- </Target>
- <!-- *******************************************************************************************
- ManifestResourceCompile
- ******************************************************************************************* -->
- <ItemGroup Condition="'$(EmbedManifestBy)'=='LINK'">
- <ManifestResourceCompile Include="$(IntDir)$(TargetName)_manifest.rc">
- <MinimalRebuildFromTracking >true</MinimalRebuildFromTracking>
- <TrackerLogDirectory >$(TLogLocation)</TrackerLogDirectory>
- </ManifestResourceCompile>
- </ItemGroup>
- <Target Name="ManifestResourceCompile"
- Condition="'$(EmbedManifestBy)' == 'LINK' and '@(Manifest)' != ''">
- <!-- This goes into the rc file as a string so '\' needs to be escaped: IntDir already has one '\',
- so we add one more here. -->
- <PropertyGroup>
- <InputManifest>%(Manifest.OutputManifestFile)</InputManifest>
- <InputManifest>$(InputManifest.Replace(`\`,`\\`))</InputManifest>
- </PropertyGroup>
- <!-- Create an place holder manifest file for RC -->
- <WriteLinesToFile
- Condition="!EXISTS('%(Manifest.OutputManifestFile)')"
- File="%(Manifest.OutputManifestFile)"
- Lines=""
- Overwrite="false"
- Encoding ="Unicode"
- />
- <WriteLinesToFile
- Condition="'$(ConfigurationType)'=='Application' AND !EXISTS('@(ManifestResourceCompile)')"
- File="@(ManifestResourceCompile)"
- Lines="1 /* CREATEPROCESS_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "$(InputManifest)""
- Overwrite="false"
- Encoding ="Unicode"
- />
- <WriteLinesToFile
- Condition="'$(ConfigurationType)'=='DynamicLibrary' AND !EXISTS('@(ManifestResourceCompile)')"
- File="@(ManifestResourceCompile)"
- Lines="2 /* ISOLATIONAWARE_MANIFEST_RESOURCE_ID */ 24 /* RT_MANIFEST */ "$(InputManifest)""
- Overwrite="false"
- Encoding ="Unicode"
- />
- <ItemGroup>
- <ManifestResourceCompile Condition="'@(ManifestResourceCompile)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </ManifestResourceCompile>
- </ItemGroup>
- <PropertyGroup>
- <RCToolArchitecture Condition="'$(RCToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</RCToolArchitecture>
- </PropertyGroup>
- <RC
- Source ="@(ManifestResourceCompile)"
- ResourceOutputFileName ="%(ManifestResourceCompile.ResourceOutputFileName)"
- SuppressStartupBanner ="%(ManifestResourceCompile.SuppressStartupBanner)"
- TrackerLogDirectory ="%(ManifestResourceCompile.TrackerLogDirectory)"
- MinimalRebuildFromTracking ="%(ManifestResourceCompile.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(RCToolArchitecture)"
- TrackerFrameworkPath ="$(RCTrackerFrameworkPath)"
- TrackerSdkPath ="$(RCTrackerSdkPath)"
- TLogReadFiles ="@(RCTLogReadFiles)"
- TLogWriteFiles ="@(RCTLogWriteFiles)"
- ToolExe ="$(RCToolExe)"
- ToolPath ="$(RCToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- TrackedInputFilesToIgnore ="@(RCNoDependencies)"
- >
- </RC>
- </Target>
- <!-- *******************************************************************************************
- RegisterDll
- ******************************************************************************************* -->
- <!-- Allow regsvr32 for Win32 Platform. If Platform is x64, then check if the host OS is 64bit. -->
- <Target Name="RegisterOutput"
- Condition="'$(LinkSkippedExecution)' != 'true' and (('$(Platform)' == 'x64' and ('$(PROCESSOR_ARCHITECTURE)' == 'AMD64' or '$(PROCESSOR_ARCHITEW6432)' == 'AMD64')) or '$(Platform)' == 'Win32')">
- <Exec Command="regsvr32 /s "%(Link.OutputFile)"" Condition="'$(ConfigurationType)'=='DynamicLibrary' and '%(Link.RegisterOutput)'=='true' and '%(Link.PerUserRedirection)'!='true'" ContinueOnError="true">
- <Output TaskParameter="ExitCode" PropertyName="_RegisterOutputExitCode"/>
- </Exec>
- <Exec Command="regsvr32 /s /n /i:user "%(Link.OutputFile)"" Condition="'$(ConfigurationType)'=='DynamicLibrary' and '%(Link.RegisterOutput)'=='true' and '%(Link.PerUserRedirection)'=='true'" ContinueOnError="true">
- <Output TaskParameter="ExitCode" PropertyName="_RegisterOutputExitCode"/>
- </Exec>
- <Exec Command=""%(Link.OutputFile)" /RegServer" Condition="'$(ConfigurationType)'=='Application' and '%(Link.RegisterOutput)'=='true' and '%(Link.PerUserRedirection)'!='true'" ContinueOnError="true">
- <Output TaskParameter="ExitCode" PropertyName="_RegisterOutputExitCode"/>
- </Exec>
- <Exec Command=""%(Link.OutputFile)" /RegServerPerUser" Condition="'$(ConfigurationType)'=='Application' and '%(Link.RegisterOutput)'=='true' and '%(Link.PerUserRedirection)'=='true'" ContinueOnError="true">
- <Output TaskParameter="ExitCode" PropertyName="_RegisterOutputExitCode"/>
- </Exec>
- <VCMessage Code="MSB8011" Type="Error" Condition="'$(_RegisterOutputExitCode)' != '' and '$(_RegisterOutputExitCode)' != '0'" />
- </Target>
- <!-- *******************************************************************************************
- XDCMake
- ******************************************************************************************* -->
- <Target Name="XdcMake"
- Condition="'@(XdcMake)' != ''">
- <ItemGroup>
- <XdcMake Condition="'@(XdcMake)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </XdcMake>
- </ItemGroup>
- <PropertyGroup>
- <XDCMakeToolArchitecture Condition="'$(XDCMakeToolArchitecture)' == ''">ManagedIL</XDCMakeToolArchitecture>
- </PropertyGroup>
- <XDCMake
- Sources ="@(XdcMake)"
- AdditionalOptions ="%(XdcMake.AdditionalOptions)"
- SuppressStartupBanner ="%(XdcMake.SuppressStartupBanner)"
- OutputFile ="%(XdcMake.OutputFile)"
- SlashOld ="true"
- ProjectName ="$(ProjectName)"
- TrackerLogDirectory ="%(XdcMake.TrackerLogDirectory)"
- MinimalRebuildFromTracking ="%(XdcMake.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(XDCMakeToolArchitecture)"
- TrackerFrameworkPath ="$(XDCMakeTrackerFrameworkPath)"
- TrackerSdkPath ="$(XDCMakeTrackerSdkPath)"
- TLogReadFiles ="@(XDCMakeTLogReadFiles)"
- TLogWriteFiles ="@(XDCMakeTLogWriteFiles)"
- ToolExe ="$(XDCMakeToolExe)"
- ToolPath ="$(XDCMakeToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- TrackedInputFilesToIgnore ="@(XDCMakeNoDependencies)"
- AcceptableNonZeroExitCodes ="%(XdcMake.AcceptableNonZeroExitCodes)"
- >
- </XDCMake>
- </Target>
- <!-- *******************************************************************************************
- BscMake
- ******************************************************************************************* -->
- <Target Name="BscMake"
- Condition="'@(BscMake)' != ''">
- <ItemGroup>
- <BscMake Condition="'@(BscMake)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </BscMake>
- </ItemGroup>
- <PropertyGroup>
- <BSCMakeToolArchitecture Condition="'$(BSCMakeToolArchitecture)' == ''">$(VCToolArchitecture)</BSCMakeToolArchitecture>
- </PropertyGroup>
- <BSCMake
- Sources ="@(BscMake)"
- AdditionalOptions ="%(BscMake.AdditionalOptions)"
- SuppressStartupBanner ="%(BscMake.SuppressStartupBanner)"
- OutputFile ="%(BscMake.OutputFile)"
- PreserveSBR ="%(BscMake.PreserveSBR)"
- TrackerLogDirectory ="%(BscMake.TrackerLogDirectory)"
- MinimalRebuildFromTracking ="%(BscMake.MinimalRebuildFromTracking)"
- ToolArchitecture ="$(BSCMakeToolArchitecture)"
- TrackerFrameworkPath ="$(BSCMakeTrackerFrameworkPath)"
- TrackerSdkPath ="$(BSCMakeTrackerSdkPath)"
- TLogReadFiles ="@(BSCMakeTLogReadFiles)"
- TLogWriteFiles ="@(BSCMakeTLogWriteFiles)"
- ToolExe ="$(BSCMakeToolExe)"
- ToolPath ="$(BSCMakeToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- TrackedInputFilesToIgnore ="@(BSCMakeNoDependencies)"
- AcceptableNonZeroExitCodes ="%(BscMake.AcceptableNonZeroExitCodes)"
- >
- </BSCMake>
- </Target>
- <!-- *******************************************************************************************
- XSD
- ******************************************************************************************* -->
- <Target Name="Xsd"
- Condition="'@(Xsd)' != ''"
- DependsOnTargets="SelectXsd">
- <ItemGroup>
- <Xsd Condition="'@(Xsd)' != ''">
- <MinimalRebuildFromTracking Condition="'$(_BuildActionType)' != 'Build' or '$(ForceRebuild)' == 'true'">false</MinimalRebuildFromTracking>
- </Xsd>
- </ItemGroup>
- <PropertyGroup>
- <XSDToolArchitecture Condition="'$(XSDToolArchitecture)' == ''">$(WindowsSDKToolArchitecture)</XSDToolArchitecture>
- </PropertyGroup>
- <XSD
- Condition ="'%(Xsd.ExcludedFromBuild)'!='true'"
- Sources ="%(Xsd.Identity)"
- SuppressStartupBanner ="%(Xsd.SuppressStartupBanner)"
- GenerateFromSchema ="%(Xsd.GenerateFromSchema)"
- Language ="%(Xsd.Language)"
- Namespace ="%(Xsd.Namespace)"
- TrackerLogDirectory ="%(Xsd.TrackerLogDirectory)"
- ToolArchitecture ="$(XSDToolArchitecture)"
- TrackerFrameworkPath ="$(XSDTrackerFrameworkPath)"
- TrackerSdkPath ="$(XSDTrackerSdkPath)"
- TLogReadFiles ="@(XSDTLogReadFiles)"
- TLogWriteFiles ="@(XSDTLogWriteFiles)"
- ToolExe ="$(XSDToolExe)"
- ToolPath ="$(XSDToolPath)"
- TrackFileAccess ="$(TrackFileAccess)"
- MinimalRebuildFromTracking ="%(Xsd.MinimalRebuildFromTracking)"
- TrackedInputFilesToIgnore ="@(XSDNoDependencies)"
- AcceptableNonZeroExitCodes ="%(Xsd.AcceptableNonZeroExitCodes)"
- />
- </Target>
- <!-- *******************************************************************************************
- MetaGen
- ******************************************************************************************* -->
- <PropertyGroup>
- <MetaGenTargets Condition="'$(MetaGenTargets)'==''">$(VCTargetsPath)\Microsoft.MetaGen.targets</MetaGenTargets>
- </PropertyGroup>
- <Import Project="$(MetaGenTargets)" Condition="Exists('$(MetaGenTargets)')"/>
- <PropertyGroup>
- <MetagenInputTarget Condition="'$(MetagenInputTarget)' == ''">Link</MetagenInputTarget>
- </PropertyGroup>
- <Target Name="ComputeMetaGenInputs"
- BeforeTargets="MetaGenInputsOutputs"
- Condition="'$(CLRSupport)'!='' and '$(CLRSupport)'!='false'"
- >
- <PropertyGroup>
- <ConsumeAnyMetaAssembly Condition="'$(ConsumeAnyMetaAssembly)' == '' and '$(EnableManagedIncrementalBuild)' != ''">$(EnableManagedIncrementalBuild)</ConsumeAnyMetaAssembly>
- <ConsumeAnyMetaAssembly Condition="'$(ConsumeAnyMetaAssembly)' == ''">False</ConsumeAnyMetaAssembly>
- <OutputAssemblyFile>%(Link.OutputFile)</OutputAssemblyFile>
- <OutputAssemblyMetagenFile>%(Link.OutputFile).metagen</OutputAssemblyMetagenFile>
- </PropertyGroup>
- <Delete Condition="'$(OutputAssemblyMetagenFile)' != '' and '$(ConsumeAnyMetaAssembly)' == 'false' and Exists('$(OutputAssemblyMetagenFile)')" Files="$(OutputAssemblyMetagenFile)" ContinueOnError="true"/>
- </Target>
- <!-- *******************************************************************************************
- GetNativeManifest : Override GetNativeManifest in Microsoft.Common.targets
- ******************************************************************************************* -->
- <Target
- Name="GetNativeManifest"
- Returns="@(ComputedApplicationManifest)">
- <ItemGroup>
- <Link Include="tmp" Condition="'@(Link)' == ''">
- <DeleteSoon>true</DeleteSoon>
- </Link>
- <Manifest Include="tmp" Condition="'@(Manifest)' == ''">
- <DeleteSoon>true</DeleteSoon>
- </Manifest>
- </ItemGroup>
- <PropertyGroup>
- <_HasNativeManifest>true</_HasNativeManifest>
- <_HasNativeManifest Condition="'$(GenerateManifest)' != 'true'">false</_HasNativeManifest>
- <_HasNativeManifest Condition="'$(EmbedManifest)' != 'false'">false</_HasNativeManifest>
- <_HasNativeManifest Condition="'%(Manifest.AssemblyIdentity)' == ''">false</_HasNativeManifest>
- <_HasNativeManifest Condition="!Exists('@(Manifest->Metadata('OutputManifestFile')->FullPath()->Distinct())')">false</_HasNativeManifest>
- </PropertyGroup>
- <ItemGroup>
- <ComputedApplicationManifest Include="@(Manifest->Metadata('OutputManifestFile')->Filename()->Distinct())" Condition="'$(_HasNativeManifest)' == 'true'">
- <HintPath>@(Manifest->Metadata('OutputManifestFile')->FullPath()->Distinct())</HintPath>
- </ComputedApplicationManifest>
- </ItemGroup>
- <ItemGroup>
- <Link Remove="@(Link)" Condition="'%(Link.DeleteSoon)' == 'true'" />
- <Manifest Remove="@(Manifest)" Condition="'%(Manifest.DeleteSoon)' == 'true'" />
- </ItemGroup>
- </Target>
- <!-- The name of UAP debugger changed during Dev14 update-1 - So mapping 'AppHostRemoteDebugger' to 'UWPRemoteDebugger' to ensure compatibility-->
- <PropertyGroup Condition="'$(TargetPlatformIdentifier)'=='UAP' and '$(DebuggerFlavor)'=='AppHostRemoteDebugger'">
- <DebuggerFlavor>UWPRemoteDebugger</DebuggerFlavor>
- </PropertyGroup>
- <Import Condition="'$(VCLibPackagePath)' != '' and Exists('$(VCLibPackagePath).targets')" Project="$(VCLibPackagePath).targets" />
- <Import Condition="exists('$(VCTargetsPath)\Microsoft.CodeAnalysis.Extensions.targets')" Project="$(VCTargetsPath)\Microsoft.CodeAnalysis.Extensions.targets"/>
- <Import Condition="'$(_CppCommonExtensionTargets)' != ''" Project="$(_CppCommonExtensionTargets)" />
- </Project>
Advertisement
Add Comment
Please, Sign In to add comment