-
Notifications
You must be signed in to change notification settings - Fork 1
/
fx.targets
82 lines (82 loc) · 3.03 KB
/
fx.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName
Include="FX">
<Targets>_FX</Targets>
</AvailableItemName>
</ItemGroup>
<UsingTask
TaskName="FX"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target
Name="_FX"
BeforeTargets="$(FXBeforeTargets)"
AfterTargets="$(FXAfterTargets)"
Condition="'@(FX)' != ''"
DependsOnTargets="$(FXDependsOn);ComputeFXOutput"
Outputs="%(FX.Outputs)"
Inputs="%(FX.Identity);%(FX.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<FX
Remove="@(FX)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<FX_tlog
Include="%(FX.Outputs)"
Condition="'%(FX.Outputs)' != '' and '%(FX.ExcludedFromBuild)' != 'true'">
<Source>@(FX, '|')</Source>
</FX_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(FX.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(FX_tlog)' != '' and '%(FX_tlog.ExcludedFromBuild)' != 'true'"
File="$(TLogLocation)$(ProjectName).write.1u.tlog"
Lines="^%(FX_tlog.Source);@(FX_tlog->'%(Fullpath)')"
Encoding="Unicode" />
<FX
Condition="'@(FX)' != '' and '%(FX.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(FX.CommandLineTemplate)"
AdditionalOptions="%(FX.AdditionalOptions)"
Inputs="%(FX.Identity)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeFXOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeFXOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputeFXOutput"
Condition="'@(FX)' != ''">
<ItemGroup>
<FXDirsToMake
Condition="'@(FX)' != '' and '%(FX.ExcludedFromBuild)' != 'true'"
Include="%(FX.Outputs)" />
<Link
Include="%(FXDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(FXDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(FXDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(FXDirsToMake->'%(RootDir)%(Directory)')" />
</Target>
</Project>