(spec)
return unique_libraries_list
Returns the list of libraries for this configuration.

  Arguments:
    spec: The target dictionary containing the properties of the target.
  Returns:
    The list of directory paths.
Returns the list of libraries for this configuration.
Returns the list of libraries for this configuration .
def _GetLibraries(spec):
  """Returns the list of libraries for this configuration.

  Arguments:
    spec: The target dictionary containing the properties of the target.
  Returns:
    The list of directory paths.
  """
  libraries = spec.get('libraries', [])
  # Strip out -l, as it is not used on windows (but is needed so we can pass
  # in libraries that are assumed to be in the default library path).
  # Also remove duplicate entries, leaving only the last duplicate, while
  # preserving order.
  found = OrderedSet()
  unique_libraries_list = []
  for entry in reversed(libraries):
    library = re.sub(r'^\-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' , [ ] ) # Strip out -l, as it is not used on windows (but is needed so we can pass # in libraries that are assumed to be in the default library path). # Also remove duplicate entries, leaving only the last duplicate, while # preserving order. found = OrderedSet ( ) unique_libraries_list = [ ] for entry in reversed ( libraries ) : library = re . sub ( r'^\-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