summaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorRyan Harrison <rharrison@chromium.org>2018-05-10 16:38:15 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-10 16:38:15 +0000
commit95061379c9453b941783398826acff674d2bbfd7 (patch)
tree766885c5e74724ca6120562f6b8a5f57b99a4794 /BUILD.gn
parent35557c3ce83cc6e26f07cf5d5c520ee6afd39a67 (diff)
downloadpdfium-95061379c9453b941783398826acff674d2bbfd7.tar.xz
Do not build BMP when codec is disabled
Currently all of the BMP related code is being built when support for the codec is disabled, it just isn't being utilized. Depending on the settings being used, this unneeded code may or may not get stripped during linking. This CL explicitly turns off building the BMP codec code if support for BMP is turned off. BUG=pdfium:1080 Change-Id: I56d40639a5a3631f9c601a1eef3f98873feac94f Reviewed-on: https://pdfium-review.googlesource.com/32370 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn20
1 files changed, 12 insertions, 8 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 60ff4983e6..8be7f1658d 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -780,17 +780,21 @@ jumbo_static_library("fxcodec") {
if (pdf_enable_xfa) {
sources += [
- "core/fxcodec/bmp/cfx_bmpcontext.cpp",
- "core/fxcodec/bmp/cfx_bmpcontext.h",
- "core/fxcodec/bmp/cfx_bmpdecompressor.cpp",
- "core/fxcodec/bmp/cfx_bmpdecompressor.h",
- "core/fxcodec/bmp/fx_bmp.cpp",
- "core/fxcodec/bmp/fx_bmp.h",
- "core/fxcodec/codec/ccodec_bmpmodule.cpp",
- "core/fxcodec/codec/ccodec_bmpmodule.h",
"core/fxcodec/codec/ccodec_progressivedecoder.h",
"core/fxcodec/codec/fx_codec_progress.cpp",
]
+ if (pdf_enable_xfa_bmp) {
+ sources += [
+ "core/fxcodec/bmp/cfx_bmpcontext.cpp",
+ "core/fxcodec/bmp/cfx_bmpcontext.h",
+ "core/fxcodec/bmp/cfx_bmpdecompressor.cpp",
+ "core/fxcodec/bmp/cfx_bmpdecompressor.h",
+ "core/fxcodec/bmp/fx_bmp.cpp",
+ "core/fxcodec/bmp/fx_bmp.h",
+ "core/fxcodec/codec/ccodec_bmpmodule.cpp",
+ "core/fxcodec/codec/ccodec_bmpmodule.h",
+ ]
+ }
if (pdf_enable_xfa_gif) {
sources += [
"core/fxcodec/codec/ccodec_gifmodule.cpp",