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')
  import gyp.generator.msvs as msvs_generator
  generator_additional_non_configuration_keys = getattr(msvs_generator, 'generator_additional_non_configuration_keys', [])
  generator_additional_path_sections = getattr(msvs_generator, 'generator_additional_path_sections', [])
  gyp.msvs_emulation.CalculateCommonVariables(default_variables, params)
 else:
  operating_system = flavor
  if (flavor == 'android'):
   operating_system = 'linux'
  default_variables.setdefault('OS', operating_system)

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' ) import gyp . generator . msvs as msvs_generator generator_additional_non_configuration_keys = getattr ( msvs_generator , 'generator_additional_non_configuration_keys' , [ ] ) generator_additional_path_sections = getattr ( msvs_generator , 'generator_additional_path_sections' , [ ] ) gyp . msvs_emulation . CalculateCommonVariables ( default_variables , params ) else : operating_system = flavor if ( flavor == 'android' ) : operating_system = 'linux' default_variables . setdefault ( 'OS' , operating_system )
calculate additional variables for use in the build .