parameters: (self, name, sources, install_dir, build_info)
docstring: Common implementation for add_library and add_installed_library. Do
          not use directly
docstring_summary: Common implementation for add_library and add_installed_library. Do
          not use directly
docstring_tokens: Common implementation for add_library and add_installed_library . Do not use directly
function: def _add_library(self, name, sources, install_dir, build_info):
          """Common implementation for add_library and add_installed_library. Do
          not use directly"""
          build_info = copy.copy(build_info)
          name = name #+ '__OF__' + self.name
          build_info['sources'] = sources
  
          # Sometimes, depends is not set up to an empty list by default, and if
          # depends is not given to add_library, distutils barfs (#1134)
          if not 'depends' in build_info:
              build_info['depends'] = []
  
          self._fix_paths_dict(build_info)
  
          # Add to libraries list so that it is build with build_clib
          self.libraries.append((name, build_info))
function_tokens: def _add_library ( self , name , sources , install_dir , build_info ) : build_info = copy . copy ( build_info ) name = name #+ '__OF__' + self.name build_info [ 'sources' ] = sources # Sometimes, depends is not set up to an empty list by default, and if # depends is not given to add_library, distutils barfs (#1134) if not 'depends' in build_info : build_info [ 'depends' ] = [ ] self . _fix_paths_dict ( build_info ) # Add to libraries list so that it is build with build_clib self . libraries . append ( ( name , build_info ) )