parameters: (self,
                   name,
                   srcs,
                   deps,
                   optimize,
                   deprecated,
                   blade,
                   kwargs)
docstring: Init method.
  
          Init the thrift target.
docstring_summary: Init method.
docstring_tokens: Init method .
function: def __init__(self,
                   name,
                   srcs,
                   deps,
                   optimize,
                   deprecated,
                   blade,
                   kwargs):
          """Init method.
  
          Init the thrift target.
  
          """
          srcs = var_to_list(srcs)
          self._check_thrift_srcs_name(srcs)
          CcTarget.__init__(self,
                            name,
                            'fbthrift_library',
                            srcs,
                            deps,
                            '',
                            [], [], [], optimize, [], [],
                            blade,
                            kwargs)
  
          fbthrift_config = configparse.blade_config.get_config('fbthrift_config')
          fbthrift_libs = var_to_list(fbthrift_config['fbthrift_libs'])
          fbthrift1_bin = fbthrift_config['fbthrift1']
          fbthrift2_bin = fbthrift_config['fbthrift2']
  
  
          # Hardcode deps rule to thrift libraries.
          self._add_hardcode_library(fbthrift_libs)
  
          # Link all the symbols by default
          self.data['link_all_symbols'] = True
  
          # For each thrift file initialize a FBThriftHelper, which will be used
          # to get the source files generated from thrift file.
          self.fbthrift_helpers = {}
          for src in srcs:
              self.fbthrift_helpers[src] = FBThriftHelper(
                      os.path.join(self.path, src))
function_tokens: def __init__ ( self , name , srcs , deps , optimize , deprecated , blade , kwargs ) : srcs = var_to_list ( srcs ) self . _check_thrift_srcs_name ( srcs ) CcTarget . __init__ ( self , name , 'fbthrift_library' , srcs , deps , '' , [ ] , [ ] , [ ] , optimize , [ ] , [ ] , blade , kwargs ) fbthrift_config = configparse . blade_config . get_config ( 'fbthrift_config' ) fbthrift_libs = var_to_list ( fbthrift_config [ 'fbthrift_libs' ] ) fbthrift1_bin = fbthrift_config [ 'fbthrift1' ] fbthrift2_bin = fbthrift_config [ 'fbthrift2' ] # Hardcode deps rule to thrift libraries. self . _add_hardcode_library ( fbthrift_libs ) # Link all the symbols by default self . data [ 'link_all_symbols' ] = True # For each thrift file initialize a FBThriftHelper, which will be used # to get the source files generated from thrift file. self . fbthrift_helpers = { } for src in srcs : self . fbthrift_helpers [ src ] = FBThriftHelper ( os . path . join ( self . path , src ) )