diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-02-27 10:12:59 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-27 18:37:42 +0000 |
commit | 73c9f3bb3d82563d6d4496c4b0204d5c0825e8a2 (patch) | |
tree | bbc3e4e303f5f0a0a2e3931bfde01436130220bb /core/fxcodec/codec/fx_codec.cpp | |
parent | 717a4fc857d66017cecc4c8f8285713135b9dc68 (diff) | |
download | pdfium-73c9f3bb3d82563d6d4496c4b0204d5c0825e8a2.tar.xz |
Allow building XFA without additional codecs.
This is something we'd like to try for initial XFA launches
adding in codecs as justified by results in the wild.
Adding statistics for the unsupported cases is a follow-up
exercise once this builds correctly.
We always build all the additional libraries, to allow
fuzzers to link against them even if we are not shipping
them. The linker will sort it out for the actual code.
Rename some files to match the classes contained within.
That the existing tests seem to pass with the codecs
disabled warrants further investigation.
Change-Id: Iad269db91289f12dc9f5dda8f48121d27a0c4367
Reviewed-on: https://pdfium-review.googlesource.com/2836
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxcodec/codec/fx_codec.cpp')
-rw-r--r-- | core/fxcodec/codec/fx_codec.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp index 3edf8924c3..d9a36a6c5a 100644 --- a/core/fxcodec/codec/fx_codec.cpp +++ b/core/fxcodec/codec/fx_codec.cpp @@ -24,12 +24,18 @@ CCodec_ModuleMgr::CCodec_ModuleMgr() m_pJpxModule(new CCodec_JpxModule), m_pJbig2Module(new CCodec_Jbig2Module), m_pIccModule(new CCodec_IccModule), -#ifdef PDF_ENABLE_XFA - m_pPngModule(new CCodec_PngModule), - m_pGifModule(new CCodec_GifModule), +#ifdef PDF_ENABLE_XFA_BMP m_pBmpModule(new CCodec_BmpModule), +#endif // PDF_ENABLE_XFA_BMP +#ifdef PDF_ENABLE_XFA_GIF + m_pGifModule(new CCodec_GifModule), +#endif // PDF_ENABLE_XFA_GIF +#ifdef PDF_ENABLE_XFA_PNG + m_pPngModule(new CCodec_PngModule), +#endif // PDF_ENABLE_XFA_PNG +#ifdef PDF_ENABLE_XFA_TIFF m_pTiffModule(new CCodec_TiffModule), -#endif // PDF_ENABLE_XFA +#endif // PDF_ENABLE_XFA_TIFF m_pFlateModule(new CCodec_FlateModule) { } |