Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions tools/targets/keil.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,13 +276,14 @@ def MDK45Project(env, tree, target, script):

# get each group's LIBS flags
if 'LIBS' in group and group['LIBS']:
for item in group['LIBPATH']:
full_path = os.path.join(item, group['name'] + '.lib')
if os.path.isfile(full_path): # has this library
if group_tree != None:
MDK4AddLibToGroup(ProjectFiles, group_tree, group['name'], full_path, project_path)
else:
group_tree = MDK4AddGroupForFN(ProjectFiles, groups, group['name'], full_path, project_path)
for libpath in group['LIBPATH']:
for libname in group["LIBS"]:
full_path = os.path.join(libpath, libname + '.lib')
if os.path.isfile(full_path): # has this library
if group_tree != None:
MDK4AddLibToGroup(ProjectFiles, group_tree, group['name'], full_path, project_path)
else:
group_tree = MDK4AddGroupForFN(ProjectFiles, groups, group['name'], full_path, project_path)

# write include path, definitions and link flags
IncludePath = tree.find('Targets/Target/TargetOption/TargetArmAds/Cads/VariousControls/IncludePath')
Expand Down
Loading