@@ -138,12 +138,15 @@ def get_project_data(self):
138
138
for file in getattr (self .resources , r_type ):
139
139
sources .append (file )
140
140
141
- # TODO: sources in groups
142
141
project_data = {
143
142
'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
+ },
147
150
'target' : [self .PROGEN_TARGETS [self .target ]],
148
151
'debugger' : ['cmsis-dap' ], #TODO: per target to set this
149
152
'macros' : self .get_symbols (),
@@ -205,9 +208,6 @@ def gen_file_progen(self, tool_name, project_data):
205
208
"""" Generate project using ProGen Project API """
206
209
settings = ProjectSettings ()
207
210
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
211
211
project .generate (tool_name , copied = True )
212
212
213
213
def gen_file (self , template_file , data , target_file ):
0 commit comments