summaryrefslogtreecommitdiff
path: root/third_party/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/BUILD.gn')
-rw-r--r--third_party/BUILD.gn84
1 files changed, 84 insertions, 0 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn
index a688ba3a5e..2468dd4e5d 100644
--- a/third_party/BUILD.gn
+++ b/third_party/BUILD.gn
@@ -2,6 +2,8 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("../pdfium.gni")
+
group("third_party") {
deps = [
":bigint",
@@ -269,6 +271,88 @@ source_set("fx_libopenjpeg") {
]
}
+source_set("fx_lpng") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ "//third_party/pdfium:pdfium_config",
+ ]
+ sources = [
+ "libpng16/png.c",
+ "libpng16/png.h",
+ "libpng16/pngconf.h",
+ "libpng16/pngdebug.h",
+ "libpng16/pngerror.c",
+ "libpng16/pngget.c",
+ "libpng16/pnginfo.h",
+ "libpng16/pnglibconf.h",
+ "libpng16/pngmem.c",
+ "libpng16/pngpread.c",
+ "libpng16/pngpriv.h",
+ "libpng16/pngread.c",
+ "libpng16/pngrio.c",
+ "libpng16/pngrtran.c",
+ "libpng16/pngrutil.c",
+ "libpng16/pngset.c",
+ "libpng16/pngstruct.h",
+ "libpng16/pngtrans.c",
+ "libpng16/pngwio.c",
+ "libpng16/pngwrite.c",
+ "libpng16/pngwtran.c",
+ "libpng16/pngwutil.c",
+ ]
+}
+
+if (pdf_enable_xfa) {
+ source_set("fx_tiff") {
+ configs -= [ "//build/config/compiler:chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ "//third_party/pdfium:pdfium_config",
+ ]
+ deps = [ "//third_party:jpeg" ]
+ sources = [
+ "libtiff/tiffiop.h",
+ "libtiff/tiffvers.h",
+ "libtiff/tif_aux.c",
+ "libtiff/tif_close.c",
+ "libtiff/tif_codec.c",
+ "libtiff/tif_color.c",
+ "libtiff/tif_compress.c",
+ "libtiff/tif_dir.c",
+ "libtiff/tif_dirinfo.c",
+ "libtiff/tif_dirread.c",
+ "libtiff/tif_dirwrite.c",
+ "libtiff/tif_dumpmode.c",
+ "libtiff/tif_error.c",
+ "libtiff/tif_extension.c",
+ "libtiff/tif_fax3.c",
+ "libtiff/tif_fax3sm.c",
+ "libtiff/tif_flush.c",
+ "libtiff/tif_getimage.c",
+ "libtiff/tif_jpeg.c",
+ "libtiff/tif_luv.c",
+ "libtiff/tif_lzw.c",
+ "libtiff/tif_next.c",
+ "libtiff/tif_ojpeg.c",
+ "libtiff/tif_open.c",
+ "libtiff/tif_packbits.c",
+ "libtiff/tif_pixarlog.c",
+ "libtiff/tif_predict.c",
+ "libtiff/tif_print.c",
+ "libtiff/tif_read.c",
+ "libtiff/tif_strip.c",
+ "libtiff/tif_swab.c",
+ "libtiff/tif_thunder.c",
+ "libtiff/tif_tile.c",
+ "libtiff/tif_version.c",
+ "libtiff/tif_warning.c",
+ "libtiff/tif_write.c",
+ "libtiff/tif_zip.c",
+ ]
+ }
+}
+
source_set("fx_zlib") {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [