<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <PropertyPageSchema Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml"/>
    <AvailableItemName Include="preprocess_asm">
      <Targets>_preprocess_asm</Targets>
    </AvailableItemName>
    <AvailableItemName Include="build_asm">
      <Targets>_build_asm</Targets>
    </AvailableItemName>
  </ItemGroup>
  <UsingTask AssemblyName="Microsoft.Build.Tasks.v4.0" TaskFactory="XamlTaskFactory" TaskName="preprocess_asm">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <UsingTask AssemblyName="Microsoft.Build.Tasks.v4.0" TaskFactory="XamlTaskFactory" TaskName="build_asm">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <Target AfterTargets="$(preprocess_asmAfterTargets)" BeforeTargets="$(preprocess_asmBeforeTargets)" Condition="'@(preprocess_asm)' != ''" DependsOnTargets="$(preprocess_asmDependsOn);Computepreprocess_asmOutput" Inputs="%(preprocess_asm.Identity);%(preprocess_asm.AdditionalDependencies);$(MSBuildProjectFile)" Name="_preprocess_asm" Outputs="%(preprocess_asm.Outputs)">
    <ItemGroup Condition="'@(SelectedFiles)' != ''">
      <preprocess_asm Condition="'%(Identity)' != '@(SelectedFiles)'" Remove="@(preprocess_asm)"/>
    </ItemGroup>
    <ItemGroup>
      <preprocess_asm_inputs Include="%(preprocess_asm.AdditionalDependencies)"/>
    </ItemGroup>
    <ItemGroup>
      <preprocess_asm_tlog Condition="'%(preprocess_asm.Outputs)' != '' and '%(preprocess_asm.ExcludedFromBuild)' != 'true'" Include="%(preprocess_asm.Outputs)">
        <Source>@(preprocess_asm, &apos;|&apos;)</Source>
        <Inputs>@(preprocess_asm_inputs -&gt; &apos;%(Fullpath)&apos;, &apos;;&apos;)</Inputs>
      </preprocess_asm_tlog>
    </ItemGroup>
    <Message Importance="High" Text="%(preprocess_asm.ExecutionDescription)"/>
    <WriteLinesToFile Condition="'@(preprocess_asm_tlog)' != '' and '%(preprocess_asm_tlog.ExcludedFromBuild)' != 'true'" File="$(IntDir)$(ProjectName).write.1.tlog" Lines="^%(preprocess_asm_tlog.Source);@(preprocess_asm_tlog-&gt;'%(Fullpath)')"/>
    <WriteLinesToFile Condition="'@(preprocess_asm_tlog)' != '' and '%(preprocess_asm_tlog.ExcludedFromBuild)' != 'true'" File="$(IntDir)$(ProjectName).read.1.tlog" Lines="^%(preprocess_asm_tlog.Source);%(preprocess_asm_tlog.Inputs)"/>
    <preprocess_asm AdditionalOptions="%(preprocess_asm.AdditionalOptions)" CommandLineTemplate="%(preprocess_asm.CommandLineTemplate)" Condition="'@(preprocess_asm)' != '' and '%(preprocess_asm.ExcludedFromBuild)' != 'true'" EchoOff="true" Inputs="%(preprocess_asm.Identity)" StandardErrorImportance="High" StandardOutputImportance="High"/>
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>$(ComputeLinkInputsTargets);Computepreprocess_asmOutput;</ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>$(ComputeLibInputsTargets);Computepreprocess_asmOutput;</ComputeLibInputsTargets>
  </PropertyGroup>
  <Target Condition="'@(preprocess_asm)' != ''" Name="Computepreprocess_asmOutput">
    <ItemGroup>
      <preprocess_asmDirsToMake Condition="'@(preprocess_asm)' != '' and '%(preprocess_asm.ExcludedFromBuild)' != 'true'" Include="%(preprocess_asm.Outputs)"/>
      <Link Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" Include="%(preprocess_asmDirsToMake.Identity)"/>
      <Lib Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" Include="%(preprocess_asmDirsToMake.Identity)"/>
      <ImpLib Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" Include="%(preprocess_asmDirsToMake.Identity)"/>
    </ItemGroup>
    <MakeDir Directories="@(preprocess_asmDirsToMake-&gt;'%(RootDir)%(Directory)')"/>
  </Target>
  <Target AfterTargets="$(build_asmAfterTargets)" BeforeTargets="$(build_asmBeforeTargets)" Condition="'@(build_asm)' != ''" DependsOnTargets="$(build_asmDependsOn);Computebuild_asmOutput" Inputs="%(build_asm.Identity);%(build_asm.AdditionalDependencies);$(MSBuildProjectFile)" Name="_build_asm" Outputs="%(build_asm.Outputs)">
    <ItemGroup Condition="'@(SelectedFiles)' != ''">
      <build_asm Condition="'%(Identity)' != '@(SelectedFiles)'" Remove="@(build_asm)"/>
    </ItemGroup>
    <ItemGroup>
      <build_asm_inputs Include="%(build_asm.AdditionalDependencies)"/>
    </ItemGroup>
    <ItemGroup>
      <build_asm_tlog Condition="'%(build_asm.Outputs)' != '' and '%(build_asm.ExcludedFromBuild)' != 'true'" Include="%(build_asm.Outputs)">
        <Source>@(build_asm, &apos;|&apos;)</Source>
        <Inputs>@(build_asm_inputs -&gt; &apos;%(Fullpath)&apos;, &apos;;&apos;)</Inputs>
      </build_asm_tlog>
    </ItemGroup>
    <Message Importance="High" Text="%(build_asm.ExecutionDescription)"/>
    <WriteLinesToFile Condition="'@(build_asm_tlog)' != '' and '%(build_asm_tlog.ExcludedFromBuild)' != 'true'" File="$(IntDir)$(ProjectName).write.1.tlog" Lines="^%(build_asm_tlog.Source);@(build_asm_tlog-&gt;'%(Fullpath)')"/>
    <WriteLinesToFile Condition="'@(build_asm_tlog)' != '' and '%(build_asm_tlog.ExcludedFromBuild)' != 'true'" File="$(IntDir)$(ProjectName).read.1.tlog" Lines="^%(build_asm_tlog.Source);%(build_asm_tlog.Inputs)"/>
    <build_asm AdditionalOptions="%(build_asm.AdditionalOptions)" CommandLineTemplate="%(build_asm.CommandLineTemplate)" Condition="'@(build_asm)' != '' and '%(build_asm.ExcludedFromBuild)' != 'true'" EchoOff="true" Inputs="%(build_asm.Identity)" StandardErrorImportance="High" StandardOutputImportance="High"/>
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>$(ComputeLinkInputsTargets);Computebuild_asmOutput;</ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>$(ComputeLibInputsTargets);Computebuild_asmOutput;</ComputeLibInputsTargets>
  </PropertyGroup>
  <Target Condition="'@(build_asm)' != ''" Name="Computebuild_asmOutput">
    <ItemGroup>
      <build_asmDirsToMake Condition="'@(build_asm)' != '' and '%(build_asm.ExcludedFromBuild)' != 'true'" Include="%(build_asm.Outputs)"/>
      <Link Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" Include="%(build_asmDirsToMake.Identity)"/>
      <Lib Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" Include="%(build_asmDirsToMake.Identity)"/>
      <ImpLib Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" Include="%(build_asmDirsToMake.Identity)"/>
    </ItemGroup>
    <MakeDir Directories="@(build_asmDirsToMake-&gt;'%(RootDir)%(Directory)')"/>
  </Target>
</Project>
