Merge to XFA: Fix a heap overflow in CJBig2_Context::parseSymbolDict
[pdfium.git] / samples / samples.gyp
index e576d99..97497ee 100644 (file)
@@ -6,16 +6,44 @@
   'target_defaults': {
     'type': 'executable',
     'dependencies': [
-      '../pdfium.gyp:fpdfsdk',
+      '../pdfium.gyp:pdfium',
+      '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
+    ],
+    'include_dirs': [
+      '<(DEPTH)',
+      '<(DEPTH)/v8',
+      '<(DEPTH)/v8/include',
+    ],
+    'defines' : [
+      'PNG_PREFIX',
+      'PNGPREFIX_H',
+      'PNG_USE_READ_MACROS',
     ],
-    'include_dirs': ['<(DEPTH)'],
   },
   'targets': [
     {
       '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:pdfium_base',
+      ],
+      'include_dirs': [
+        '../../',
+      ],
+      'sources': [
+        'image_diff.cc',
+        'image_diff_png.h',
+        'image_diff_png.cc',
       ],
     },
   ],
-}
\ No newline at end of file
+}