add .filters files extension required with VS 2010
[scilab.git] / scilab / Visual-Studio-settings / f2c.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="f2c_rule">
8       <Targets>_f2c_rule</Targets>
9     </AvailableItemName>
10   </ItemGroup>
11   <UsingTask
12     TaskName="f2c_rule"
13     TaskFactory="XamlTaskFactory"
14     AssemblyName="Microsoft.Build.Tasks.v4.0">
15     <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
16   </UsingTask>
17   <Target
18     Name="_f2c_rule"
19     BeforeTargets="$(f2c_ruleBeforeTargets)"
20     AfterTargets="$(f2c_ruleAfterTargets)"
21     Condition="'@(f2c_rule)' != ''"
22     DependsOnTargets="$(f2c_ruleDependsOn);Computef2c_ruleOutput"
23     Outputs="%(f2c_rule.Outputs)"
24     Inputs="%(f2c_rule.Identity);%(f2c_rule.AdditionalDependencies);$(MSBuildProjectFile)">
25     <ItemGroup
26       Condition="'@(SelectedFiles)' != ''">
27       <f2c_rule
28         Remove="@(f2c_rule)"
29         Condition="'%(Identity)' != '@(SelectedFiles)'" />
30     </ItemGroup>
31     <ItemGroup>
32       <f2c_rule_tlog
33         Include="%(f2c_rule.Outputs)"
34         Condition="'%(f2c_rule.Outputs)' != '' and '%(f2c_rule.ExcludedFromBuild)' != 'true'">
35         <Source>@(f2c_rule, '|')</Source>
36       </f2c_rule_tlog>
37     </ItemGroup>
38     <Message
39       Importance="High"
40       Text="%(f2c_rule.ExecutionDescription)" />
41     <WriteLinesToFile
42       Condition="'@(f2c_rule_tlog)' != '' and '%(f2c_rule_tlog.ExcludedFromBuild)' != 'true'"
43       File="$(IntDir)$(ProjectName).write.1.tlog"
44       Lines="^%(f2c_rule_tlog.Source);@(f2c_rule_tlog-&gt;'%(Fullpath)')" />
45     <f2c_rule
46       Condition="'@(f2c_rule)' != '' and '%(f2c_rule.ExcludedFromBuild)' != 'true'"
47       CommandLineTemplate="%(f2c_rule.CommandLineTemplate)"
48       AdditionalOptions="%(f2c_rule.AdditionalOptions)"
49       Inputs="%(f2c_rule.Identity)" />
50   </Target>
51   <PropertyGroup>
52     <ComputeLinkInputsTargets>
53             $(ComputeLinkInputsTargets);
54             Computef2c_ruleOutput;
55           </ComputeLinkInputsTargets>
56     <ComputeLibInputsTargets>
57             $(ComputeLibInputsTargets);
58             Computef2c_ruleOutput;
59           </ComputeLibInputsTargets>
60   </PropertyGroup>
61   <Target
62     Name="Computef2c_ruleOutput"
63     Condition="'@(f2c_rule)' != ''">
64     <ItemGroup>
65       <f2c_ruleDirsToMake
66         Condition="'@(f2c_rule)' != '' and '%(f2c_rule.ExcludedFromBuild)' != 'true'"
67         Include="%(f2c_rule.Outputs)" />
68       <Link
69         Include="%(f2c_ruleDirsToMake.Identity)"
70         Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
71       <Lib
72         Include="%(f2c_ruleDirsToMake.Identity)"
73         Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
74       <ImpLib
75         Include="%(f2c_ruleDirsToMake.Identity)"
76         Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
77     </ItemGroup>
78     <MakeDir
79       Directories="@(f2c_ruleDirsToMake-&gt;'%(RootDir)%(Directory)')" />
80   </Target>
81 </Project>