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):
|
||||
NAME = 'CoIDE'
|
||||
# seems like CoIDE currently supports only one type
|
||||
FILE_TYPES = {
|
||||
'c_sources':'1',
|
||||
'cpp_sources':'8',
|
||||
's_sources':'2'
|
||||
'cpp_sources':'1',
|
||||
's_sources':'1'
|
||||
}
|
||||
TARGETS = ['KL25Z']
|
||||
TOOLCHAIN = 'GCC_ARM'
|
||||
|
@ -34,7 +35,7 @@ class CoIDE(Exporter):
|
|||
for r_type, n in CoIDE.FILE_TYPES.iteritems():
|
||||
for file in getattr(self.resources, r_type):
|
||||
source_files.append({
|
||||
'name': basename(file), 'path': file
|
||||
'name': basename(file), 'type': n, 'path': file
|
||||
})
|
||||
|
||||
libraries = []
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
<Components path="./"/>
|
||||
<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 %}
|
||||
</Files>
|
||||
</Project>
|
||||
|
|
Loading…
Reference in New Issue