Skip to content

Commit 54101fc

Browse files
committed
Merge pull request #508 from ohagendorf/develop_coide
[Export] CoIDE - include files are in the project
2 parents 9fe239d + ee8d346 commit 54101fc

9 files changed

+28
-10
lines changed

workspace_tools/export/coide.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ class CoIDE(Exporter):
2525
TARGETS = [
2626
'KL25Z',
2727
'KL05Z',
28+
'LPC1768',
29+
'ARCH_PRO',
2830
'DISCO_F407VG',
2931
'NUCLEO_F401RE',
3032
'NUCLEO_F411RE'

workspace_tools/export/coide_arch_pro.coproj.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@
7979
<Components path="./"/>
8080
<Files>
8181
{% for file in source_files %}
82-
<File name="{{file.name}}" path="{{file.path}}" type="{{file.type}}"/>
82+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
83+
{% endfor %}
84+
{% for file in header_files %}
85+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8386
{% endfor %}
8487
</Files>
8588
</Project>

workspace_tools/export/coide_disco_f407vg.coproj.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
<Components path="./"/>
8282
<Files>
8383
{% for file in source_files %}
84-
<File name="sourcen/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
84+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8585
{% endfor %}
8686
{% for file in header_files %}
87-
<File name="includes/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
87+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8888
{% endfor %}
8989
</Files>
9090
</Project>

workspace_tools/export/coide_kl05z.coproj.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@
7979
<Components path="./"/>
8080
<Files>
8181
{% for file in source_files %}
82-
<File name="{{file.name}}" path="{{file.path}}" type="{{file.type}}"/>
82+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
83+
{% endfor %}
84+
{% for file in header_files %}
85+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8386
{% endfor %}
8487
</Files>
8588
</Project>

workspace_tools/export/coide_kl25z.coproj.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@
7979
<Components path="./"/>
8080
<Files>
8181
{% for file in source_files %}
82-
<File name="{{file.name}}" path="{{file.path}}" type="{{file.type}}"/>
82+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
83+
{% endfor %}
84+
{% for file in header_files %}
85+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8386
{% endfor %}
8487
</Files>
8588
</Project>

workspace_tools/export/coide_lpc1768.coproj.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@
7979
<Components path="./"/>
8080
<Files>
8181
{% for file in source_files %}
82-
<File name="{{file.name}}" path="{{file.path}}" type="{{file.type}}"/>
82+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
83+
{% endfor %}
84+
{% for file in header_files %}
85+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8386
{% endfor %}
8487
</Files>
8588
</Project>

workspace_tools/export/coide_nucleo_f401re.coproj.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
<Components path="./"/>
8282
<Files>
8383
{% for file in source_files %}
84-
<File name="sourcen/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
84+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8585
{% endfor %}
8686
{% for file in header_files %}
87-
<File name="includes/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
87+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8888
{% endfor %}
8989
</Files>
9090
</Project>

workspace_tools/export/coide_nucleo_f411re.coproj.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181
<Components path="./"/>
8282
<Files>
8383
{% for file in source_files %}
84-
<File name="sourcen/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
84+
<File name="sources/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8585
{% endfor %}
8686
{% for file in header_files %}
87-
<File name="includes/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
87+
<File name="headers/{{file.path}}" path="{{file.path}}" type="{{file.type}}"/>
8888
{% endfor %}
8989
</Files>
9090
</Project>

workspace_tools/export_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ def test_export(toolchain, target, expected_error=None):
7676
setup_test_user_prj()
7777

7878
for toolchain, target in [
79+
('coide', 'KL05Z'),
80+
('coide', 'KL25Z'),
81+
('coide', 'LPC1768'),
82+
('coide', 'ARCH_PRO'),
7983
('coide', 'DISCO_F407VG'),
8084
('coide', 'NUCLEO_F401RE'),
8185
('coide', 'NUCLEO_F411RE'),

0 commit comments

Comments
 (0)