Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: samples/samples.gyp

Issue 950113002: Backport PNG output format to origin/master branch. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add missing image_diff files. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « samples/pdfium_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/samples.gyp
diff --git a/samples/samples.gyp b/samples/samples.gyp
index 607a5b9169f6c0fc8823e1cc23a15a9381565c3f..4938ecb9550966067bdb0e1cdef8c4086453a37e 100644
--- a/samples/samples.gyp
+++ b/samples/samples.gyp
@@ -4,10 +4,10 @@
{
'target_defaults': {
- 'type': 'executable',
- 'dependencies': [
- '../pdfium.gyp:pdfium',
- '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
+ 'defines' : [
+ 'PNG_PREFIX',
+ 'PNGPREFIX_H',
+ 'PNG_USE_READ_MACROS',
],
'include_dirs': [
'<(DEPTH)',
@@ -18,8 +18,61 @@
'targets': [
{
'target_name': 'pdfium_test',
+ 'type': 'executable',
+ 'dependencies': [
+ 'fx_lpng',
+ '../pdfium.gyp:pdfium',
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform',
+ ],
'sources': [
'pdfium_test.cc',
+ 'image_diff_png.cc',
+ ],
+ },
+ {
+ 'target_name': 'pdfium_diff',
+ 'type': 'executable',
+ 'variables': { 'enable_wexit_time_destructors': 1, },
+ 'dependencies': [
+ 'fx_lpng',
+ '../pdfium.gyp:pdfium',
+ '../third_party/third_party.gyp:pdfium_base',
+ ],
+ 'include_dirs': [
+ '../../',
+ ],
+ 'sources': [
+ 'image_diff.cc',
+ 'image_diff_png.h',
+ 'image_diff_png.cc',
+ ],
+ },
+ {
+ 'target_name': 'fx_lpng',
+ 'type': 'static_library',
+ 'dependencies': [
+ '../pdfium.gyp:fxcodec',
+ ],
+ 'include_dirs': [
+ '../core/src/fxcodec/fx_zlib/include/',
+ ],
+ 'sources': [
+ 'fx_lpng/include/fx_png.h',
+ 'fx_lpng/src/fx_png.c',
+ 'fx_lpng/src/fx_pngerror.c',
+ 'fx_lpng/src/fx_pngget.c',
+ 'fx_lpng/src/fx_pngmem.c',
+ 'fx_lpng/src/fx_pngpread.c',
+ 'fx_lpng/src/fx_pngread.c',
+ 'fx_lpng/src/fx_pngrio.c',
+ 'fx_lpng/src/fx_pngrtran.c',
+ 'fx_lpng/src/fx_pngrutil.c',
+ 'fx_lpng/src/fx_pngset.c',
+ 'fx_lpng/src/fx_pngtrans.c',
+ 'fx_lpng/src/fx_pngwio.c',
+ 'fx_lpng/src/fx_pngwrite.c',
+ 'fx_lpng/src/fx_pngwtran.c',
+ 'fx_lpng/src/fx_pngwutil.c',
],
},
],
« no previous file with comments | « samples/pdfium_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698