Clone of official tools

Committer:
screamer
Date:
Thu Jul 14 20:21:19 2016 +0100
Revision:
13:ab47a20b66f0
Parent:
0:66f3b5499f7f
Child:
31:8ea194f6145b
Apply latest tools

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:66f3b5499f7f 1 <?xml version="1.0" encoding="UTF-8"?>
screamer 0:66f3b5499f7f 2 <project xmlns:model="http://www.silabs.com/sls/IDE.ecore" name="{{ name }}" kitCompatibility="{{ kit }}"
screamer 0:66f3b5499f7f 3 partCompatibility="{{ part }}"
screamer 0:66f3b5499f7f 4 toolchainCompatibility="com.silabs.ide.si32.gcc:4.8.3.20131129"
screamer 0:66f3b5499f7f 5 sdkCompatibility="com.silabs.sdk.si32.efm32"
screamer 0:66f3b5499f7f 6 propertyScope="project"
screamer 0:66f3b5499f7f 7 contentRoot=".">
screamer 0:66f3b5499f7f 8 {# Hierarchically include all folders into the project #}
screamer 0:66f3b5499f7f 9 {%- for child in recursiveFolders.children recursive %}
screamer 0:66f3b5499f7f 10 <folder name="{{ child.name }}" uri="{{ child.name }}" includeAllFiles="true" includeAllFolders="true">
screamer 0:66f3b5499f7f 11 {%- if child.children -%}
screamer 0:66f3b5499f7f 12 {{ loop(child.children) }}
screamer 0:66f3b5499f7f 13 {%- endif %}
screamer 0:66f3b5499f7f 14 </folder>
screamer 0:66f3b5499f7f 15 {%- endfor %}
screamer 0:66f3b5499f7f 16
screamer 0:66f3b5499f7f 17 {# Include all source files not belonging to a subfolder separately #}
screamer 0:66f3b5499f7f 18 {%- for file in main_files -%}
screamer 0:66f3b5499f7f 19 <file name = "{{ file }}" uri = "file:./{{ file }}" partCompatibility = ""/>
screamer 0:66f3b5499f7f 20 {%- endfor %}
screamer 0:66f3b5499f7f 21
screamer 0:66f3b5499f7f 22 <sourceFolder></sourceFolder>
screamer 0:66f3b5499f7f 23 <model:property key="cppProjectCommon.languageId" value="org.eclipse.cdt.core.g++"/>
screamer 0:66f3b5499f7f 24 <model:property key="projectCommon.buildArtifactType" value="EXE"/>
screamer 0:66f3b5499f7f 25 <configuration name="com.silabs.ide.si32.gcc.debug#com.silabs.ide.si32.gcc:4.8.3.20131129" label="GNU ARM v4.8.3 - Debug" stockConfigCompatibility="com.silabs.ide.toolchain.core.debug">
screamer 0:66f3b5499f7f 26 <model:description></model:description>
screamer 0:66f3b5499f7f 27 {# Add all include paths to the managed build compiler, paths relative to project #}
screamer 0:66f3b5499f7f 28 {%- for path in include_paths %}
screamer 0:66f3b5499f7f 29 <includePath languageCompatibility="c cpp" uri="studio:/project/{{ path }}/"/>
screamer 0:66f3b5499f7f 30 {%- endfor %}
screamer 0:66f3b5499f7f 31 {# Add all mbed-defined #Defines for the preprocessor #}
screamer 0:66f3b5499f7f 32 {%- for define, value in defines %}
screamer 0:66f3b5499f7f 33 <macroDefinition languageCompatibility="c cpp" name="{{ define }}" value="{{ value }}"/>
screamer 0:66f3b5499f7f 34 {%- endfor %}
screamer 0:66f3b5499f7f 35 {# Include all standard libraries that mbed requires #}
screamer 0:66f3b5499f7f 36 <macroDefinition languageCompatibility="c cpp" name="DEBUG" value="1"/>
screamer 0:66f3b5499f7f 37 <libraryFile languageCompatibility="c" name="stdc++"/>
screamer 0:66f3b5499f7f 38 <libraryFile languageCompatibility="c" name="supc++"/>
screamer 0:66f3b5499f7f 39 <libraryFile languageCompatibility="c" name="m"/>
screamer 0:66f3b5499f7f 40 <libraryFile languageCompatibility="c" name="nosys"/>
screamer 0:66f3b5499f7f 41 <libraryFile languageCompatibility="c" name="c"/>
screamer 0:66f3b5499f7f 42 <libraryFile languageCompatibility="c" name="gcc"/>
screamer 0:66f3b5499f7f 43 {# Include exported libraries #}
screamer 0:66f3b5499f7f 44 {%- for library in libraries %}
screamer 0:66f3b5499f7f 45 <libraryFile languageCompatibility="c cpp" name="{{ library }}"/>
screamer 0:66f3b5499f7f 46 {%- endfor %}
screamer 0:66f3b5499f7f 47 {# Add library search paths #}
screamer 0:66f3b5499f7f 48 {%- for path in library_paths %}
screamer 0:66f3b5499f7f 49 <libraryPath languageCompatibility="c cpp" uri="studio:/project/{{ path }}/"/>
screamer 0:66f3b5499f7f 50 {%- endfor %}
screamer 0:66f3b5499f7f 51 {# Add in separate object files if needed #}
screamer 0:66f3b5499f7f 52 {%- if object_files %}
screamer 0:66f3b5499f7f 53 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="gnu.cpp.link.option.userobjs" value="
screamer 0:66f3b5499f7f 54 {%- for file in object_files -%}
screamer 0:66f3b5499f7f 55 ${workspace_loc:/${ProjName}/{{ file }}}{% if not loop.last %} {% endif %}
screamer 0:66f3b5499f7f 56 {%- endfor -%}"/>
screamer 0:66f3b5499f7f 57 {%- endif %}
screamer 0:66f3b5499f7f 58 {# Manually override linker ordering #}
screamer 0:66f3b5499f7f 59 {%- if libraries %}
screamer 0:66f3b5499f7f 60 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.category.ordering.selection" value="
screamer 0:66f3b5499f7f 61 {%- if object_files -%}
screamer 0:66f3b5499f7f 62 {%- for file in object_files -%}
screamer 0:66f3b5499f7f 63 ${workspace_loc:/${ProjName}/{{ file }}};
screamer 0:66f3b5499f7f 64 {%- endfor -%}
screamer 0:66f3b5499f7f 65 {%- endif -%}
screamer 0:66f3b5499f7f 66 {%- for library in libraries -%}
screamer 0:66f3b5499f7f 67 ${-l{{ library }}}{% if not loop.last %};{% endif %}
screamer 0:66f3b5499f7f 68 {%- endfor -%}"/>
screamer 0:66f3b5499f7f 69 {%- endif %}
screamer 0:66f3b5499f7f 70 {# Define mbed-specific linker file #}
screamer 0:66f3b5499f7f 71 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.usescript" value="true"/>
screamer 0:66f3b5499f7f 72 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.script" value="${workspace_loc:/${ProjName}/{{ linker_script }}}"/>
screamer 0:66f3b5499f7f 73 {# Make sure to wrap main in order to get clock initialization done right #}
screamer 13:ab47a20b66f0 74 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.base" optionId="gnu.c.link.option.ldflags" value="{{ld_flags|join(" ")}}"/>
screamer 13:ab47a20b66f0 75 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="gnu.cpp.link.option.flags" value="{{ld_flags|join(" ")}}"/>
screamer 0:66f3b5499f7f 76 {# For debug build, don't apply optimizations #}
screamer 0:66f3b5499f7f 77 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.compiler.base" optionId="gnu.c.compiler.option.optimization.level" value="gnu.c.optimization.level.none"/>
screamer 13:ab47a20b66f0 78 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.compiler.base" optionId="gnu.c.compiler.option.misc.other" value="-c {{common_flags|join(" ")}} {{c_flags|join(" ")}}"/>
screamer 0:66f3b5499f7f 79 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.base" optionId="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none"/>
screamer 13:ab47a20b66f0 80 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.base" optionId="gnu.cpp.compiler.option.other.other" value="-c {{common_flags|join(" ")}} {{cxx_flags|join(" ")}}"/>
screamer 0:66f3b5499f7f 81 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.base" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.misc.dialect" value="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.misc.dialect.default"/>
screamer 0:66f3b5499f7f 82 </configuration>
screamer 0:66f3b5499f7f 83 <configuration name="com.silabs.ide.si32.gcc.release#com.silabs.ide.si32.gcc:4.8.3.20131129" label="GNU ARM v4.8.3 - Release" stockConfigCompatibility="com.silabs.ide.toolchain.core.release">
screamer 0:66f3b5499f7f 84 <model:description></model:description>
screamer 0:66f3b5499f7f 85 {# Add all include paths to the managed build compiler, paths relative to project #}
screamer 0:66f3b5499f7f 86 {%- for path in include_paths %}
screamer 0:66f3b5499f7f 87 <includePath languageCompatibility="c cpp" uri="studio:/project/{{ path }}/"/>
screamer 0:66f3b5499f7f 88 {%- endfor %}
screamer 0:66f3b5499f7f 89 {# Add all mbed-defined #Defines for the preprocessor #}
screamer 0:66f3b5499f7f 90 {%- for define, value in defines %}
screamer 0:66f3b5499f7f 91 <macroDefinition languageCompatibility="c cpp" name="{{ define }}" value="{{ value }}"/>
screamer 0:66f3b5499f7f 92 {%- endfor %}
screamer 0:66f3b5499f7f 93 {# Include all standard libraries that mbed requires #}
screamer 0:66f3b5499f7f 94 <libraryFile languageCompatibility="c" name="stdc++"/>
screamer 0:66f3b5499f7f 95 <libraryFile languageCompatibility="c" name="supc++"/>
screamer 0:66f3b5499f7f 96 <libraryFile languageCompatibility="c" name="m"/>
screamer 0:66f3b5499f7f 97 <libraryFile languageCompatibility="c" name="nosys"/>
screamer 0:66f3b5499f7f 98 <libraryFile languageCompatibility="c" name="c"/>
screamer 0:66f3b5499f7f 99 <libraryFile languageCompatibility="c" name="gcc"/>
screamer 0:66f3b5499f7f 100 {# Include exported libraries #}
screamer 0:66f3b5499f7f 101 {%- for library in libraries %}
screamer 0:66f3b5499f7f 102 <libraryFile languageCompatibility="c cpp" name="{{ library }}"/>
screamer 0:66f3b5499f7f 103 {%- endfor %}
screamer 0:66f3b5499f7f 104 {# Add library search paths #}
screamer 0:66f3b5499f7f 105 {%- for path in library_paths %}
screamer 0:66f3b5499f7f 106 <libraryPath languageCompatibility="c cpp" uri="studio:/project/{{ path }}/"/>
screamer 0:66f3b5499f7f 107 {%- endfor %}
screamer 0:66f3b5499f7f 108 {# Add in separate object files if needed #}
screamer 0:66f3b5499f7f 109 {%- if object_files %}
screamer 0:66f3b5499f7f 110 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="gnu.cpp.link.option.userobjs" value="
screamer 0:66f3b5499f7f 111 {%- for file in object_files -%}
screamer 0:66f3b5499f7f 112 ${workspace_loc:/${ProjName}/{{ file }}}{% if not loop.last %} {% endif %}
screamer 0:66f3b5499f7f 113 {%- endfor -%}"/>
screamer 0:66f3b5499f7f 114 {%- endif %}
screamer 0:66f3b5499f7f 115 {# Manually override linker ordering #}
screamer 0:66f3b5499f7f 116 {%- if libraries %}
screamer 0:66f3b5499f7f 117 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.category.ordering.selection" value="
screamer 0:66f3b5499f7f 118 {%- if object_files -%}
screamer 0:66f3b5499f7f 119 {%- for file in object_files -%}
screamer 0:66f3b5499f7f 120 ${workspace_loc:/${ProjName}/{{ file }}};
screamer 0:66f3b5499f7f 121 {%- endfor -%}
screamer 0:66f3b5499f7f 122 {%- endif -%}
screamer 0:66f3b5499f7f 123 {%- for library in libraries -%}{% if not loop.last %};{% endif %}
screamer 0:66f3b5499f7f 124 ${-l{{ library }}}
screamer 0:66f3b5499f7f 125 {%- endfor -%}"/>
screamer 0:66f3b5499f7f 126 {%- endif %}
screamer 0:66f3b5499f7f 127 {# Define mbed-specific linker file #}
screamer 0:66f3b5499f7f 128 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.usescript" value="true"/>
screamer 0:66f3b5499f7f 129 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.toolchain.exe" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.script" value="${workspace_loc:/${ProjName}/{{ linker_script }}}"/>
screamer 0:66f3b5499f7f 130 {# Make sure to wrap main in order to get clock initialization done right #}
screamer 13:ab47a20b66f0 131 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.linker.base" optionId="gnu.c.link.option.ldflags" value="{{ld_flags|join(" ")}}"/>
screamer 13:ab47a20b66f0 132 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.linker.base" optionId="gnu.cpp.link.option.flags" value="{{ld_flags|join(" ")}}"/>
screamer 0:66f3b5499f7f 133 {# Use optimize for size on release build #}
screamer 0:66f3b5499f7f 134 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.compiler.base" optionId="gnu.c.compiler.option.optimization.level" value="gnu.c.optimization.level.size"/>
screamer 13:ab47a20b66f0 135 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.c.compiler.base" optionId="gnu.c.compiler.option.misc.other" value="-c {{common_flags|join(" ")}} {{c_flags|join(" ")}}"/>
screamer 0:66f3b5499f7f 136 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.base" optionId="gnu.cpp.compiler.option.optimization.level" value="gnu.cpp.compiler.optimization.level.size"/>
screamer 13:ab47a20b66f0 137 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.base" optionId="gnu.cpp.compiler.option.other.other" value="-c {{common_flags|join(" ")}} {{cxx_flags|join(" ")}}"/>
screamer 0:66f3b5499f7f 138 <toolOption toolId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.base" optionId="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.misc.dialect" value="com.silabs.ide.si32.gcc.cdt.managedbuild.tool.gnu.cpp.compiler.misc.dialect.default"/>
screamer 0:66f3b5499f7f 139 </configuration>
screamer 0:66f3b5499f7f 140 </project>