()
Returns a string representing the build engine (not compiler) to use.
  Possible values: 'make', 'ninja', 'xcode', 'msvs', 'scons'
Returns a string representing the build engine (not compiler) to use.
  Possible values: 'make', 'ninja', 'xcode', 'msvs', 'scons'
Returns a string representing the build engine ( not compiler ) to use . Possible values : make ninja xcode msvs scons
def builder():
  """
  Returns a string representing the build engine (not compiler) to use.
  Possible values: 'make', 'ninja', 'xcode', 'msvs', 'scons'
  """
  if 'GYP_GENERATORS' in os.environ:
    # for simplicity, only support the first explicit generator
    generator = os.environ['GYP_GENERATORS'].split(',')[0]
    if generator.endswith('-android'):
      return generator.split('-')[0]
    elif generator.endswith('-ninja'):
      return 'ninja'
    else:
      return generator
  else:
    if platform() == 'android':
      # Good enough for now? Do any android bots use make?
      return 'make'
    elif platform() == 'ios':
      return 'xcode'
    elif IsWindows():
      return 'msvs'
    elif IsLinux():
      return 'make'
    elif IsMac():
      return 'xcode'
    else:
      assert False, 'Don\'t know what builder we\'re using!'
def builder ( ) : if 'GYP_GENERATORS' in os . environ : # for simplicity, only support the first explicit generator generator = os . environ [ 'GYP_GENERATORS' ] . split ( ',' ) [ 0 ] if generator . endswith ( '-android' ) : return generator . split ( '-' ) [ 0 ] elif generator . endswith ( '-ninja' ) : return 'ninja' else : return generator else : if platform ( ) == 'android' : # Good enough for now? Do any android bots use make? return 'make' elif platform ( ) == 'ios' : return 'xcode' elif IsWindows ( ) : return 'msvs' elif IsLinux ( ) : return 'make' elif IsMac ( ) : return 'xcode' else : assert False , 'Don\'t know what builder we\'re using!'