Mac does not like empty projects.


git-svn-id: http://skia.googlecode.com/svn/trunk@2438 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gm/gmmain.cpp b/gm/gmmain.cpp
index 254a624..e74b0bc 100644
--- a/gm/gmmain.cpp
+++ b/gm/gmmain.cpp
@@ -463,7 +463,7 @@
     } else if (gRec.fBackend == kPDF_Backend) {
         generate_pdf(gm, document);
 #if CAN_IMAGE_PDF
-        SkAutoDataUnref data(pdf.copyToData());
+        SkAutoDataUnref data(document.copyToData());
         SkMemoryStream stream(data.data(), data.size());
         SkPDFDocumentToBitmap(&stream, bitmap);
 #endif
diff --git a/gyp/gm.gyp b/gyp/gm.gyp
index 716e056..fc43221 100644
--- a/gyp/gm.gyp
+++ b/gyp/gm.gyp
@@ -43,9 +43,16 @@
         'gpu.gyp:skgr',
         'images.gyp:images',
         'pdf.gyp:pdf',
-        'utils.gyp:utils',
-        'xps.gyp:xps',
+        'utils.gyp:utils',        
       ],
+      #mac does not like empty dependency.
+      'conditions': [
+        [ 'skia_os == "win"', {
+          'dependencies': [
+            'xps.gyp:xps',
+          ],
+        }],
+      ],  
     },
   ],
 }