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