Skip to content

[EFM32] Fix exporter to pull root path #2672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tools/export/simplicityv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def generate(self):
## Strip main folder from include paths because ssproj is not capable of handling it
if '.' in ctx['include_paths']:
ctx['include_paths'].remove('.')
ctx['include_root'] = True

'''
Suppress print statements
Expand Down
9 changes: 9 additions & 0 deletions tools/export/simplicityv3_slsproj.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@
{%- for file in main_files -%}
<file name = "{{ file }}" uri = "file:./{{ file }}" partCompatibility = ""/>
{%- endfor %}
{%- if include_root %}
<file name = "mbed_config.h" uri = "file:./mbed_config.h" partCompatibility = ""/>
{%- endif %}

<sourceFolder></sourceFolder>
<model:property key="cppProjectCommon.languageId" value="org.eclipse.cdt.core.g++"/>
<model:property key="projectCommon.buildArtifactType" value="EXE"/>
<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">
<model:description></model:description>
{# Add all include paths to the managed build compiler, paths relative to project #}
{%- if include_root %}
<includePath languageCompatibility="c cpp" uri="."/>
{%- endif %}
{%- for path in include_paths %}
<includePath languageCompatibility="c cpp" uri="studio:/project/{{ path }}/"/>
{%- endfor %}
Expand Down Expand Up @@ -83,6 +89,9 @@
<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">
<model:description></model:description>
{# Add all include paths to the managed build compiler, paths relative to project #}
{%- if include_root %}
<includePath languageCompatibility="c cpp" uri="."/>
{%- endif %}
{%- for path in include_paths %}
<includePath languageCompatibility="c cpp" uri="studio:/project/{{ path }}/"/>
{%- endfor %}
Expand Down