summaryrefslogtreecommitdiff
path: root/core/fxcodec
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-12 18:58:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-12 18:58:21 +0000
commit8460088891f98a9138718fc9c89bf309eb88580f (patch)
tree0a9e3023f6262c720326b7f74df7b31f2d6ca5c8 /core/fxcodec
parentd145e4b923ae99f67b734924885738437248aa85 (diff)
downloadpdfium-8460088891f98a9138718fc9c89bf309eb88580f.tar.xz
Split most core build rules into various BUILD.gn files in core.
Change-Id: I773eec2bbf104f073eba7a64ed19f6fba0131d21 Reviewed-on: https://pdfium-review.googlesource.com/c/43946 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fxcodec')
-rw-r--r--core/fxcodec/BUILD.gn124
1 files changed, 124 insertions, 0 deletions
diff --git a/core/fxcodec/BUILD.gn b/core/fxcodec/BUILD.gn
new file mode 100644
index 0000000000..ec4843f700
--- /dev/null
+++ b/core/fxcodec/BUILD.gn
@@ -0,0 +1,124 @@
+# Copyright 2018 The PDFium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/jumbo.gni")
+import("../../pdfium.gni")
+
+jumbo_source_set("fxcodec") {
+ sources = [
+ "JBig2_DocumentContext.h",
+ "codec/ccodec_basicmodule.h",
+ "codec/ccodec_faxmodule.cpp",
+ "codec/ccodec_faxmodule.h",
+ "codec/ccodec_flatemodule.cpp",
+ "codec/ccodec_flatemodule.h",
+ "codec/ccodec_iccmodule.cpp",
+ "codec/ccodec_iccmodule.h",
+ "codec/ccodec_jbig2module.cpp",
+ "codec/ccodec_jbig2module.h",
+ "codec/ccodec_jpegmodule.cpp",
+ "codec/ccodec_jpegmodule.h",
+ "codec/ccodec_jpxmodule.cpp",
+ "codec/ccodec_jpxmodule.h",
+ "codec/ccodec_scanlinedecoder.cpp",
+ "codec/ccodec_scanlinedecoder.h",
+ "codec/cfx_codec_memory.cpp",
+ "codec/cfx_codec_memory.h",
+ "codec/cjpx_decoder.h",
+ "codec/codec_int.h",
+ "codec/codec_module_iface.h",
+ "codec/fx_codec.cpp",
+ "fx_codec.h",
+ "fx_codec_def.h",
+ "jbig2/JBig2_ArithDecoder.cpp",
+ "jbig2/JBig2_ArithDecoder.h",
+ "jbig2/JBig2_ArithIntDecoder.cpp",
+ "jbig2/JBig2_ArithIntDecoder.h",
+ "jbig2/JBig2_BitStream.cpp",
+ "jbig2/JBig2_BitStream.h",
+ "jbig2/JBig2_Context.cpp",
+ "jbig2/JBig2_Context.h",
+ "jbig2/JBig2_Define.h",
+ "jbig2/JBig2_GrdProc.cpp",
+ "jbig2/JBig2_GrdProc.h",
+ "jbig2/JBig2_GrrdProc.cpp",
+ "jbig2/JBig2_GrrdProc.h",
+ "jbig2/JBig2_HtrdProc.cpp",
+ "jbig2/JBig2_HtrdProc.h",
+ "jbig2/JBig2_HuffmanDecoder.cpp",
+ "jbig2/JBig2_HuffmanDecoder.h",
+ "jbig2/JBig2_HuffmanTable.cpp",
+ "jbig2/JBig2_HuffmanTable.h",
+ "jbig2/JBig2_Image.cpp",
+ "jbig2/JBig2_Image.h",
+ "jbig2/JBig2_Page.h",
+ "jbig2/JBig2_PatternDict.cpp",
+ "jbig2/JBig2_PatternDict.h",
+ "jbig2/JBig2_PddProc.cpp",
+ "jbig2/JBig2_PddProc.h",
+ "jbig2/JBig2_SddProc.cpp",
+ "jbig2/JBig2_SddProc.h",
+ "jbig2/JBig2_Segment.cpp",
+ "jbig2/JBig2_Segment.h",
+ "jbig2/JBig2_SymbolDict.cpp",
+ "jbig2/JBig2_SymbolDict.h",
+ "jbig2/JBig2_TrdProc.cpp",
+ "jbig2/JBig2_TrdProc.h",
+ ]
+ configs += [ "../../:pdfium_core_config" ]
+ include_dirs = []
+ deps = [
+ "../../:fxcrt",
+ "../../third_party:fx_libopenjpeg",
+ "../../third_party:lcms2",
+ "../../third_party:zlib",
+ "//third_party:jpeg",
+ ]
+
+ if (pdf_enable_xfa) {
+ sources += [
+ "codec/ccodec_progressivedecoder.cpp",
+ "codec/ccodec_progressivedecoder.h",
+ ]
+ if (pdf_enable_xfa_bmp) {
+ sources += [
+ "bmp/cfx_bmpcontext.cpp",
+ "bmp/cfx_bmpcontext.h",
+ "bmp/cfx_bmpdecompressor.cpp",
+ "bmp/cfx_bmpdecompressor.h",
+ "bmp/fx_bmp.cpp",
+ "bmp/fx_bmp.h",
+ "codec/ccodec_bmpmodule.cpp",
+ "codec/ccodec_bmpmodule.h",
+ ]
+ }
+ if (pdf_enable_xfa_gif) {
+ sources += [
+ "codec/ccodec_gifmodule.cpp",
+ "codec/ccodec_gifmodule.h",
+ "gif/cfx_gif.cpp",
+ "gif/cfx_gif.h",
+ "gif/cfx_gifcontext.cpp",
+ "gif/cfx_gifcontext.h",
+ "gif/cfx_lzwdecompressor.cpp",
+ "gif/cfx_lzwdecompressor.h",
+ ]
+ }
+ if (pdf_enable_xfa_png) {
+ sources += [
+ "codec/ccodec_pngmodule.cpp",
+ "codec/ccodec_pngmodule.h",
+ ]
+ deps += [ "../../third_party:png" ]
+ }
+ if (pdf_enable_xfa_tiff) {
+ sources += [
+ "codec/ccodec_tiffmodule.cpp",
+ "codec/ccodec_tiffmodule.h",
+ ]
+ deps += [ "../../third_party:fx_tiff" ]
+ }
+ }
+ visibility = [ "../../*" ]
+}