parameters: (self, libraries)
return_statement: return (static_lib_modules, dynamic_lib_modules)
docstring: Compute the Android module names from libraries, ie spec.get('libraries')
  
      Args:
        libraries: the value of spec.get('libraries')
      Returns:
        A tuple (static_lib_modules, dynamic_lib_modules)
docstring_summary: Compute the Android module names from libraries, ie spec.get('libraries')
docstring_tokens: Compute the Android module names from libraries ie spec . get ( libraries )
function: def ComputeAndroidLibraryModuleNames(self, libraries):
      """Compute the Android module names from libraries, ie spec.get('libraries')
  
      Args:
        libraries: the value of spec.get('libraries')
      Returns:
        A tuple (static_lib_modules, dynamic_lib_modules)
      """
      static_lib_modules = []
      dynamic_lib_modules = []
      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
          # "-lstlport" -> libstlport
          if lib.startswith('-l'):
            if lib.endswith('_static'):
              static_lib_modules.append('lib' + lib[2:])
            else:
              dynamic_lib_modules.append('lib' + lib[2:])
      return (static_lib_modules, dynamic_lib_modules)
function_tokens: def ComputeAndroidLibraryModuleNames ( self , libraries ) : static_lib_modules = [ ] dynamic_lib_modules = [ ] 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 # "-lstlport" -> libstlport if lib . startswith ( '-l' ) : if lib . endswith ( '_static' ) : static_lib_modules . append ( 'lib' + lib [ 2 : ] ) else : dynamic_lib_modules . append ( 'lib' + lib [ 2 : ] ) return ( static_lib_modules , dynamic_lib_modules )