parameters: (default_variables, params)
docstring: Generated variables that require params to be known.
docstring_summary: Generated variables that require params to be known.
docstring_tokens: Generated variables that require params to be known .
function: def CalculateVariables(default_variables, params):
    """Generated variables that require params to be known."""
  
    generator_flags = params.get('generator_flags', {})
  
    # Select project file format version (if unset, default to auto detecting).
    msvs_version = MSVSVersion.SelectVisualStudioVersion(
        generator_flags.get('msvs_version', 'auto'))
    # Stash msvs_version for later (so we don't have to probe the system twice).
    params['msvs_version'] = msvs_version
  
    # Set a variable so conditions can be based on msvs_version.
    default_variables['MSVS_VERSION'] = msvs_version.ShortName()
  
    # To determine processor word size on Windows, in addition to checking
    # PROCESSOR_ARCHITECTURE (which reflects the word size of the current
    # process), it is also necessary to check PROCESSOR_ARCITEW6432 (which
    # contains the actual word size of the system when running thru WOW64).
    if (os.environ.get('PROCESSOR_ARCHITECTURE', '').find('64') >= 0 or
        os.environ.get('PROCESSOR_ARCHITEW6432', '').find('64') >= 0):
      default_variables['MSVS_OS_BITS'] = 64
    else:
      default_variables['MSVS_OS_BITS'] = 32
  
    if gyp.common.GetFlavor(params) == 'ninja':
      default_variables['SHARED_INTERMEDIATE_DIR'] = '$(OutDir)gen'
function_tokens: def CalculateVariables ( default_variables , params ) : generator_flags = params . get ( 'generator_flags' , { } ) # Select project file format version (if unset, default to auto detecting). msvs_version = MSVSVersion . SelectVisualStudioVersion ( generator_flags . get ( 'msvs_version' , 'auto' ) ) # Stash msvs_version for later (so we don't have to probe the system twice). params [ 'msvs_version' ] = msvs_version # Set a variable so conditions can be based on msvs_version. default_variables [ 'MSVS_VERSION' ] = msvs_version . ShortName ( ) # To determine processor word size on Windows, in addition to checking # PROCESSOR_ARCHITECTURE (which reflects the word size of the current # process), it is also necessary to check PROCESSOR_ARCITEW6432 (which # contains the actual word size of the system when running thru WOW64). if ( os . environ . get ( 'PROCESSOR_ARCHITECTURE' , '' ) . find ( '64' ) >= 0 or os . environ . get ( 'PROCESSOR_ARCHITEW6432' , '' ) . find ( '64' ) >= 0 ) : default_variables [ 'MSVS_OS_BITS' ] = 64 else : default_variables [ 'MSVS_OS_BITS' ] = 32 if gyp . common . GetFlavor ( params ) == 'ninja' : default_variables [ 'SHARED_INTERMEDIATE_DIR' ] = '$(OutDir)gen'