def _GetLibraries(spec):
 libraries = spec.get('libraries', [])
 found = OrderedSet()
 unique_libraries_list = []
 for entry in reversed(libraries):
  library = re.sub('^\\-l', '', entry)
  if (not os.path.splitext(library)[1]):
   library += '.lib'
  if (library not in found):
   found.add(library)
   unique_libraries_list.append(library)
 unique_libraries_list.reverse()
 return unique_libraries_list

def _GetLibraries ( spec ) : libraries = spec . get ( 'libraries' , [ ] ) found = OrderedSet ( ) unique_libraries_list = [ ] for entry in reversed ( libraries ) : library = re . sub ( '^\\-l' , '' , entry ) if ( not os . path . splitext ( library ) [ 1 ] ) : library += '.lib' if ( library not in found ) : found . add ( library ) unique_libraries_list . append ( library ) unique_libraries_list . reverse ( ) return unique_libraries_list
returns the list of libraries for this configuration .