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