parameters: (self, spec)
return_statement: return ''.join([prefix, middle, suffix])
docstring: Return the Android module name used for a gyp spec.
  
      We use the complete qualified target name to avoid collisions between
      duplicate targets in different directories. We also add a suffix to
      distinguish gyp-generated module names.
docstring_summary: Return the Android module name used for a gyp spec.
docstring_tokens: Return the Android module name used for a gyp spec .
function: def ComputeAndroidModule(self, spec):
      """Return the Android module name used for a gyp spec.
  
      We use the complete qualified target name to avoid collisions between
      duplicate targets in different directories. We also add a suffix to
      distinguish gyp-generated module names.
      """
  
      if int(spec.get('android_unmangled_name', 0)):
        assert self.type != 'shared_library' or self.target.startswith('lib')
        return self.target
  
      if self.type == 'shared_library':
        # For reasons of convention, the Android build system requires that all
        # shared library modules are named 'libfoo' when generating -l flags.
        prefix = 'lib_'
      else:
        prefix = ''
  
      if spec['toolset'] == 'host':
        suffix = '_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp'
      else:
        suffix = '_gyp'
  
      if self.path:
        middle = make.StringToMakefileVariable('%s_%s' % (self.path, self.target))
      else:
        middle = make.StringToMakefileVariable(self.target)
  
      return ''.join([prefix, middle, suffix])
function_tokens: def ComputeAndroidModule ( self , spec ) : if int ( spec . get ( 'android_unmangled_name' , 0 ) ) : assert self . type != 'shared_library' or self . target . startswith ( 'lib' ) return self . target if self . type == 'shared_library' : # For reasons of convention, the Android build system requires that all # shared library modules are named 'libfoo' when generating -l flags. prefix = 'lib_' else : prefix = '' if spec [ 'toolset' ] == 'host' : suffix = '_$(TARGET_$(GYP_VAR_PREFIX)ARCH)_host_gyp' else : suffix = '_gyp' if self . path : middle = make . StringToMakefileVariable ( '%s_%s' % ( self . path , self . target ) ) else : middle = make . StringToMakefileVariable ( self . target ) return '' . join ( [ prefix , middle , suffix ] )