diff options
Diffstat (limited to 'samples/samples.gyp')
-rw-r--r-- | samples/samples.gyp | 46 |
1 files changed, 17 insertions, 29 deletions
diff --git a/samples/samples.gyp b/samples/samples.gyp index 3dc9a45cae..da9ce74b0a 100644 --- a/samples/samples.gyp +++ b/samples/samples.gyp @@ -5,6 +5,7 @@ { 'variables': { 'pdf_enable_v8%': 1, + 'pdf_enable_xfa%': 0, # Set to 1 in standalone builds by standalone.gypi. }, 'target_defaults': { 'defines' : [ @@ -27,6 +28,11 @@ '<(DEPTH)/v8/include', ], }], + ['pdf_enable_xfa==1', { + 'defines': [ + 'PDF_ENABLE_XFA', + ], + }], ], }, 'targets': [ @@ -34,7 +40,6 @@ 'target_name': 'pdfium_test', 'type': 'executable', 'dependencies': [ - 'fx_lpng', '../pdfium.gyp:pdfium', '../pdfium.gyp:test_support', # Regardless of whether the library ships against system freetype, @@ -52,6 +57,11 @@ ], }, 'conditions': [ + ['pdf_enable_xfa==0', { + 'dependencies': [ + '../third_party/third_party.gyp:fx_lpng', + ], + }], ['pdf_enable_v8==1', { 'dependencies': [ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', @@ -64,7 +74,6 @@ 'type': 'executable', 'variables': { 'enable_wexit_time_destructors': 1, }, 'dependencies': [ - 'fx_lpng', '../pdfium.gyp:pdfium', '../third_party/third_party.gyp:pdfium_base', ], @@ -73,33 +82,12 @@ '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', + 'conditions': [ + ['pdf_enable_xfa==0', { + 'dependencies': [ + '../third_party/third_party.gyp:fx_lpng', + ], + }], ], }, ], |