parameters: ()
docstring: Sets defaults for GYP_* variables.
docstring_summary: Sets defaults for GYP_* variables.
docstring_tokens: Sets defaults for GYP_ * variables .
function: def set_environment():
    """Sets defaults for GYP_* variables."""
  
    if 'SKIP_V8_GYP_ENV' not in os.environ:
      # Update the environment based on v8.gyp_env
      gyp_env_path = os.path.join(os.path.dirname(V8_ROOT), 'v8.gyp_env')
      apply_gyp_environment(gyp_env_path)
  
      if not os.environ.get('GYP_GENERATORS'):
        # Default to ninja on all platforms.
        os.environ['GYP_GENERATORS'] = 'ninja'
  
      vs_toolchain.SetEnvironmentAndGetRuntimeDllDirs()
function_tokens: def set_environment ( ) : if 'SKIP_V8_GYP_ENV' not in os . environ : # Update the environment based on v8.gyp_env gyp_env_path = os . path . join ( os . path . dirname ( V8_ROOT ) , 'v8.gyp_env' ) apply_gyp_environment ( gyp_env_path ) if not os . environ . get ( 'GYP_GENERATORS' ) : # Default to ninja on all platforms. os . environ [ 'GYP_GENERATORS' ] = 'ninja' vs_toolchain . SetEnvironmentAndGetRuntimeDllDirs ( )