Merge pull request #549 from 0xc0170/fix_iar_template

Exporters: IAR template - files and targets fix
pull/557/head
Martin Kojtal 2014-10-13 08:01:13 +02:00
commit 40c4aec798
4 changed files with 3674 additions and 3 deletions

View File

@ -28,13 +28,20 @@ class IAREmbeddedWorkbench(Exporter):
] ]
def generate(self): def generate(self):
sources = []
sources += self.resources.c_sources
sources += self.resources.cpp_sources
sources += self.resources.s_sources
ctx = { ctx = {
'name': self.program_name, 'name': self.program_name,
'include_paths': self.resources.inc_dirs, 'include_paths': self.resources.inc_dirs,
'linker_script': self.resources.linker_script, 'linker_script': self.resources.linker_script,
'object_files': self.resources.objects, 'object_files': self.resources.objects,
'libraries': self.resources.libraries, 'libraries': self.resources.libraries,
'symbols': self.toolchain.get_symbols() 'symbols': self.toolchain.get_symbols(),
'source_files': sources,
} }
self.gen_file('iar.ewp.tmpl', ctx, '%s.ewp' % self.program_name) self.gen_file('iar_%s.ewp.tmpl' % self.target.lower(), ctx, '%s.ewp' % self.program_name)
self.gen_file('iar.eww.tmpl', ctx, '%s.eww' % self.program_name) self.gen_file('iar.eww.tmpl', ctx, '%s.eww' % self.program_name)

View File

@ -1821,9 +1821,11 @@
<data/> <data/>
</settings> </settings>
</configuration> </configuration>
{% for files in source_files %}
<file> <file>
<name>$PROJ_DIR$\main.cpp</name> <name>$PROJ_DIR$\{{files}}</name>
</file> </file>
{% endfor %}
</project> </project>

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff