parameters: (self, toolkit, srcs, dsts, vars,
                 targets = None, path_to_cmake_source = None)
docstring: `srcs`: what we depend upon.
      `dsts`: what will be built.
      `vars`: dict variables passed to cmake via `-D`.
      `targets`: list of Makefile targets.
      `path_to_cmake_source`: path to the directory containing the CMakeFile.
docstring_summary: `srcs`: what we depend upon.
      `dsts`: what will be built.
      `vars`: dict variables passed to cmake via `-D`.
      `targets`: list of Makefile targets.
      `path_to_cmake_source`: path to the directory containing the CMakeFile.
docstring_tokens: srcs : what we depend upon . dsts : what will be built . vars : dict variables passed to cmake via - D . targets : list of Makefile targets . path_to_cmake_source : path to the directory containing the CMakeFile .
function: def __init__(self, toolkit, srcs, dsts, vars,
                 targets = None, path_to_cmake_source = None):
      '''
      `srcs`: what we depend upon.
      `dsts`: what will be built.
      `vars`: dict variables passed to cmake via `-D`.
      `targets`: list of Makefile targets.
      `path_to_cmake_source`: path to the directory containing the CMakeFile.
      '''
      self.__toolkit = toolkit
      self.__vars = vars
      self.__prefix = drake.Drake.current.prefix
      self.__path_to_cmake_source = \
          drake.Path(path_to_cmake_source) if path_to_cmake_source \
          else drake.path_source() / self.__prefix
      self.__env = dict(os.environ)
      self.__env.update({
        'CC': ' '.join(toolkit.command_c),
        'CXX': ' '.join(toolkit.command_cxx),
      })
      self.__cmake_cache = drake.node('CMakeCache.txt')
      self.__targets = targets
      # cmake 3 compat
      self.__vars.update({'CMAKE_SYSTEM_PROCESSOR': 'x86_64'})
      if self.toolkit.os is drake.os.windows:
        self.__vars.update({
          'CMAKE_ASM_NASM_COMPILER': self.toolkit.cxx[0:-3] + 'as',
          'CMAKE_RC_COMPILER': self.toolkit.cxx[0:-3] + 'windres',
          'CMAKE_SYSTEM_NAME': 'Windows',
        })
      dsts = list(dsts)
      dsts.append(self.__cmake_cache)
      # Call __init__ last, make __cmake_cache is declared a dsts, so
      # that it has a build-tree path, not a source-tree one.
      super().__init__(srcs = srcs, dsts = dsts)
function_tokens: def __init__ ( self , toolkit , srcs , dsts , vars , targets = None , path_to_cmake_source = None ) : self . __toolkit = toolkit self . __vars = vars self . __prefix = drake . Drake . current . prefix self . __path_to_cmake_source = drake . Path ( path_to_cmake_source ) if path_to_cmake_source else drake . path_source ( ) / self . __prefix self . __env = dict ( os . environ ) self . __env . update ( { 'CC' : ' ' . join ( toolkit . command_c ) , 'CXX' : ' ' . join ( toolkit . command_cxx ) , } ) self . __cmake_cache = drake . node ( 'CMakeCache.txt' ) self . __targets = targets # cmake 3 compat self . __vars . update ( { 'CMAKE_SYSTEM_PROCESSOR' : 'x86_64' } ) if self . toolkit . os is drake . os . windows : self . __vars . update ( { 'CMAKE_ASM_NASM_COMPILER' : self . toolkit . cxx [ 0 : - 3 ] + 'as' , 'CMAKE_RC_COMPILER' : self . toolkit . cxx [ 0 : - 3 ] + 'windres' , 'CMAKE_SYSTEM_NAME' : 'Windows' , } ) dsts = list ( dsts ) dsts . append ( self . __cmake_cache ) # Call __init__ last, make __cmake_cache is declared a dsts, so # that it has a build-tree path, not a source-tree one. super ( ) . __init__ ( srcs = srcs , dsts = dsts )