parameters: (spec)
return_statement: return unique_libraries_list
docstring: 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.
docstring_summary: Returns the list of libraries for this configuration.
docstring_tokens: Returns the list of libraries for this configuration .
function: 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
function_tokens: 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