Skip to content

Commit 38f2422

Browse files
committed
file type support
1 parent 9fe172d commit 38f2422

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

workspace_tools/export/coide.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020

2121
class CoIDE(Exporter):
2222
NAME = 'CoIDE'
23+
# seems like CoIDE currently supports only one type
2324
FILE_TYPES = {
2425
'c_sources':'1',
25-
'cpp_sources':'8',
26-
's_sources':'2'
26+
'cpp_sources':'1',
27+
's_sources':'1'
2728
}
2829
TARGETS = ['KL25Z']
2930
TOOLCHAIN = 'GCC_ARM'
@@ -34,7 +35,7 @@ def generate(self):
3435
for r_type, n in CoIDE.FILE_TYPES.iteritems():
3536
for file in getattr(self.resources, r_type):
3637
source_files.append({
37-
'name': basename(file), 'path': file
38+
'name': basename(file), 'type': n, 'path': file
3839
})
3940

4041
libraries = []

workspace_tools/export/coide_kl25z.coproj.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
<Components path="./"/>
7070
<Files>
7171
{% for file in source_files %}
72-
<File name="{{file.name}}" path="{{file.path}}.{{file.type}}" type="1"/>
72+
<File name="{{file.name}}" path="{{file.path}}" type="{{file.type}}"/>
7373
{% endfor %}
7474
</Files>
7575
</Project>

0 commit comments

Comments
 (0)