parameters: (self, spec, configs, link_deps)
docstring: Write Makefile code to specify the link flags and library dependencies.
  
      spec, configs: input from gyp.
      link_deps: link dependency list; see ComputeDeps()
docstring_summary: Write Makefile code to specify the link flags and library dependencies.
docstring_tokens: Write Makefile code to specify the link flags and library dependencies .
function: def WriteTargetFlags(self, spec, configs, link_deps):
      """Write Makefile code to specify the link flags and library dependencies.
  
      spec, configs: input from gyp.
      link_deps: link dependency list; see ComputeDeps()
      """
      # Libraries (i.e. -lfoo)
      # These must be included even for static libraries as some of them provide
      # implicit include paths through the build system.
      libraries = gyp.common.uniquer(spec.get('libraries', []))
      static_libs, dynamic_libs, ldflags_libs = self.FilterLibraries(libraries)
  
      if self.type != 'static_library':
        for configname, config in sorted(configs.iteritems()):
          ldflags = list(config.get('ldflags', []))
          self.WriteLn('')
          self.WriteList(ldflags, 'LOCAL_LDFLAGS_%s' % configname)
        self.WriteList(ldflags_libs, 'LOCAL_GYP_LIBS')
        self.WriteLn('LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) '
                     '$(LOCAL_GYP_LIBS)')
  
      # Link dependencies (i.e. other gyp targets this target depends on)
      # These need not be included for static libraries as within the gyp build
      # we do not use the implicit include path mechanism.
      if self.type != 'static_library':
        static_link_deps = [x[1] for x in link_deps if x[0] == 'static']
        shared_link_deps = [x[1] for x in link_deps if x[0] == 'shared']
      else:
        static_link_deps = []
        shared_link_deps = []
  
      # Only write the lists if they are non-empty.
      if static_libs or static_link_deps:
        self.WriteLn('')
        self.WriteList(static_libs + static_link_deps,
                       'LOCAL_STATIC_LIBRARIES')
        self.WriteLn('# Enable grouping to fix circular references')
        self.WriteLn('LOCAL_GROUP_STATIC_LIBRARIES := true')
      if dynamic_libs or shared_link_deps:
        self.WriteLn('')
        self.WriteList(dynamic_libs + shared_link_deps,
                       'LOCAL_SHARED_LIBRARIES')
function_tokens: def WriteTargetFlags ( self , spec , configs , link_deps ) : # Libraries (i.e. -lfoo) # These must be included even for static libraries as some of them provide # implicit include paths through the build system. libraries = gyp . common . uniquer ( spec . get ( 'libraries' , [ ] ) ) static_libs , dynamic_libs , ldflags_libs = self . FilterLibraries ( libraries ) if self . type != 'static_library' : for configname , config in sorted ( configs . iteritems ( ) ) : ldflags = list ( config . get ( 'ldflags' , [ ] ) ) self . WriteLn ( '' ) self . WriteList ( ldflags , 'LOCAL_LDFLAGS_%s' % configname ) self . WriteList ( ldflags_libs , 'LOCAL_GYP_LIBS' ) self . WriteLn ( 'LOCAL_LDFLAGS := $(LOCAL_LDFLAGS_$(GYP_CONFIGURATION)) ' '$(LOCAL_GYP_LIBS)' ) # Link dependencies (i.e. other gyp targets this target depends on) # These need not be included for static libraries as within the gyp build # we do not use the implicit include path mechanism. if self . type != 'static_library' : static_link_deps = [ x [ 1 ] for x in link_deps if x [ 0 ] == 'static' ] shared_link_deps = [ x [ 1 ] for x in link_deps if x [ 0 ] == 'shared' ] else : static_link_deps = [ ] shared_link_deps = [ ] # Only write the lists if they are non-empty. if static_libs or static_link_deps : self . WriteLn ( '' ) self . WriteList ( static_libs + static_link_deps , 'LOCAL_STATIC_LIBRARIES' ) self . WriteLn ( '# Enable grouping to fix circular references' ) self . WriteLn ( 'LOCAL_GROUP_STATIC_LIBRARIES := true' ) if dynamic_libs or shared_link_deps : self . WriteLn ( '' ) self . WriteList ( dynamic_libs + shared_link_deps , 'LOCAL_SHARED_LIBRARIES' )