gyp_pdfium should use ninja by default.

R=thakis@chromium.org, tsepez@chromium.org

Review URL: https://codereview.chromium.org/1330173002 .
diff --git a/build/gyp_pdfium b/build/gyp_pdfium
index 7019795..fca2ca3 100755
--- a/build/gyp_pdfium
+++ b/build/gyp_pdfium
@@ -28,15 +28,20 @@
 def main():
   args = sys.argv[1:]
   args.append(os.path.join(script_dir, 'all.gyp'))
-  
+
   args.append('-I')
   args.append(os.path.join(pdfium_root, 'build', 'standalone.gypi'))
-  
+
   args.extend(['-D', 'gyp_output_dir=out'])
 
   # Set the GYP DEPTH variable to the root of the PDFium project.
   args.append('--depth=' + os.path.relpath(pdfium_root))
 
+  # GYP does not default to ninja, but PDFium should.
+  if not os.environ.get('GYP_GENERATORS', ''):
+    print 'GYP_GENERATORS is not set, defaulting to ninja'
+    os.environ['GYP_GENERATORS'] = 'ninja'
+
   print 'Updating projects from gyp files...'
   sys.stdout.flush()
 
@@ -44,4 +49,4 @@
 
 
 if __name__ == '__main__':
-  sys.exit(main())
\ No newline at end of file
+  sys.exit(main())