mirror of https://github.com/ARMmbed/mbed-os.git
file type support
parent
9fe172d939
commit
38f24228db
|
@ -20,10 +20,11 @@ from os.path import splitext, basename
|
||||||
|
|
||||||
class CoIDE(Exporter):
|
class CoIDE(Exporter):
|
||||||
NAME = 'CoIDE'
|
NAME = 'CoIDE'
|
||||||
|
# seems like CoIDE currently supports only one type
|
||||||
FILE_TYPES = {
|
FILE_TYPES = {
|
||||||
'c_sources':'1',
|
'c_sources':'1',
|
||||||
'cpp_sources':'8',
|
'cpp_sources':'1',
|
||||||
's_sources':'2'
|
's_sources':'1'
|
||||||
}
|
}
|
||||||
TARGETS = ['KL25Z']
|
TARGETS = ['KL25Z']
|
||||||
TOOLCHAIN = 'GCC_ARM'
|
TOOLCHAIN = 'GCC_ARM'
|
||||||
|
@ -34,7 +35,7 @@ class CoIDE(Exporter):
|
||||||
for r_type, n in CoIDE.FILE_TYPES.iteritems():
|
for r_type, n in CoIDE.FILE_TYPES.iteritems():
|
||||||
for file in getattr(self.resources, r_type):
|
for file in getattr(self.resources, r_type):
|
||||||
source_files.append({
|
source_files.append({
|
||||||
'name': basename(file), 'path': file
|
'name': basename(file), 'type': n, 'path': file
|
||||||
})
|
})
|
||||||
|
|
||||||
libraries = []
|
libraries = []
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
<Components path="./"/>
|
<Components path="./"/>
|
||||||
<Files>
|
<Files>
|
||||||
{% for file in source_files %}
|
{% for file in source_files %}
|
||||||
<File name="{{file.name}}" path="{{file.path}}.{{file.type}}" type="1"/>
|
<File name="{{file.name}}" path="{{file.path}}" type="{{file.type}}"/>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</Files>
|
</Files>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
Loading…
Reference in New Issue