Skip to content

Commit 07c9afe

Browse files
committed
Exporter progen - source and header files group addition
1 parent d09c2d8 commit 07c9afe

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

workspace_tools/export/exporters.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,15 @@ def get_project_data(self):
138138
for file in getattr(self.resources, r_type):
139139
sources.append(file)
140140

141-
# TODO: sources in groups
142141
project_data = {
143142
'common': {
144-
'sources': sources + self.resources.hex_files +
145-
self.resources.objects + self.resources.libraries,
146-
# 'includes': self.resources.inc_dirs,
143+
'sources': {
144+
'Source Files': sources + self.resources.hex_files +
145+
self.resources.objects + self.resources.libraries,
146+
},
147+
'includes': {
148+
'Include Files': self.resources.headers,
149+
},
147150
'target': [self.PROGEN_TARGETS[self.target]],
148151
'debugger': ['cmsis-dap'], #TODO: per target to set this
149152
'macros': self.get_symbols(),
@@ -205,9 +208,6 @@ def gen_file_progen(self, tool_name, project_data):
205208
"""" Generate project using ProGen Project API """
206209
settings = ProjectSettings()
207210
project = Project(self.program_name, [project_data], settings)
208-
# TODO: fix
209-
# this hack is for these scripts which know too much
210-
project.project['common']['include_paths'] = self.resources.inc_dirs
211211
project.generate(tool_name, copied=True)
212212

213213
def gen_file(self, template_file, data, target_file):

0 commit comments

Comments
 (0)