parameters: (params)
return_statement: return os.path.normpath(os.path.join(generator_dir, output_dir))
docstring: Returns the path from the toplevel_dir to the build output directory.
docstring_summary: Returns the path from the toplevel_dir to the build output directory.
docstring_tokens: Returns the path from the toplevel_dir to the build output directory .
function: def ComputeOutputDir(params):
    """Returns the path from the toplevel_dir to the build output directory."""
    # generator_dir: relative path from pwd to where make puts build files.
    # Makes migrating from make to ninja easier, ninja doesn't put anything here.
    generator_dir = os.path.relpath(params['options'].generator_output or '.')
  
    # output_dir: relative path from generator_dir to the build directory.
    output_dir = params.get('generator_flags', {}).get('output_dir', 'out')
  
    # Relative path from source root to our output files.  e.g. "out"
    return os.path.normpath(os.path.join(generator_dir, output_dir))
function_tokens: def ComputeOutputDir ( params ) : # generator_dir: relative path from pwd to where make puts build files. # Makes migrating from make to ninja easier, ninja doesn't put anything here. generator_dir = os . path . relpath ( params [ 'options' ] . generator_output or '.' ) # output_dir: relative path from generator_dir to the build directory. output_dir = params . get ( 'generator_flags' , { } ) . get ( 'output_dir' , 'out' ) # Relative path from source root to our output files.  e.g. "out" return os . path . normpath ( os . path . join ( generator_dir , output_dir ) )