forked from SCIInstitute/ImageVis3D
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_files.targets
155 lines (155 loc) · 5.66 KB
/
ui_files.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName
Include="UI">
<Targets>_UI</Targets>
</AvailableItemName>
<AvailableItemName
Include="QRC">
<Targets>_QRC</Targets>
</AvailableItemName>
</ItemGroup>
<UsingTask
TaskName="UI"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<UsingTask
TaskName="QRC"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target
Name="_UI"
BeforeTargets="$(UIBeforeTargets)"
AfterTargets="$(UIAfterTargets)"
Condition="'@(UI)' != ''"
DependsOnTargets="$(UIDependsOn);ComputeUIOutput"
Outputs="%(UI.Outputs)"
Inputs="%(UI.Identity);%(UI.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<UI
Remove="@(UI)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<UI_tlog
Include="%(UI.Outputs)"
Condition="'%(UI.Outputs)' != '' and '%(UI.ExcludedFromBuild)' != 'true'">
<Source>@(UI, '|')</Source>
</UI_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(UI.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(UI_tlog)' != '' and '%(UI_tlog.ExcludedFromBuild)' != 'true'"
File="$(IntDir)$(ProjectName).write.1.tlog"
Lines="^%(UI_tlog.Source);@(UI_tlog->'%(Fullpath)')" />
<UI
Condition="'@(UI)' != '' and '%(UI.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(UI.CommandLineTemplate)"
AdditionalOptions="%(UI.AdditionalOptions)"
Inputs="%(UI.Identity)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeUIOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeUIOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputeUIOutput"
Condition="'@(UI)' != ''">
<ItemGroup>
<UIDirsToMake
Condition="'@(UI)' != '' and '%(UI.ExcludedFromBuild)' != 'true'"
Include="%(UI.Outputs)" />
<Link
Include="%(UIDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(UIDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(UIDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(UIDirsToMake->'%(RootDir)%(Directory)')" />
</Target>
<Target
Name="_QRC"
BeforeTargets="$(QRCBeforeTargets)"
AfterTargets="$(QRCAfterTargets)"
Condition="'@(QRC)' != ''"
DependsOnTargets="$(QRCDependsOn);ComputeQRCOutput"
Outputs="%(QRC.Outputs)"
Inputs="%(QRC.Identity);%(QRC.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<QRC
Remove="@(QRC)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<QRC_tlog
Include="%(QRC.Outputs)"
Condition="'%(QRC.Outputs)' != '' and '%(QRC.ExcludedFromBuild)' != 'true'">
<Source>@(QRC, '|')</Source>
</QRC_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(QRC.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(QRC_tlog)' != '' and '%(QRC_tlog.ExcludedFromBuild)' != 'true'"
File="$(IntDir)$(ProjectName).write.1.tlog"
Lines="^%(QRC_tlog.Source);@(QRC_tlog->'%(Fullpath)')" />
<QRC
Condition="'@(QRC)' != '' and '%(QRC.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(QRC.CommandLineTemplate)"
AdditionalOptions="%(QRC.AdditionalOptions)"
Inputs="%(QRC.Identity)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeQRCOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeQRCOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputeQRCOutput"
Condition="'@(QRC)' != ''">
<ItemGroup>
<QRCDirsToMake
Condition="'@(QRC)' != '' and '%(QRC.ExcludedFromBuild)' != 'true'"
Include="%(QRC.Outputs)" />
<Link
Include="%(QRCDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(QRCDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(QRCDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(QRCDirsToMake->'%(RootDir)%(Directory)')" />
</Target>
</Project>