XFA: Support PNG format in pdfium_test and add image diffing
[pdfium.git] / samples / samples.gyp
index e576d99..9d316ec 100644 (file)
@@ -6,7 +6,7 @@
   'target_defaults': {
     'type': 'executable',
     'dependencies': [
-      '../pdfium.gyp:fpdfsdk',
+      '../pdfium.gyp:pdfium',
     ],
     'include_dirs': ['<(DEPTH)'],
   },
       'target_name': 'pdfium_test',
       'sources': [
         'pdfium_test.cc',
+        'image_diff_png.cc',
+      ],
+    },
+    {
+      'target_name': 'pdfium_diff',
+      'type': 'executable',
+      'variables': { 'enable_wexit_time_destructors': 1, },
+      'dependencies': [
+        '../pdfium.gyp:fxcodec',
+        '../third_party/third_party.gyp:safemath',
+      ],
+      'include_dirs': [
+        '../../',
+      ],
+      'sources': [
+        'image_diff.cc',
+        'image_diff_png.h',
+        'image_diff_png.cc',
       ],
     },
   ],
-}
\ No newline at end of file
+}