parameters: (self, libraries)
return_statement: return (static_lib_modules, dynamic_lib_modules, ldflags)
docstring: Filter the 'libraries' key to separate things that shouldn't be ldflags.
  
      Library entries that look like filenames should be converted to android
      module names instead of being passed to the linker as flags.
  
      Args:
        libraries: the value of spec.get('libraries')
      Returns:
        A tuple (static_lib_modules, dynamic_lib_modules, ldflags)
docstring_summary: Filter the 'libraries' key to separate things that shouldn't be ldflags.
docstring_tokens: Filter the libraries key to separate things that shouldn t be ldflags .
function: def FilterLibraries(self, libraries):
      """Filter the 'libraries' key to separate things that shouldn't be ldflags.
  
      Library entries that look like filenames should be converted to android
      module names instead of being passed to the linker as flags.
  
      Args:
        libraries: the value of spec.get('libraries')
      Returns:
        A tuple (static_lib_modules, dynamic_lib_modules, ldflags)
      """
      static_lib_modules = []
      dynamic_lib_modules = []
      ldflags = []
      for libs in libraries:
        # Libs can have multiple words.
        for lib in libs.split():
          # Filter the system libraries, which are added by default by the Android
          # build system.
          if (lib == '-lc' or lib == '-lstdc++' or lib == '-lm' or
              lib.endswith('libgcc.a')):
            continue
          match = re.search(r'([^/]+)\.a$', lib)
          if match:
            static_lib_modules.append(match.group(1))
            continue
          match = re.search(r'([^/]+)\.so$', lib)
          if match:
            dynamic_lib_modules.append(match.group(1))
            continue
          if lib.startswith('-l'):
            ldflags.append(lib)
      return (static_lib_modules, dynamic_lib_modules, ldflags)
function_tokens: def FilterLibraries ( self , libraries ) : static_lib_modules = [ ] dynamic_lib_modules = [ ] ldflags = [ ] for libs in libraries : # Libs can have multiple words. for lib in libs . split ( ) : # Filter the system libraries, which are added by default by the Android # build system. if ( lib == '-lc' or lib == '-lstdc++' or lib == '-lm' or lib . endswith ( 'libgcc.a' ) ) : continue match = re . search ( r'([^/]+)\.a$' , lib ) if match : static_lib_modules . append ( match . group ( 1 ) ) continue match = re . search ( r'([^/]+)\.so$' , lib ) if match : dynamic_lib_modules . append ( match . group ( 1 ) ) continue if lib . startswith ( '-l' ) : ldflags . append ( lib ) return ( static_lib_modules , dynamic_lib_modules , ldflags )