* Bring back rbuild build to be used until bug 6372 is fixed.
[reactos.git] / tools / rbuild / backend / msvc / rules / s_as_mscpp.targets
1 <?xml version="1.0" encoding="utf-8"?>
2 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup>
4 <PropertyPageSchema
5 Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
6 <AvailableItemName
7 Include="s_as_mscpp">
8 <Targets>_s_as_mscpp</Targets>
9 </AvailableItemName>
10 </ItemGroup>
11 <UsingTask
12 TaskName="s_as_mscpp"
13 TaskFactory="XamlTaskFactory"
14 AssemblyName="Microsoft.Build.Tasks.v4.0">
15 <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
16 </UsingTask>
17 <Target
18 Name="_s_as_mscpp"
19 BeforeTargets="$(s_as_mscppBeforeTargets)"
20 AfterTargets="$(s_as_mscppAfterTargets)"
21 Condition="'@(s_as_mscpp)' != ''"
22 DependsOnTargets="$(s_as_mscppDependsOn);Computes_as_mscppOutput"
23 Outputs="@(s_as_mscpp-&gt;Metadata('Outputs')-&gt;Distinct())"
24 Inputs="@(s_as_mscpp);%(s_as_mscpp.AdditionalDependencies);$(MSBuildProjectFile)">
25 <ItemGroup
26 Condition="'@(SelectedFiles)' != ''">
27 <s_as_mscpp
28 Remove="@(s_as_mscpp)"
29 Condition="'%(Identity)' != '@(SelectedFiles)'" />
30 </ItemGroup>
31 <ItemGroup>
32 <s_as_mscpp_tlog
33 Include="%(s_as_mscpp.Outputs)"
34 Condition="'%(s_as_mscpp.Outputs)' != '' and '%(s_as_mscpp.ExcludedFromBuild)' != 'true'">
35 <Source>@(s_as_mscpp, '|')</Source>
36 </s_as_mscpp_tlog>
37 </ItemGroup>
38 <Message
39 Importance="High"
40 Text="%(s_as_mscpp.ExecutionDescription)" />
41 <WriteLinesToFile
42 Condition="'@(s_as_mscpp_tlog)' != '' and '%(s_as_mscpp_tlog.ExcludedFromBuild)' != 'true'"
43 File="$(IntDir)$(ProjectName).write.1.tlog"
44 Lines="^%(s_as_mscpp_tlog.Source);@(s_as_mscpp_tlog-&gt;'%(Fullpath)')" />
45 <s_as_mscpp
46 Condition="'@(s_as_mscpp)' != '' and '%(s_as_mscpp.ExcludedFromBuild)' != 'true'"
47 CommandLineTemplate="%(s_as_mscpp.CommandLineTemplate)"
48 sOutF="%(s_as_mscpp.sOutF)"
49 sIncPaths="%(s_as_mscpp.sIncPaths)"
50 sPPDefs="%(s_as_mscpp.sPPDefs)"
51 AdditionalOptions="%(s_as_mscpp.AdditionalOptions)"
52 Inputs="@(s_as_mscpp)" />
53 </Target>
54 <PropertyGroup>
55 <ComputeLinkInputsTargets>
56 $(ComputeLinkInputsTargets);
57 Computes_as_mscppOutput;
58 </ComputeLinkInputsTargets>
59 <ComputeLibInputsTargets>
60 $(ComputeLibInputsTargets);
61 Computes_as_mscppOutput;
62 </ComputeLibInputsTargets>
63 </PropertyGroup>
64 <Target
65 Name="Computes_as_mscppOutput"
66 Condition="'@(s_as_mscpp)' != ''">
67 <ItemGroup>
68 <s_as_mscppDirsToMake
69 Condition="'@(s_as_mscpp)' != '' and '%(s_as_mscpp.ExcludedFromBuild)' != 'true'"
70 Include="%(s_as_mscpp.Outputs)" />
71 <Link
72 Include="%(s_as_mscppDirsToMake.Identity)"
73 Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
74 <Lib
75 Include="%(s_as_mscppDirsToMake.Identity)"
76 Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
77 <ImpLib
78 Include="%(s_as_mscppDirsToMake.Identity)"
79 Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
80 </ItemGroup>
81 <MakeDir
82 Directories="@(s_as_mscppDirsToMake-&gt;'%(RootDir)%(Directory)')" />
83 </Target>
84 </Project>