Subversion Repositories Scribus

Rev

Rev 22180 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup>
    <PropertyPageSchema
      Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
    <AvailableItemName
      Include="uic">
      <Targets>_uic</Targets>
    </AvailableItemName>
    <AvailableItemName
      Include="moc">
      <Targets>_moc</Targets>
    </AvailableItemName>
    <AvailableItemName
      Include="rcc">
      <Targets>_rcc</Targets>
    </AvailableItemName>
    <AvailableItemName
      Include="lrelease">
      <Targets>_lrelease</Targets>
    </AvailableItemName>
  </ItemGroup>
  <UsingTask
    TaskName="uic"
    TaskFactory="XamlTaskFactory"
    AssemblyName="Microsoft.Build.Tasks.v4.0">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <UsingTask
    TaskName="moc"
    TaskFactory="XamlTaskFactory"
    AssemblyName="Microsoft.Build.Tasks.v4.0">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <UsingTask
    TaskName="rcc"
    TaskFactory="XamlTaskFactory"
    AssemblyName="Microsoft.Build.Tasks.v4.0">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <UsingTask
    TaskName="lrelease"
    TaskFactory="XamlTaskFactory"
    AssemblyName="Microsoft.Build.Tasks.v4.0">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <!-- Targets for uic tool -->
  <Target
    Name="_uic"
    BeforeTargets="$(uicBeforeTargets)"
    AfterTargets="$(uicAfterTargets)"
    Condition="'@(uic)' != ''"
    DependsOnTargets="$(uicDependsOn);ComputeUicOutput"
    Outputs="%(uic.Outputs)"
    Inputs="%(uic.Identity);%(uic.AdditionalDependencies);$(MSBuildProjectFile)">
    <ItemGroup
      Condition="'@(SelectedFiles)' != ''">
      <uic
        Remove="@(uic)"
        Condition="'%(Identity)' != '@(SelectedFiles)'" />
    </ItemGroup>
    <ItemGroup>
      <uic_tlog
        Include="%(uic.Outputs)"
        Condition="'%(uic.Outputs)' != '' and '%(uic.ExcludedFromBuild)' != 'true'">
        <Source>@(uic, '|')</Source>
      </uic_tlog>
    </ItemGroup>
    <Message
      Importance="High"
      Text="%(uic.ExecutionDescription)" />
    <WriteLinesToFile
      Condition="'@(uic_tlog)' != '' and '%(uic_tlog.ExcludedFromBuild)' != 'true'"
      File="$(TLogLocation)$(ProjectName).write.1.tlog"
      Lines="^%(uic_tlog.Source);@(uic_tlog-&gt;'%(Fullpath)')" />
    <uic
      Condition="'@(uic)' != '' and '%(uic.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(uic.CommandLineTemplate)"
      AdditionalOptions="%(uic.AdditionalOptions)"
      Inputs="%(uic.Identity)" />
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>
            $(ComputeLinkInputsTargets);
            ComputeUicOutput;
          </ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>
            $(ComputeLibInputsTargets);
            ComputeUicOutput;
          </ComputeLibInputsTargets>
  </PropertyGroup>
  <Target
    Name="ComputeUicOutput"
    Condition="'@(uic)' != ''">
    <ItemGroup>
      <uicDirsToMake
        Condition="'@(uic)' != '' and '%(uic.ExcludedFromBuild)' != 'true'"
        Include="%(uic.Outputs)" />
      <Link
        Include="%(uicDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <Lib
        Include="%(uicDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <ImpLib
        Include="%(uicDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
    </ItemGroup>
    <MakeDir Directories="@(uicDirsToMake-&gt;'%(RootDir)%(Directory)')" />
  </Target>
  <!-- Clean support for uic tool -->
  <PropertyGroup>
    <CleanDependsOn>
                UicClean;
        $(CleanDependsOn);
    </CleanDependsOn>
  </PropertyGroup>
  <Target
    Name="UicClean"
    Condition="'@(uic)' != ''">
    <ItemGroup>
      <uicFileToDelete Include="%(uic.Outputs)" />
    </ItemGroup>
    <Delete Files="@(uicFileToDelete)" />
  </Target>
  <!-- Targets for moc tool -->
  <Target
    Name="_moc"
    BeforeTargets="$(mocBeforeTargets)"
    AfterTargets="$(mocAfterTargets)"
    Condition="'@(moc)' != ''"
    DependsOnTargets="$(mocDependsOn);ComputeMocOutput"
    Outputs="%(moc.Outputs)"
    Inputs="%(moc.Identity);%(moc.AdditionalDependencies);$(MSBuildProjectFile)">
    <ItemGroup
      Condition="'@(SelectedFiles)' != ''">
      <moc
        Remove="@(moc)"
        Condition="'%(Identity)' != '@(SelectedFiles)'" />
    </ItemGroup>
    <ItemGroup>
      <moc_tlog
        Include="%(moc.Outputs)"
        Condition="'%(moc.Outputs)' != '' and '%(moc.ExcludedFromBuild)' != 'true'">
        <Source>@(moc, '|')</Source>
      </moc_tlog>
    </ItemGroup>
    <Message
      Importance="High"
      Text="%(moc.ExecutionDescription)" />
    <WriteLinesToFile
      Condition="'@(moc_tlog)' != '' and '%(moc_tlog.ExcludedFromBuild)' != 'true'"
      File="$(TLogLocation)$(ProjectName).write.1.tlog"
      Lines="^%(moc_tlog.Source);@(moc_tlog-&gt;'%(Fullpath)')" />
    <moc
      Condition="'@(moc)' != '' and '%(moc.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(moc.CommandLineTemplate)"
      AdditionalOptions="%(moc.AdditionalOptions)"
      Inputs="%(moc.Identity)" />
    <ItemGroup>
      <ClCompile Include="%(moc.Outputs)"/>
    </ItemGroup>
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>
            $(ComputeLinkInputsTargets);
            ComputeMocOutput;
          </ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>
            $(ComputeLibInputsTargets);
            ComputeMocOutput;
          </ComputeLibInputsTargets>
  </PropertyGroup>
  <Target
    Name="ComputeMocOutput"
    Condition="'@(moc)' != ''">
    <ItemGroup>
      <mocDirsToMake
        Condition="'@(moc)' != '' and '%(moc.ExcludedFromBuild)' != 'true'"
        Include="%(moc.Outputs)" />
      <Link
        Include="%(mocDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <Lib
        Include="%(mocDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <ImpLib
        Include="%(mocDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
    </ItemGroup>
    <MakeDir Directories="@(mocDirsToMake-&gt;'%(RootDir)%(Directory)')" />
  </Target>
  <!-- Clean support for moc output -->
  <PropertyGroup>
    <CleanDependsOn>
                MocClean;
        $(CleanDependsOn);
    </CleanDependsOn>
  </PropertyGroup>
  <Target
    Name="MocClean"
    Condition="'@(moc)' != ''">
    <ItemGroup>
      <mocFileToDelete Include="%(moc.Outputs)" />
    </ItemGroup>
    <Delete Files="@(mocFileToDelete)" />
  </Target>
  <!-- Targets for rcc tool -->
  <Target
    Name="_rcc"
    BeforeTargets="$(rccBeforeTargets)"
    AfterTargets="$(rccAfterTargets)"
    Condition="'@(rcc)' != ''"
    DependsOnTargets="$(rccDependsOn);ComputeRccOutput"
    Outputs="%(rcc.Outputs)"
    Inputs="%(rcc.Identity);%(rcc.AdditionalDependencies);$(MSBuildProjectFile)">
    <ItemGroup
      Condition="'@(SelectedFiles)' != ''">
      <rcc
        Remove="@(rcc)"
        Condition="'%(Identity)' != '@(SelectedFiles)'" />
    </ItemGroup>
    <ItemGroup>
      <rcc_tlog
        Include="%(rcc.Outputs)"
        Condition="'%(rcc.Outputs)' != '' and '%(rcc.ExcludedFromBuild)' != 'true'">
        <Source>@(rcc, '|')</Source>
      </rcc_tlog>
    </ItemGroup>
    <Message
      Importance="High"
      Text="%(rcc.ExecutionDescription)" />
    <WriteLinesToFile
      Condition="'@(rcc_tlog)' != '' and '%(rcc_tlog.ExcludedFromBuild)' != 'true'"
      File="$(TLogLocation)$(ProjectName).write.1.tlog"
      Lines="^%(rcc_tlog.Source);@(rcc_tlog-&gt;'%(Fullpath)')" />
    <rcc
      Condition="'@(rcc)' != '' and '%(rcc.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(rcc.CommandLineTemplate)"
      AdditionalOptions="%(rcc.AdditionalOptions)"
      Inputs="%(rcc.Identity)" />
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>
            $(ComputeLinkInputsTargets);
            ComputeRccOutput;
          </ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>
            $(ComputeLibInputsTargets);
            ComputeRccOutput;
          </ComputeLibInputsTargets>
  </PropertyGroup>
  <Target
    Name="ComputeRccOutput"
    Condition="'@(rcc)' != ''">
    <ItemGroup>
      <rccDirsToMake
        Condition="'@(rcc)' != '' and '%(rcc.ExcludedFromBuild)' != 'true'"
        Include="%(rcc.Outputs)" />
      <Link
        Include="%(rccDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <Lib
        Include="%(rccDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <ImpLib
        Include="%(rccDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
    </ItemGroup>
    <MakeDir Directories="@(rccDirsToMake-&gt;'%(RootDir)%(Directory)')" />
  </Target>
  <!-- Clean support for rcc output -->
  <PropertyGroup>
    <CleanDependsOn>
                RccClean;
        $(CleanDependsOn);
    </CleanDependsOn>
  </PropertyGroup>
  <Target
    Name="RccClean"
    Condition="'@(rcc)' != ''">
    <ItemGroup>
      <rccFileToDelete Include="%(rcc.Outputs)" />
    </ItemGroup>
    <Delete Files="@(rccFileToDelete)" />
  </Target>
   <!-- Targets for lrelease tool -->
  <Target
    Name="_lrelease"
    BeforeTargets="$(lreleaseBeforeTargets)"
    AfterTargets="$(lreleaseAfterTargets)"
    Condition="'@(lrelease)' != ''"
    DependsOnTargets="$(lreleaseDependsOn);ComputeLreleaseOutput"
    Outputs="%(lrelease.Outputs)"
    Inputs="%(lrelease.Identity);%(lrelease.AdditionalDependencies);$(MSBuildProjectFile)">
    <ItemGroup
      Condition="'@(SelectedFiles)' != ''">
      <lrelease
        Remove="@(lrelease)"
        Condition="'%(Identity)' != '@(SelectedFiles)'" />
    </ItemGroup>
    <ItemGroup>
      <lrelease_tlog
        Include="%(lrelease.Outputs)"
        Condition="'%(lrelease.Outputs)' != '' and '%(lrelease.ExcludedFromBuild)' != 'true'">
        <Source>@(lrelease, '|')</Source>
      </lrelease_tlog>
    </ItemGroup>
    <Message
      Importance="High"
      Text="%(lrelease.ExecutionDescription)" />
    <WriteLinesToFile
      Condition="'@(lrelease_tlog)' != '' and '%(lrelease_tlog.ExcludedFromBuild)' != 'true'"
      File="$(TLogLocation)$(ProjectName).write.1.tlog"
      Lines="^%(lrelease_tlog.Source);@(lrelease_tlog-&gt;'%(Fullpath)')" />
    <lrelease
      Condition="'@(lrelease)' != '' and '%(lrelease.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(lrelease.CommandLineTemplate)"
      AdditionalOptions="%(lrelease.AdditionalOptions)"
      Inputs="%(lrelease.Identity)" />
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>
            $(ComputeLinkInputsTargets);
            ComputeLreleaseOutput;
          </ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>
            $(ComputeLibInputsTargets);
            ComputeLreleaseOutput;
          </ComputeLibInputsTargets>
  </PropertyGroup>
  <Target
    Name="ComputeLreleaseOutput"
    Condition="'@(lrelease)' != ''">
    <ItemGroup>
      <lreleaseDirsToMake
        Condition="'@(lrelease)' != '' and '%(lrelease.ExcludedFromBuild)' != 'true'"
        Include="%(lrelease.Outputs)" />
      <Link
        Include="%(lreleaseDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <Lib
        Include="%(lreleaseDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
      <ImpLib
        Include="%(lreleaseDirsToMake.Identity)"
        Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
    </ItemGroup>
    <MakeDir Directories="@(lreleaseDirsToMake-&gt;'%(RootDir)%(Directory)')" />
  </Target>
  <!-- Clean support for lrelease output -->
  <PropertyGroup>
    <CleanDependsOn>
                LrelaseClean;
        $(CleanDependsOn);
    </CleanDependsOn>
  </PropertyGroup>
  <Target
    Name="LrelaseClean"
    Condition="'@(lrelease)' != ''">
    <ItemGroup>
      <lreleaseFileToDelete Include="%(lrelease.Outputs)" />
    </ItemGroup>
    <Delete Files="@(lreleaseFileToDelete)" />
  </Target>
</Project>