Merge XFA to PDFium master at 4dc95e7 on 10/28/2014
[pdfium.git] / pdfium.gyp
index 606925c..8f0ff89 100644 (file)
@@ -48,6 +48,7 @@
         'javascript',
         'jsapi',
         'pdfwindow',
+        'fpdfxfa',
       ],
       'ldflags': [ '-L<(PRODUCT_DIR)',],
       'sources': [
         'core/include/fxcodec/fx_codec_provider.h',
         'core/src/fxcodec/codec/codec_int.h',
         'core/src/fxcodec/codec/fx_codec.cpp',
+        'core/src/fxcodec/codec/fx_codec_bmp.cpp',
         'core/src/fxcodec/codec/fx_codec_fax.cpp',
         'core/src/fxcodec/codec/fx_codec_flate.cpp',
+        'core/src/fxcodec/codec/fx_codec_gif.cpp',
         'core/src/fxcodec/codec/fx_codec_icc.cpp',
         'core/src/fxcodec/codec/fx_codec_jbig.cpp',
         'core/src/fxcodec/codec/fx_codec_jbig_enc.cpp',
         'core/src/fxcodec/codec/fx_codec_jpeg.cpp',
         'core/src/fxcodec/codec/fx_codec_jpx_opj.cpp',
+        'core/src/fxcodec/codec/fx_codec_png.cpp',
+        'core/src/fxcodec/codec/fx_codec_progress.cpp',
+        'core/src/fxcodec/codec/fx_codec_progress.h',
+        'core/src/fxcodec/codec/fx_codec_tiff.cpp',
         'core/src/fxcodec/fx_libopenjpeg/include/fx_openjpeg.h',
         'core/src/fxcodec/fx_libopenjpeg/src/fx_bio.c',
         'core/src/fxcodec/fx_libopenjpeg/src/fx_cio.c',
         'core/src/fxcodec/fx_libopenjpeg/src/fx_t2.c',
         'core/src/fxcodec/fx_libopenjpeg/src/fx_tcd.c',
         'core/src/fxcodec/fx_libopenjpeg/src/fx_tgt.c',
+        'core/src/fxcodec/fx_lpng/include/fx_png.h',
+        'core/src/fxcodec/fx_lpng/src/fx_png.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngerror.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngget.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngmem.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngpread.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngread.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngrio.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngrtran.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngrutil.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngset.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngtrans.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngwio.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngwrite.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngwtran.c',
+        'core/src/fxcodec/fx_lpng/src/fx_pngwutil.c',
+        'core/src/fxcodec/fx_tiff/include/fx_tiffiop.h',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_aux.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_close.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_codec.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_color.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_compress.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_dir.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_dirinfo.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_dirread.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_dirwrite.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_dumpmode.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_error.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_extension.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_fax3.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_fax3sm.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_flush.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_getimage.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_jpeg.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_luv.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_lzw.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_next.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_ojpeg.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_open.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_packbits.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_pixarlog.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_predict.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_print.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_read.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_strip.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_swab.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_thunder.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_tile.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_version.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_warning.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_write.c',
+        'core/src/fxcodec/fx_tiff/src/fx_tif_zip.c',
         'core/src/fxcodec/fx_zlib/include/fx_zlib.h',
         'core/src/fxcodec/fx_zlib/src/fx_zlib_adler32.c',
         'core/src/fxcodec/fx_zlib/src/fx_zlib_compress.c',
         'core/src/fxcodec/jbig2/JBig2_Segment.h',
         'core/src/fxcodec/jbig2/JBig2_SymbolDict.cpp',
         'core/src/fxcodec/jbig2/JBig2_SymbolDict.h',
+        'core/src/fxcodec/lbmp/fx_bmp.cpp',
+        'core/src/fxcodec/lbmp/fx_bmp.h',
         'core/src/fxcodec/lcms2/src/fx_cmscam02.c',
         'core/src/fxcodec/lcms2/src/fx_cmscgats.c',
         'core/src/fxcodec/lcms2/src/fx_cmscnvrt.c',
         'core/src/fxcodec/lcms2/src/fx_cmsvirt.c',
         'core/src/fxcodec/lcms2/src/fx_cmswtpnt.c',
         'core/src/fxcodec/lcms2/src/fx_cmsxform.c',
+        'core/src/fxcodec/lgif/fx_gif.cpp',
+        'core/src/fxcodec/lgif/fx_gif.h',
         'core/src/fxcodec/libjpeg/cderror.h',
         'core/src/fxcodec/libjpeg/cdjpeg.h',
         'core/src/fxcodec/libjpeg/fpdfapi_jcapimin.c',
       ],
     },
     {
+      'target_name': 'fpdfxfa',
+      'type': 'static_library',
+      'ldflags': [ '-L<(PRODUCT_DIR)',],
+      'dependencies': [
+        'xfa.gyp:xfa',
+      ],
+      'sources': [
+        'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp',
+        'fpdfsdk/src/fpdfxfa/fpdfxfa_doc.cpp',
+        'fpdfsdk/src/fpdfxfa/fpdfxfa_page.cpp',
+        'fpdfsdk/src/fpdfxfa/fpdfxfa_util.cpp',
+        'fpdfsdk/include/fpdfxfa/fpdfxfa_app.h',
+        'fpdfsdk/include/fpdfxfa/fpdfxfa_doc.h',
+        'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h',
+        'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h',
+      ],
+    },
+    {
       'target_name': 'javascript',
       'type': 'static_library',
         'include_dirs': [