 ===================================================================
 --- 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.

+        # if ext in ('h', 'hxx'):
+        # elif ext in ('re', 'gperf', 'grd', ):
+        continue
+      output = filename + '.o'
+      self.WriteEdge([output], command, [source])
+      extra_link_deps.append(output)
+    self.WriteLn()
+
+  def WriteTarget(self, spec, config, link_deps):
+    self.WriteVariableList('ldflags', config.get('ldflags'))
+    self.WriteVariableList('libs', spec.get('libraries'))
+

+    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'
