Merge pull request #20 from jwillemsen/master
[MPC.git] / templates / cdt6cproject.mpd
blob67adcb80721de8546a18a40792df5c3c94e8c3a1
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?fileVersion 4.0.0?>
3 <cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
4 <storageModule moduleId="org.eclipse.cdt.core.settings">
5 <%foreach(platforms)%>
6 <%foreach(host_platform)%><%comment(there won't be more than one host_platform, but a foreach is used in order to access scoped assignments from the mpt)%>
7 <%foreach(configurations)%>
8 <!-- platform = <%platform%>, nocross = <%nocross%>, host_platform = <%host_platform%>, vars_equal = <%vars_equal(platform, host_platform)%> -->
9 <%if(!nocross || vars_equal(platform, host_platform))%>
10 <cconfiguration id="mpc.generated.config.<%platform%>.<%configuration%>">
11 <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="mpc.generated.config.<%platform%>.<%configuration%>" moduleId="org.eclipse.cdt.core.settings" name="<%platform%>-<%configuration%>">
12 <externalSettings/><%comment(looks like for libraries there are externalsettings)%>
13 <extensions>
14 <%foreach(binary_parsers)%>
15 <extension id="<%binary_parser%>" point="org.eclipse.cdt.core.BinaryParser"/>
16 <%endfor%>
17 <%foreach(error_parsers additional_error_parsers)%>
18 <extension id="<%error_parser%>" point="org.eclipse.cdt.core.ErrorParser"/>
19 <%endfor%>
20 </extensions>
21 </storageModule>
22 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
23 <configuration
24 artifactExtension="<%if(exename && exe_ext_nodot)%><%exe_ext_nodot%><%else%><%if(type_is_dynamic && dll_ext_nodot)%><%dll_ext_nodot%><%else%><%if(type_is_static && lib_ext_nodot)%><%lib_ext_nodot%><%endif%><%endif%><%endif%>"
25 artifactName="<%if(exename)%><%exename%><%else%><%if(type_is_dynamic)%><%sharedname%><%else%><%if(type_is_static)%><%staticname%><%endif%><%endif%><%if(use_lib_modifier)%><%lib_modifier%><%endif%><%endif%>"
26 description=""
27 id="mpc.generated.config.<%platform%>.<%configuration%>"
28 name="<%platform%>-<%configuration%>"
29 <%if(custom_only)%>
30 parent="org.eclipse.cdt.build.core.emptycfg" buildProperties=""
31 <%else%>
32 buildArtefactType="<%build_artefact_type%>"
33 buildProperties="org.eclipse.cdt.build.core.buildArtefactType=<%build_artefact_type%>,org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.<%configuration%>"
34 cleanCommand="<%delete("rm -rf")%>"
35 parent="<%configuration_parent_root%>.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>"
36 prebuildStep="<%eval(prebuild)%>"
37 <%endif%>
38 postbuildStep="<%shell%> ..<%slash%><%create_aux_file(postbuild_, platform, _, configuration, script_ext)%><%script_hdr%>
39 <%if(!custom_only)%>
40 <%if(type_is_dynamic)%>
41 <%setenv%> DESTDIR=<%if(dllout)%><%if(!starts_with(dllout, [/\\\$]))%>..<%slash%>..<%slash%><%endif%><%convert_slashes(translate_vars(dllout))%><%else%><%if(libout)%><%if(!starts_with(libout, [/\\\$]))%>..<%slash%>..<%slash%><%endif%><%convert_slashes(translate_vars(libout))%><%else%>..<%slash%>..<%endif%><%endif%><%slash%><%platform%>-<%configuration%>
42 <%if(mkdir_pre)%><%mkdir_pre%> <%envvar_pre%>DESTDIR<%envvar_post%><%endif%><%mkdir%> <%envvar_pre%>DESTDIR<%envvar_post%>
43 <%cp%> <%lib_prefix%><%sharedname%><%lib_modifier%><%dll_ext%> <%envvar_pre%>DESTDIR<%envvar_post%><%else%>
44 <%if(type_is_static)%>
45 <%setenv%> DESTDIR=<%if(libout)%><%if(!starts_with(libout, [/\\\$]))%>..<%slash%>..<%slash%><%endif%><%convert_slashes(translate_vars(libout))%><%else%>..<%slash%>..<%endif%><%slash%><%platform%>-<%configuration%>
46 <%if(mkdir_pre)%><%mkdir_pre%> <%envvar_pre%>DESTDIR<%envvar_post%><%endif%><%mkdir%> <%envvar_pre%>DESTDIR<%envvar_post%>
47 <%cp%> <%lib_prefix%><%staticname%><%lib_modifier%><%lib_ext%> <%envvar_pre%>DESTDIR<%envvar_post%><%else%>
48 <%if(exename)%>
49 <%setenv%> DESTDIR=<%if(exeout)%><%if(!starts_with(exeout, [/\\\$]))%>..<%slash%>..<%slash%><%endif%><%convert_slashes(translate_vars(exeout))%><%else%>..<%slash%>..<%endif%><%endif%>
50 <%cp%> <%exename%><%exe_ext%> <%envvar_pre%>DESTDIR<%envvar_post%>
51 <%endif%><%endif%>
52 <%endif%>
53 <%if(postbuild)%><%eval(postbuild)%><%endif%>
54 <%end_aux_file%>"
56 <folderInfo id="mpc.generated.config.<%platform%>.<%configuration%>"<%comment(same id as configuration element id)%> name="/" resourcePath="">
57 <toolChain
58 id="mpc.generated.toolchain.<%platform%>.<%configuration%>"
59 name="<%platform%> Default"
60 nonInternalBuilderId="<%toolchain_internal_builder_root%>.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>"<%comment(nonInternalBuildId not in native generation on win32)%>
61 superClass="<%toolchain_superclass_root%>.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>">
62 <targetPlatform
63 id="mpc.generated.target.platform.<%platform%>.<%project_type%>.<%configuration%>"
64 name="<%configuration%> Platform"
65 superClass="<%targetplatform_superclass%>.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>"/>
66 <builder
67 id="org.eclipse.cdt.internal.builder.<%project_name%>"
68 autoBuildTarget="all"<%comment(these targets don't appear in native generation on win32)%>
69 cleanBuildTarget="clean"
70 incrementalBuildTarget="all"
71 keepEnvironmentInBuildfile="false"
72 <%if(custom_only)%>
73 superClass="org.eclipse.cdt.build.core.settings.default.builder"
74 name="Gnu Make Builder.<%platform%>.<%configuration%>"
75 buildPath="${workspace_loc:/<%project_name%>}/.."
76 arguments="-f <%project_name%>.mk"
77 <%else%>
78 buildPath="${workspace_loc:/<%project_name%>/<%configuration%>}"<%comment(buildpath may need to include platform as well in the case of cross-compiles)%>
79 managedBuildOn="true" name="CDT Internal Builder"
80 superClass="org.eclipse.cdt.build.core.internal.builder"
81 <%endif%>
83 <%if(custom_only)%>
84 <tool
85 id="org.eclipse.cdt.build.core.settings.holder.libs.<%platform%>.<%configuration%>"
86 name="holder for library settings"
87 superClass="org.eclipse.cdt.build.core.settings.holder.libs"
89 <%else%>
90 <tool
91 <%if(ccld)%>
92 command="<%ccld%>"
93 <%else%>
94 <%if(cc)%>
95 command="<%cc%>"
96 <%endif%>
97 <%endif%>
98 id="<%c_linker_tool_superclass_root%>.<%project_type%>.<%configuration%>.1311461244"
99 name="<%tool_name_prefix%> C Linker"
100 superClass="<%c_linker_tool_superclass_root%>.<%project_type%>.<%configuration%>">
101 <%if(type_is_dynamic)%>
102 <option
103 defaultValue="true"
104 id="<%c_linker_dynamiclib_superclass%>.1"
105 name="Shared/Dynamic"
106 superClass="<%c_linker_dynamiclib_superclass%>" valueType="boolean"
108 <%endif%>
109 </tool>
110 <tool
111 <%if(cxxld)%>
112 command="<%cxxld%>"
113 <%else%>
114 <%if(cxx)%>
115 command="<%cxx%>"
116 <%endif%>
117 <%endif%>
118 id="<%cpp_linker_tool_superclass_root%>.<%project_type%>.<%configuration%>.335515345"
119 name="<%tool_name_prefix%> C++ Linker"
120 superClass="<%cpp_linker_tool_superclass_root%>.<%project_type%>.<%configuration%>">
121 <option
122 id="mpc.generated.link.libpaths.1"
123 superClass="<%linker_option_superclass%>.paths"
124 valueType="libPaths">
125 <%foreach(libpaths)%>
126 <listOptionValue builtIn="false" value="<%if(!starts_with(libpath, [/\\\$]))%>../../<%endif%><%translate_vars(libpath, 1)%>"/>
127 <listOptionValue builtIn="false" value="<%if(!starts_with(libpath, [/\\\$]))%>../../<%endif%><%translate_vars(libpath, 1)%>/<%platform%>-<%configuration%>"/>
128 <%endfor%>
129 </option>
130 <option
131 id="mpc.generated.link.option.libs.1"
132 name="Libraries (-l)"
133 superClass="<%linker_option_superclass%>.libs"
134 valueType="libs">
135 <%foreach(libs lit_libs pure_libs platform_libs)%>
136 <listOptionValue builtIn="false" value="<%lib%>"/>
137 <%endfor%>
138 </option>
139 <option
140 id="mpc.generated.linkflags.1"
141 superClass="<%linker_option_superclass%>.flags"
142 value="<%if(use_threads)%> <%threadflags%><%endif%><%if(linkflags)%> <%linkflags%><%endif%><%if(build64bit && linkflags64)%> <%linkflags64%><%endif%>"
143 valueType="string"
145 <%if(type_is_dynamic)%>
146 <option
147 defaultValue="true"
148 id="<%cpp_linker_dynamiclib_superclass%>.1"
149 name="Shared/Dynamic"
150 superClass="<%cpp_linker_dynamiclib_superclass%>"
151 valueType="boolean"
153 <%endif%>
154 <inputType
155 id="cdt.managedbuild.tool.<%if(platform_specializer)%><%platform_specializer%>.<%endif%>cpp.linker.input.415890365"
156 superClass="<%cpp_linker_tool_input_superclass%>">
157 <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
158 <additionalInput kind="additionalinput" paths="$(LIBS)"/>
159 </inputType>
160 <%if(!exename)%>
161 <outputType id="mpc.generated.cpp.linker.output.so.1" outputPrefix="<%lib_prefix%>" superClass="<%outputtype_superclass%>"/>
162 <%endif%>
163 </tool>
164 <tool
165 <%if(as)%>
166 command="<%as%>"
167 <%endif%>
168 id="cdt.managedbuild.tool.gnu.assembler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.897965604"
169 name="GCC Assembler"
170 superClass="cdt.managedbuild.tool.gnu.assembler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>">
171 <inputType
172 id="cdt.managedbuild.tool.gnu.assembler.input.706221217"
173 superClass="cdt.managedbuild.tool.gnu.assembler.input"
175 </tool>
176 <tool
177 <%if(ar)%>
178 command="<%ar%>"
179 <%endif%>
180 id="cdt.managedbuild.tool.gnu.archiver.<%if(platform_specializer)%><%platform_specializer%>.<%endif%>base.134329701"
181 name="GCC Archiver"
182 superClass="cdt.managedbuild.tool.gnu.archiver.<%if(platform_specializer)%><%platform_specializer%>.<%endif%>base"
184 <tool
185 <%if(cxx)%>
186 command="<%cxx%>"
187 <%endif%>
188 id="cdt.managedbuild.tool.gnu.cpp.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.1373363011"
189 name="GCC C++ Compiler"
190 superClass="cdt.managedbuild.tool.gnu.cpp.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>">
191 <option
192 id="mpc.generated.cc.include.paths.1"
193 superClass="<%cpp_compiler_option_superclass%>.include.paths"
194 valueType="includePath">
195 <%foreach(includes)%>
196 <listOptionValue builtIn="false" value="<%if(!starts_with(include, [/\\\$]))%>../../<%endif%><%translate_vars(include, 1)%>"/>
197 <%endfor%>
198 </option>
199 <option
200 id="gnu.cpp.compiler.option.other.other.375481234"
201 superClass="gnu.cpp.compiler.option.other.other"
202 value="-c <%comment(here's where we can put in all the extra compiler flags)%><%cxxflags%><%if(use_threads)%> <%threadflags%><%endif%><%if(dll_ext && pic)%> <%pic%><%endif%>"
203 valueType="string"
205 <option
206 id="gnu.cpp.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.optimization.level.886842330"
207 name="Optimization Level"
208 superClass="gnu.cpp.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.optimization.level"
209 value="gnu.cpp.compiler.optimization.level.<%optimization_level%>"
210 valueType="enumerated"
212 <option
213 id="gnu.cpp.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.debugging.level.63360527"
214 name="Debug Level"
215 superClass="gnu.cpp.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.debugging.level"
216 value="gnu.cpp.compiler.debugging.level.<%debugging_level%>"
217 valueType="enumerated"
219 <option
220 id="gnu.cpp.compiler.option.preprocessor.def.1310953196"
221 superClass="gnu.cpp.compiler.option.preprocessor.def"
222 valueType="definedSymbols">
223 <%foreach(defines common_defines cpu_defines platform_defines macros)%>
224 <listOptionValue builtIn="false" value="<%define%>"/>
225 <%endfor%>
226 <%if(type_is_dynamic)%>
227 <%foreach(dynamicflags)%>
228 <listOptionValue builtIn="false" value="<%dynamicflag%>"/>
229 <%endfor%>
230 <%endif%>
231 <%if(need_static_flags)%>
232 <%foreach(staticflags)%>
233 <listOptionValue builtIn="false" value="<%staticflag%>"/>
234 <%endfor%>
235 <%endif%>
236 </option>
237 <!--
238 <option id="gnu.cpp.compiler.option.preprocessor.undef.1618336754" superClass="gnu.cpp.compiler.option.preprocessor.undef" valueType="undefDefinedSymbols">
239 <listOptionValue builtIn="false" value="blah"/>
240 </option>
242 <inputType
243 id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1095450641"
244 superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"
246 </tool>
247 <tool
248 <%if(cc)%>
249 command="<%cc%>"
250 <%endif%>
251 id="cdt.managedbuild.tool.gnu.c.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.1634417374"
252 name="GCC C Compiler"
253 superClass="cdt.managedbuild.tool.gnu.c.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>">
254 <option
255 id="mpc.generated.c.compiler.option.include.paths.1"
256 superClass="<%c_compiler_option_superclass%>.include.paths"
257 valueType="includePath">
258 <%foreach(includes)%>
259 <listOptionValue builtIn="false" value="<%if(!starts_with(include, [/\\\$]))%>../../<%endif%><%translate_vars(include, 1)%>"/>
260 <%endfor%>
261 </option>
262 <option
263 id="gnu.c.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.optimization.level.1822406061"
264 name="Optimization Level"
265 superClass="gnu.c.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.optimization.level"
266 value="gnu.c.optimization.level.<%optimization_level%>"
267 valueType="enumerated"
269 <option
270 id="gnu.c.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.debugging.level.1766929"
271 name="Debug Level"
272 superClass="gnu.c.compiler.<%if(platform_specializer)%><%platform_specializer%>.<%endif%><%project_type%>.<%configuration%>.option.debugging.level"
273 value="gnu.c.debugging.level.<%debugging_level%>"
274 valueType="enumerated"
276 <option
277 id="gnu.c.compiler.miscoptions.<%platform%>.<%configuration%>"
278 superClass="gnu.c.compiler.option.misc.other"
279 value="-c -fmessage-length=0 <%ccflags%>"
280 valueType="string"
282 <option
283 id="gnu.c.compiler.option.preprocessor.def.<%platform%>.<%configuration%>"
284 superClass="gnu.c.compiler.option.preprocessor.def.symbols"
285 valueType="definedSymbols">
286 <%foreach(defines common_defines cpu_defines platform_defines macros)%>
287 <listOptionValue builtIn="false" value="<%define%>"/>
288 <%endfor%>
289 <%if(type_is_dynamic)%>
290 <%foreach(dynamicflags)%>
291 <listOptionValue builtIn="false" value="<%dynamicflag%>"/>
292 <%endfor%>
293 <%endif%>
294 <%if(need_static_flags)%>
295 <%foreach(staticflags)%>
296 <listOptionValue builtIn="false" value="<%staticflag%>"/>
297 <%endfor%>
298 <%endif%>
299 </option>
300 <inputType
301 id="cdt.managedbuild.tool.gnu.c.compiler.input.1596535093"
302 superClass="cdt.managedbuild.tool.gnu.c.compiler.input"
304 </tool>
305 <%endif%><%comment(custom_only)%>
306 </toolChain>
307 </folderInfo>
308 <%if(custom_only)%>
309 <%create_aux_file(../, project_name, .mk)%>.PHONY: all clean
310 all:
312 clean:
313 <%rm%> <%if(starts_with(shell, cmd))%>$(subst /,\,$(GENERATED))<%else%>$(GENERATED)<%endif%><%if(starts_with(shell, cmd))%> 2>NUL<%endif%>
315 SPACE := $(empty_variable) $(empty_variable)
317 <%foreach(custom_types)%><%if(custom_type->libpath)%>
318 <%libenv%> := $(<%libenv%>)<%pathsep%><%custom_type->libpath%>
319 <%endif%><%foreach(custom_type->input_files)%><%if(custom_type->input_file->output_files)%>
320 GENERATED +=<%foreach(custom_type->input_file->output_files)%> <%custom_type->input_file->output_file%><%endfor%>
321 <%foreach(custom_type->input_file->output_files)%><%fornotfirst(" ")%><%if(flag_overrides(custom_type->input_file, gendir))%><%if(!compares(flag_overrides(custom_type->input_file, gendir),.))%><%flag_overrides(custom_type->input_file, gendir)%>/<%endif%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%endfor%>: <%custom_type->input_file%><%foreach(custom_type->input_file->dependencies)%> <%if(contains(custom_type->input_file->dependencie, [\s\$]))%>$(subst $(SPACE),\$(SPACE),<%custom_type->input_file->dependencie%>)<%else%><%custom_type->input_file->dependencie%><%endif%><%endfor%><%if(flag_overrides(custom_type->input_file, dependent))%><%foreach(dep, flag_overrides(custom_type->input_file, dependent))%> <%if(contains(dep, [\s\$]))%>$(subst $(SPACE),\$(SPACE),<%dep%>)<%else%><%dep%><%endif%><%if(!has_extension(dep))%><%exe%><%endif%><%endfor%><%else%><%foreach(custom_type->dependent)%> <%if(contains(custom_type->dependent, [\s\$]))%>$(subst $(SPACE),\$(SPACE),<%custom_type->dependent%>)<%else%><%custom_type->dependent%><%endif%><%if(!has_extension(custom_type->dependent))%><%exe%><%endif%><%endfor%><%endif%>
322 <%if(flag_overrides(custom_type->input_file, gendir))%>
323 <%if(!compares(flag_overrides(custom_type->input_file, gendir),.))%>
324 <%if(mkdir_pre)%><%mkdir_pre%> <%flag_overrides(custom_type->input_file, gendir)%> <%endif%><%mkdir%> <%flag_overrides(custom_type->input_file, gendir)%>
325 <%endif%>
326 <%endif%>
327 <%if(flag_overrides(custom_type->input_file, command))%><%flag_overrides(custom_type->input_file, command)%><%else%><%custom_type->command%><%endif%> <%if(flag_overrides(custom_type->input_file, commandflags))%><%flag_overrides(custom_type->input_file, commandflags)%><%else%><%custom_type->commandflags%><%endif%> <%if(custom_type->output_option)%><%custom_type->input_file%> <%custom_type->output_option%> $@<%else%><%custom_type->input_file%><%endif%>
328 <%if(flag_overrides(custom_type->input_file, postcommand))%>
329 <%flag_overrides(custom_type->input_file, postcommand)%>
330 <%else%>
331 <%if(custom_type->postcommand)%>
332 <%custom_type->postcommand%>
333 <%endif%>
334 <%endif%>
335 <%if(pch_header)%>
336 <%if(custom_type->pch_postrule)%>
337 <%foreach(custom_type->input_file->source_output_files)%>
338 @echo <%quote_echo%>#include "<%pch_header%>"<%quote_echo%> > <%makefile_tmpfile%> && <%cat%> "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>" >> <%makefile_tmpfile%> && <%mv%> <%makefile_tmpfile%> "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>"
339 <%endfor%>
340 <%endif%>
341 <%endif%>
342 <%endif%><%comment(has some output files)%><%endfor%><%comment(input_files)%><%endfor%><%comment(custom_types)%>
343 all: $(GENERATED)
344 <%end_aux_file%>
345 <%else%><%comment(not custom_only)%>
346 <%foreach(custom_types)%>
347 <%foreach(custom_type->input_files)%>
348 <%if(custom_type->input_file->output_files)%>
349 <fileInfo
350 id="mpc.generated.custfile.<%platform%>.<%configuration%>.<%custom_type%>.<%normalize(custom_type->input_file)%>"
351 name="<%custom_type->input_file%>"
352 rcbsApplicability="override"
353 resourcePath="<%custom_type->input_file%>"
354 toolsToInvoke="org.eclipse.cdt.managedbuilder.ui.rcbs.467489715">
355 <tool
356 announcement="Invoking custom build step for type <%custom_type%> on <%custom_type->input_file%>"
357 command="<%shell%> ..<%slash%><%create_aux_file(platform, _, configuration, _, custom_type, _, normalize(custom_type->input_file), script_ext)%><%script_hdr%>
358 <%comment(LIBPATH)%><%if(custom_type->libpath)%><%setenv%> <%libenv%>=<%envvar_pre%><%libenv%><%envvar_post%><%pathsep%><%translate_vars(custom_type->libpath)%>
359 <%endif%>cd ..<%slash%>..
360 <%comment(GENDIR)%><%if(flag_overrides(custom_type->input_file, gendir))%><%if(mkdir_pre)%><%mkdir_pre%> <%flag_overrides(custom_type->input_file, gendir)%> <%endif%><%mkdir%> <%flag_overrides(custom_type->input_file, gendir)%>
361 <%endif%><%if(custom_type->input_file->commands)%><%comment(GENDIR-MULTI-CUSTOM)%><%foreach(custom_type->input_file->commands)%><%if(custom_type->input_file->command->gdir)%><%if(mkdir_pre)%><%mkdir_pre%> <%custom_type->input_file->command->gdir%> <%endif%><%mkdir%> <%custom_type->input_file->command->gdir%>
362 <%endif%><%endfor%><%endif%><%if(custom_type->input_file->commands)%><%comment(MULTI-CUSTOM)%><%foreach(custom_type->input_file->commands)%><%translate_vars(custom_type->input_file->command)%> <%translate_vars(custom_type->input_file->command->flags)%> "<%custom_type->input_file%>"<%if(custom_type->input_file->command->outopt)%> <%custom_type->input_file->command->outopt%> "<%custom_type->input_file->command->outfile%>"<%endif%><%fornotlast(" && ")%><%endfor%><%else%><%comment(COMMAND)%><%if(flag_overrides(custom_type->input_file, command))%><%translate_vars(flag_overrides(custom_type->input_file, command))%><%else%><%translate_vars(custom_type->command)%><%endif%> <%comment(COMMANDFLAGS)%><%if(flag_overrides(custom_type->input_file, commandflags))%><%translate_vars(flag_overrides(custom_type->input_file, commandflags))%><%else%><%if(custom_type->commandflags)%><%translate_vars(custom_type->commandflags)%><%endif%><%endif%> <%if(custom_type->output_option)%><%comment(with OUTPUT_OPTION)%>"<%custom_type->input_file%>" <%custom_type->output_option%><%foreach(custom_type->input_file->output_files)%> "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%>"<%endfor%><%else%><%comment(without OUTPUT_OPTION)%>"<%custom_type->input_file%>"<%endif%><%endif%><%comment(POSTCOMMAND)%><%if(flag_overrides(custom_type->input_file, postcommand))%> && <%flag_overrides(custom_type->input_file, postcommand)%><%else%><%if(custom_type->postcommand)%> && <%custom_type->postcommand%><%endif%><%endif%><%comment(PCH_POSTRULE)%><%if(pch_header)%><%if(custom_type->pch_postrule)%><%foreach(custom_type->input_file->source_output_files)%> && echo <%quote_echo%>#include "<%pch_header%>"<%quote_echo%> > <%script_tmpfile%> && <%cat%> "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>" >> <%script_tmpfile%> && <%mv%> <%script_tmpfile%> "<%if(flag_overrides(custom_type->input_file, gendir))%><%flag_overrides(custom_type->input_file, gendir)%><%slash%><%basename(custom_type->input_file->source_output_file)%><%else%><%custom_type->input_file->source_output_file%><%endif%>"<%endfor%><%endif%><%endif%><%comment(LINK_SRCDIR_TO_OUTDIR)%><%if(custom_type->input_file->output_files)%> && cd cdt_<%project_name%><%slash%><%platform%>-<%configuration%><%endif%><%foreach(custom_type->input_file->output_files)%> && <%ln%> ..<%slash%>..<%slash%><%if(dirname(custom_type->input_file->output_file))%><%dirname(custom_type->input_file->output_file)%><%slash%><%endif%><%basename(custom_type->input_file->output_file)%> .<%endfor%>
363 <%end_aux_file%>"
364 customBuildStep="true"
365 id="mpc.generated.rcbs.<%platform%>.<%configuration%>.<%custom_type%>.<%normalize(custom_type->input_file)%>"
366 name="Resource Custom Build Step for <%custom_type%> <%normalize(custom_type->input_file)%> (<%configuration%>)">
367 <inputType
368 id="mpc.generated.rcbsinput.<%platform%>.<%configuration%>.<%custom_type%>.<%normalize(custom_type->input_file)%>"
369 name="Resource Custom Build Step Input Type">
370 <additionalInput
371 kind="additionalinputdependency"
372 <%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent || custom_type->input_file->dependencies || (!need_staticflags && (flag_overrides(custom_type->input_file, dependent_libs) || custom_type->dependent_libs)))%>
373 paths="<%if(flag_overrides(custom_type->input_file, dependent))%><%foreach(dep, flag_overrides(custom_type->input_file, dependent))%><%translate_vars(dep, 1)%><%if(!has_extension(dep))%><%exe_ext%><%endif%><%fornotlast(";")%><%endfor%><%else%><%if(custom_type->dependent)%><%foreach(custom_type->dependent)%><%translate_vars(custom_type->dependent, 1)%><%if(!has_extension(custom_type->dependent))%><%exe_ext%><%endif%><%fornotlast(";")%><%endfor%><%endif%><%endif%><%foreach(custom_type->input_file->dependencies)%><%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent)%>;<%else%><%fornotfirst(";")%><%endif%><%translate_vars(custom_type->input_file->dependencie, 1)%><%endfor%><%if(!need_staticflags)%><%if(flag_overrides(custom_type->input_file, dependent_libs))%><%foreach(dep_lib, flag_overrides(custom_type->input_file, dependent_libs))%><%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent || custom_type->input_file->dependencies)%>;<%else%><%fornotfirst(";")%><%endif%><%translate_vars(dirname(dep_lib), 1)%>/<%lib_prefix%><%translate_vars(basename(dep_lib), 1)%><%lib_modifier%><%dll_ext%><%endfor%><%else%><%if(custom_type->dependent_libs)%><%foreach(custom_type->dependent_libs)%><%if(flag_overrides(custom_type->input_file, dependent) || custom_type->dependent || custom_type->input_file->dependencies)%>;<%else%><%fornotfirst(";")%><%endif%><%translate_vars(dirname(custom_type->dependent_lib), 1)%>/<%lib_prefix%><%translate_vars(basename(custom_type->dependent_lib), 1)%><%lib_modifier%><%dll_ext%><%endfor%><%endif%><%endif%><%endif%>"
374 <%endif%>
376 </inputType>
377 <outputType
378 id="mpc.generated.rcbsoutput.<%platform%>.<%configuration%>.<%custom_type%>.<%normalize(custom_type->input_file)%>"
379 name="Resource Custom Build Step Output Type"
380 outputNames="<%foreach(custom_type->input_file->output_files)%><%if(flag_overrides(custom_type->input_file, gendir))%><%basename(custom_type->input_file->output_file)%><%else%><%custom_type->input_file->output_file%><%endif%><%fornotlast(";")%><%endfor%>"
382 </tool>
383 </fileInfo>
384 <%endif%><%comment(generates any output)%><%endfor%><%comment(input file)%><%endfor%><%comment(custom type)%>
385 <sourceEntries>
386 <%comment(we may need to change the source_output_files to just output_files below to align it with what's used above)%>
387 <entry excluding="<%foreach(template_files)%><%template_file%>|<%endfor%><%foreach(custom_types)%><%foreach(custom_type->input_files)%><%foreach(custom_type->input_file->source_output_files)%><%custom_type->input_file->source_output_file%>|<%endfor%><%endfor%><%endfor%>" flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name=""/>
388 </sourceEntries>
389 <%endif%><%comment(!custom_only)%>
390 </configuration>
391 </storageModule>
392 <%foreach(additional_storage_modules)%>
393 <storageModule moduleId="<%additional_storage_module%>"/>
394 <%endfor%>
395 <storageModule moduleId="scannerConfiguration">
396 <!-- It's not clear what this section does, so it's not clear if it's necessary. In fact, experience suggests that CDT seems to fill in the blanks properly for the platform if it's empty. -->
397 </storageModule>
398 <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
399 </cconfiguration>
400 <%endif%>
401 <%endfor%><%comment(configurations)%>
402 <%endfor%><%comment(host_platform)%>
403 <%endfor%><%comment(platforms)%>
404 </storageModule>
405 <storageModule moduleId="cdtBuildSystem" version="4.0.0">
406 <%foreach(platforms)%>
407 <project
408 id="<%project_name%>.<%project_element_type_id%>.1"
409 name="<%project_type_name%>"
410 projectType="<%project_element_type_id%>.<%project_type%>"/>
411 <%endfor%>
412 </storageModule>
413 </cproject>