 ===================================================================
 --- pylib/gyp/generator/ninja.py	(revision 0)
 +++ pylib/gyp/generator/ninja.py	(revision 0)
-@@ -0,0 +1,337 @@
+@@ -0,0 +1,358 @@
 +#!/usr/bin/python
 +
 +# Copyright (c) 2010 Google Inc. All rights reserved.

+tput_clear = tput('el1')
+import time
+def OverPrint(*args):
+  sys.stdout.write(tput_clear + '\r' + ' '.join(args))
+  #sys.stdout.write(' '.join(args) + '\n')
+  sys.stdout.flush()
+  #time.sleep(0.01)  # XXX
+

+    self.WriteVariableList('cflags_cc', config.get('cflags_c'))
+    self.WriteVariableList('cflags_cxx', config.get('cflags_cc'))
+    self.WriteLn()
+    outputs = []
+    for source in sources:
+      filename, ext = os.path.splitext(os.path.basename(source))
+      ext = ext[1:]
+      if ext in ('cc', 'cpp', 'cxx'):
+        command = 'cxx'
