parameters: (default_variables, params)
docstring: Calculate additional variables for use in the build (called by gyp).
docstring_summary: Calculate additional variables for use in the build (called by gyp).
docstring_tokens: Calculate additional variables for use in the build ( called by gyp ) .
function: def CalculateVariables(default_variables, params):
      """Calculate additional variables for use in the build (called by gyp)."""
      flavor = gyp.common.GetFlavor(params)
      if flavor == "mac":
          default_variables.setdefault("OS", "mac")
      elif flavor == "win":
          default_variables.setdefault("OS", "win")
          gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
      else:
          operating_system = flavor
          if flavor == "android":
              operating_system = "linux"  # Keep this legacy behavior for now.
          default_variables.setdefault("OS", operating_system)
function_tokens: def CalculateVariables ( default_variables , params ) : flavor = gyp . common . GetFlavor ( params ) if flavor == "mac" : default_variables . setdefault ( "OS" , "mac" ) elif flavor == "win" : default_variables . setdefault ( "OS" , "win" ) gyp . msvs_emulation . CalculateCommonVariables ( default_variables , params ) else : operating_system = flavor if flavor == "android" : operating_system = "linux" # Keep this legacy behavior for now. default_variables . setdefault ( "OS" , operating_system )