summaryrefslogtreecommitdiffstats
path: root/src/citra_qt/qt-build.targets
blob: febec73c4c53e53f89d2802bac405beea8e9bbf6 (plain) (blame)
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?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="QRC">
      <Targets>_QRC</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="QRC"
    TaskFactory="XamlTaskFactory"
    AssemblyName="Microsoft.Build.Tasks.v4.0">
    <Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
  </UsingTask>
  <Target
    Name="_UIC"
    BeforeTargets="$(UICBeforeTargets)"
    AfterTargets="$(UICAfterTargets)"
    Condition="'@(UIC)' != ''"
    DependsOnTargets="_SelectedFiles;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
      File="$(IntDir)$(ProjectName).write.1.tlog"
      Lines="^%(UIC_tlog.Source);@(UIC_tlog-&gt;'%(Fullpath)')" />
    <UIC
      Condition="'%(UIC.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(UIC.CommandLineTemplate)"
      QtUicExt="%(UIC.QtUicExt)"
      QtUicPrefix="%(UIC.QtUicPrefix)"
      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)' != ''"
        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>
  <Target
    Name="_MOC"
    BeforeTargets="$(MOCBeforeTargets)"
    AfterTargets="$(MOCAfterTargets)"
    Condition="'@(MOC)' != ''"
    DependsOnTargets="_SelectedFiles;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
      File="$(IntDir)$(ProjectName).write.1.tlog"
      Lines="^%(MOC_tlog.Source);@(MOC_tlog-&gt;'%(Fullpath)')" />
    <MOC
      Condition="'%(MOC.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(MOC.CommandLineTemplate)"
      QtShared="%(MOC.QtShared)"
      QtThread="%(MOC.QtThread)"
      QtUnicode="%(MOC.QtUnicode)"
      QtLargeFile="%(MOC.QtLargeFile)"
      QtKeywords="%(MOC.QtKeywords)"
      QtNoDebug="%(MOC.QtNoDebug)"
      QtGuiLib="%(MOC.QtGuiLib)"
      QtCoreLib="%(MOC.QtCoreLib)"
      QtOpenGLLib="%(MOC.QtOpenGLLib)"
      QtMocNoWarnings="%(MOC.QtMocNoWarnings)"
      QtMocPfx="%(MOC.QtMocPfx)"
      QtCommandLine="%(MOC.QtCommandLine)"
      AdditionalOptions="%(MOC.AdditionalOptions)"
      Inputs="%(MOC.Identity)" />
  </Target>
  <PropertyGroup>
    <ComputeLinkInputsTargets>
            $(ComputeLinkInputsTargets);
            ComputeMOCOutput;
          </ComputeLinkInputsTargets>
    <ComputeLibInputsTargets>
            $(ComputeLibInputsTargets);
            ComputeMOCOutput;
          </ComputeLibInputsTargets>
  </PropertyGroup>
  <Target
    Name="ComputeMOCOutput"
    Condition="'@(MOC)' != ''">
    <ItemGroup>
      <MOCDirsToMake
        Condition="'@(MOC)' != ''"
        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>
  <Target
    Name="_QRC"
    BeforeTargets="$(QRCBeforeTargets)"
    AfterTargets="$(QRCAfterTargets)"
    Condition="'@(QRC)' != ''"
    DependsOnTargets="_SelectedFiles;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
      File="$(IntDir)$(ProjectName).write.1.tlog"
      Lines="^%(QRC_tlog.Source);@(QRC_tlog-&gt;'%(Fullpath)')" />
    <QRC
      Condition="'%(QRC.ExcludedFromBuild)' != 'true'"
      CommandLineTemplate="%(QRC.CommandLineTemplate)"
      QtCommandLine="%(QRC.QtCommandLine)"
      QtQrcPfx="%(QRC.QtQrcPfx)"
      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)' != ''"
        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-&gt;'%(RootDir)%(Directory)')" />
  </Target>
</Project>