Add MPC_LIB_MODIFIER
[MPC.git] / templates / vc10filters.mpd
blobf18a01ac8f1c9434c3a0b34b2619d36b9ad6edae
1 <?xml version="<%xml_version("1.0")%>" encoding="<%encoding("utf-8")%>"?>
2 <Project ToolsVersion="<%toolsversion%>" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <ItemGroup>
4 <%if(source_files)%>
5 <%if(grouped_source_files)%>
6 <%foreach(sort(grouped_source_files))%>
7 <%if(!compares(grouped_source_file, default_group))%>
8 <Filter Include="<%grouped_source_file%>">
9 <UniqueIdentifier>{<%new_guid(grouped_source_file)%>}</UniqueIdentifier>
10 <Extensions><%foreach(ext, extensions(source_files))%><%ext%><%fornotlast(";")%><%endfor%></Extensions>
11 </Filter>
12 <%endif%>
13 <%endfor%>
14 <%endif%>
15 <Filter Include="Source Files">
16 <UniqueIdentifier>{<%new_guid(default_group)%>}</UniqueIdentifier>
17 <Extensions><%foreach(ext, extensions(source_files))%><%ext%><%fornotlast(";")%><%endfor%></Extensions>
18 </Filter>
19 <%endif%>
20 <%if(header_files)%>
21 <%if(grouped_header_files)%>
22 <%foreach(sort(grouped_header_files))%>
23 <%if(!compares(grouped_header_file, default_group))%>
24 <Filter Include="<%grouped_header_file%>">
25 <UniqueIdentifier>{<%new_guid(grouped_header_file)%>}</UniqueIdentifier>
26 <Extensions><%foreach(ext, extensions(header_files))%><%ext%><%fornotlast(";")%><%endfor%></Extensions>
27 </Filter>
28 <%endif%>
29 <%endfor%>
30 <%endif%>
31 <Filter Include="Header Files">
32 <UniqueIdentifier>{<%new_guid('Header Files')%>}</UniqueIdentifier>
33 <Extensions><%foreach(ext, extensions(header_files))%><%ext%><%fornotlast(";")%><%endfor%></Extensions>
34 </Filter>
35 <%endif%>
36 <%foreach(custom_types)%>
37 <%if(custom_type->input_files)%>
38 <Filter Include="<%ucw(custom_type)%>">
39 <UniqueIdentifier>{<%new_guid(custom_type)%>}</UniqueIdentifier>
40 <%if(custom_type->inputexts)%>
41 <Extensions><%foreach(custom_type->inputexts)%><%custom_type->inputext%><%fornotlast(";")%><%endfor%></Extensions>
42 <%endif%>
43 </Filter>
44 <%endif%>
45 <%endfor%>
46 <%if(inline_files)%>
47 <%if(grouped_inline_files)%>
48 <%foreach(sort(grouped_inline_files))%>
49 <%if(!compares(grouped_inline_file, default_group))%>
50 <Filter Include="<%grouped_inline_file%>">
51 <UniqueIdentifier>{<%new_guid(grouped_inline_file)%>}</UniqueIdentifier>
52 <Extensions><%foreach(ext, extensions(inline_files))%><%ext%><%fornotlast(";")%><%endfor%></Extensions>
53 </Filter>
54 <%endif%>
55 <%endfor%>
56 <%endif%>
57 <Filter Include="Inline Files">
58 <UniqueIdentifier>{<%new_guid('Inline Files')%>}</UniqueIdentifier>
59 <Extensions><%foreach(ext, extensions(inline_files))%><%ext%><%fornotlast(";")%><%endfor%></Extensions>
60 </Filter>
61 <%endif%>
62 <%if(template_files)%>
63 <%if(grouped_template_files)%>
64 <%foreach(sort(grouped_template_files))%>
65 <%if(!compares(grouped_template_file, default_group))%>
66 <Filter Include="<%grouped_template_file%>">
67 <UniqueIdentifier>{<%new_guid(grouped_template_file)%>}</UniqueIdentifier>
68 </Filter>
69 <%endif%>
70 <%endfor%>
71 <%endif%>
72 <Filter Include="Template Files">
73 <UniqueIdentifier>{<%new_guid('Template Files')%>}</UniqueIdentifier>
74 </Filter>
75 <%endif%>
76 <%if(documentation_files)%>
77 <%if(grouped_documentation_files)%>
78 <%foreach(sort(grouped_documentation_files))%>
79 <%if(!compares(grouped_documentation_file, default_group))%>
80 <Filter Include="<%grouped_documentation_file%>">
81 <UniqueIdentifier>{<%new_guid(grouped_documentation_file)%>}</UniqueIdentifier>
82 </Filter>
83 <%endif%>
84 <%endfor%>
85 <%endif%>
86 <Filter Include="Documentation">
87 <UniqueIdentifier>{<%new_guid('Documentation')%>}</UniqueIdentifier>
88 </Filter>
89 <%endif%>
90 <%if(resource_files && !type_is_static)%>
91 <%if(grouped_resource_files)%>
92 <%foreach(sort(grouped_resource_files))%>
93 <%if(!compares(grouped_resource_file, default_group))%>
94 <Filter Include="<%grouped_resource_file%>">
95 <UniqueIdentifier>{<%new_guid(grouped_resource_file)%>}</UniqueIdentifier>
96 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe</Extensions>
97 </Filter>
98 <%endif%>
99 <%endfor%>
100 <%endif%>
101 <Filter Include="Resource Files">
102 <UniqueIdentifier>{<%new_guid('Resource Files')%>}</UniqueIdentifier>
103 <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;cnt;rtf;gif;jpg;jpeg;jpe</Extensions>
104 </Filter>
105 <%endif%>
106 </ItemGroup>
107 <%if(exename || sharedname || staticname)%>
108 <%if(source_files)%>
109 <ItemGroup>
110 <%if(grouped_source_files)%>
111 <%foreach(sort(grouped_source_files))%>
112 <%foreach(grouped_source_file->files)%>
113 <ClCompile Include="<%grouped_source_file->file%>">
114 <Filter><%grouped_source_file%></Filter>
115 </ClCompile>
116 <%endfor%>
117 <%endfor%>
118 <%else%>
119 <%foreach(source_files)%>
120 <%if(ends_with(source_file,\.def))%>
121 <None Include="<%source_File%>">
122 <Filter>Source Files</Filter>
123 </None>
124 <%else%>
125 <%if(ends_with(source_file,\.[io]dl))%>
126 <Midl Include="<%source_File%>">
127 <Filter>Source Files</Filter>
128 </Midl>
129 <%else%>
130 <ClCompile Include="<%source_file%>">
131 <Filter>Source Files</Filter>
132 </ClCompile>
133 <%endif%>
134 <%endif%>
135 <%endfor%>
136 <%endif%>
137 </ItemGroup>
138 <%endif%>
139 <%endif%>
140 <%if(header_files)%>
141 <ItemGroup>
142 <%if(grouped_header_files)%>
143 <%foreach(sort(grouped_header_files))%>
144 <%foreach(grouped_header_file->files)%>
145 <ClInclude Include="<%grouped_header_file->file%>">
146 <Filter><%grouped_header_file%></Filter>
147 </ClInclude>
148 <%endfor%>
149 <%endfor%>
150 <%else%>
151 <%foreach(header_files)%>
152 <ClInclude Include="<%header_file%>">
153 <Filter>Header Files</Filter>
154 </ClInclude>
155 <%endfor%>
156 <%endif%>
157 </ItemGroup>
158 <%endif%>
159 <%foreach(custom_types)%>
160 <%if(custom_type->input_files)%>
161 <ItemGroup>
162 <%foreach(custom_type->input_files)%>
163 <%if(custom_type->input_file->output_files)%>
164 <CustomBuild Include="<%custom_type->input_file%>">
165 <Filter><%ucw(custom_type)%></Filter>
166 </CustomBuild>
167 <%else%>
168 <None Include="<%custom_type->input_file%>">
169 <Filter><%ucw(custom_type)%></Filter>
170 </None>
171 <%endif%>
172 <%endfor%>
173 </ItemGroup>
174 <%endif%>
175 <%endfor%>
176 <%if(inline_files)%>
177 <ItemGroup>
178 <%if(grouped_inline_files)%>
179 <%foreach(sort(grouped_inline_files))%>
180 <%foreach(grouped_inline_file->files)%>
181 <None Include="<%grouped_inline_file->file%>">
182 <Filter><%grouped_inline_file%></Filter>
183 </None>
184 <%endfor%>
185 <%endfor%>
186 <%else%>
187 <%foreach(inline_files)%>
188 <None Include="<%inline_file%>">
189 <Filter>Inline Files</Filter>
190 </None>
191 <%endfor%>
192 <%endif%>
193 </ItemGroup>
194 <%endif%>
195 <%if(template_files)%>
196 <ItemGroup>
197 <%if(grouped_template_files)%>
198 <%foreach(sort(grouped_template_files))%>
199 <%foreach(grouped_template_file->files)%>
200 <ClCompile Include="<%grouped_template_file->file%>">
201 <Filter><%grouped_template_file%></Filter>
202 </ClCompile>
203 <%endfor%>
204 <%endfor%>
205 <%else%>
206 <%foreach(template_files)%>
207 <ClCompile Include="<%template_file%>">
208 <Filter>Template Files</Filter>
209 </ClCompile>
210 <%endfor%>
211 <%endif%>
212 </ItemGroup>
213 <%endif%>
214 <%if(documentation_files)%>
215 <ItemGroup>
216 <%if(grouped_documentation_files)%>
217 <%foreach(sort(grouped_documentation_files))%>
218 <%foreach(grouped_documentation_file->files)%>
219 <CustomBuild Include="<%grouped_documentation_file->file%>">
220 <Filter><%grouped_documentation_file%></Filter>
221 </CustomBuild>
222 <%endfor%>
223 <%endfor%>
224 <%else%>
225 <%foreach(documentation_files)%>
226 <CustomBuild Include="<%documentation_file%>">
227 <Filter>Documentation</Filter>
228 </CustomBuild>
229 <%endfor%>
230 <%endif%>
231 </ItemGroup>
232 <%endif%>
233 <%if(resource_files && !type_is_static)%>
234 <ItemGroup>
235 <%if(grouped_resource_files)%>
236 <%foreach(sort(grouped_resource_files))%>
237 <%foreach(grouped_resource_file->files)%>
238 <ResourceCompile Include="<%grouped_resource_file->file%>">
239 <Filter><%grouped_resource_file%></Filter>
240 </ResourceCompile>
241 <%endfor%>
242 <%endfor%>
243 <%else%>
244 <%foreach(resource_files)%>
245 <ResourceCompile Include="<%resource_file%>">
246 <Filter>Resource Files</Filter>
247 </ResourceCompile>
248 <%endfor%>
249 <%endif%>
250 </ItemGroup>
251 <%endif%>
252 </Project>