Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 1 | # Copyright 2014 PDFium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 5 | import("../pdfium.gni") |
| 6 | |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 7 | group("third_party") { |
| 8 | deps = [ |
| 9 | ":bigint", |
Tom Sepez | 0dfd030 | 2015-10-12 15:38:22 -0700 | [diff] [blame] | 10 | ":fx_freetype", |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 11 | ":pdfium_base", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 12 | ] |
| 13 | } |
| 14 | |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 15 | source_set("bigint") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 16 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 17 | configs += [ |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 18 | "//build/config/compiler:no_chromium_code", |
| 19 | "//third_party/pdfium:pdfium_config", |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 20 | ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 21 | sources = [ |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 22 | "bigint/BigInteger.cc", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 23 | "bigint/BigInteger.hh", |
| 24 | "bigint/BigIntegerLibrary.hh", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 25 | "bigint/BigIntegerUtils.cc", |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 26 | "bigint/BigIntegerUtils.hh", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 27 | "bigint/BigUnsigned.cc", |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 28 | "bigint/BigUnsigned.hh", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 29 | "bigint/BigUnsignedInABase.cc", |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 30 | "bigint/BigUnsignedInABase.hh", |
| 31 | "bigint/NumberlikeArray.hh", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 32 | ] |
| 33 | } |
| 34 | |
Lei Zhang | 4f9ccbf | 2015-10-30 13:04:57 -0700 | [diff] [blame] | 35 | config("fx_freetype_warnings") { |
| 36 | visibility = [ ":*" ] |
| 37 | if (is_clang) { |
| 38 | # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in |
| 39 | # ftbase.h are unused. |
| 40 | cflags = [ "-Wno-unused-function" ] |
| 41 | } |
| 42 | } |
| 43 | |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 44 | # Tests may link against this even if the production library doesn't, |
| 45 | # so it needs to be separate from it. |
| 46 | static_library("fx_freetype") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 47 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 48 | configs += [ |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 49 | "//build/config/compiler:no_chromium_code", |
| 50 | "//third_party/pdfium:pdfium_config", |
Lei Zhang | 8241df7 | 2015-11-06 14:38:48 -0800 | [diff] [blame] | 51 | |
Lei Zhang | 4f9ccbf | 2015-10-30 13:04:57 -0700 | [diff] [blame] | 52 | # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 53 | ":fx_freetype_warnings", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 54 | ] |
John Abd-El-Malek | ef4dce4 | 2015-02-02 16:52:07 -0800 | [diff] [blame] | 55 | defines = [ "FT2_BUILD_LIBRARY" ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 56 | sources = [ |
Oliver Chang | cec3f68 | 2015-11-05 16:00:40 -0800 | [diff] [blame] | 57 | "freetype/include/freetype/freetype.h", |
| 58 | "freetype/include/freetype/ftmm.h", |
| 59 | "freetype/include/freetype/ftotval.h", |
| 60 | "freetype/include/freetype/ftoutln.h", |
| 61 | "freetype/include/freetype/internal/ftobjs.h", |
| 62 | "freetype/include/freetype/internal/ftstream.h", |
| 63 | "freetype/include/freetype/internal/tttypes.h", |
| 64 | "freetype/include/freetype/tttables.h", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 65 | "freetype/include/ft2build.h", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 66 | "freetype/src/base/ftbase.c", |
Oliver Chang | cec3f68 | 2015-11-05 16:00:40 -0800 | [diff] [blame] | 67 | "freetype/src/base/ftbase.h", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 68 | "freetype/src/base/ftbitmap.c", |
| 69 | "freetype/src/base/ftglyph.c", |
| 70 | "freetype/src/base/ftinit.c", |
| 71 | "freetype/src/base/ftlcdfil.c", |
| 72 | "freetype/src/base/ftmm.c", |
| 73 | "freetype/src/base/ftsystem.c", |
Oliver Chang | cec3f68 | 2015-11-05 16:00:40 -0800 | [diff] [blame] | 74 | "freetype/src/cff/cff.c", |
| 75 | "freetype/src/cff/cffobjs.h", |
| 76 | "freetype/src/cff/cfftypes.h", |
| 77 | "freetype/src/cid/type1cid.c", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 78 | "freetype/src/psaux/psaux.c", |
| 79 | "freetype/src/pshinter/pshinter.c", |
| 80 | "freetype/src/psnames/psmodule.c", |
| 81 | "freetype/src/raster/raster.c", |
| 82 | "freetype/src/sfnt/sfnt.c", |
| 83 | "freetype/src/smooth/smooth.c", |
| 84 | "freetype/src/truetype/truetype.c", |
| 85 | "freetype/src/type1/type1.c", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 86 | ] |
| 87 | } |
| 88 | |
Lei Zhang | 4f9ccbf | 2015-10-30 13:04:57 -0700 | [diff] [blame] | 89 | config("fx_agg_warnings") { |
| 90 | visibility = [ ":*" ] |
| 91 | if (is_clang) { |
| 92 | # calc_butt_cap() in agg_vcgen_stroke.cpp is unused. |
| 93 | cflags = [ "-Wno-unused-function" ] |
| 94 | } |
| 95 | } |
| 96 | |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 97 | source_set("fx_agg") { |
| 98 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 99 | configs += [ |
| 100 | "//build/config/compiler:no_chromium_code", |
| 101 | "//third_party/pdfium:pdfium_config", |
Lei Zhang | 8241df7 | 2015-11-06 14:38:48 -0800 | [diff] [blame] | 102 | |
Lei Zhang | 4f9ccbf | 2015-10-30 13:04:57 -0700 | [diff] [blame] | 103 | # Must be after no_chromium_code for warning flags to be ordered correctly. |
| 104 | ":fx_agg_warnings", |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 105 | ] |
| 106 | sources = [ |
| 107 | "agg23/agg_basics.h", |
| 108 | "agg23/agg_clip_liang_barsky.h", |
| 109 | "agg23/agg_conv_dash.h", |
| 110 | "agg23/agg_conv_stroke.h", |
| 111 | "agg23/agg_curves.cpp", |
| 112 | "agg23/agg_curves.h", |
| 113 | "agg23/agg_path_storage.cpp", |
| 114 | "agg23/agg_path_storage.h", |
| 115 | "agg23/agg_rasterizer_scanline_aa.cpp", |
| 116 | "agg23/agg_rasterizer_scanline_aa.h", |
| 117 | "agg23/agg_renderer_scanline.h", |
| 118 | "agg23/agg_rendering_buffer.h", |
| 119 | "agg23/agg_scanline_u.h", |
| 120 | "agg23/agg_vcgen_dash.cpp", |
| 121 | "agg23/agg_vcgen_stroke.cpp", |
| 122 | ] |
| 123 | } |
| 124 | |
Lei Zhang | e262c9a | 2015-09-03 16:16:10 -0700 | [diff] [blame] | 125 | config("fx_lcms2_warnings") { |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 126 | visibility = [ ":*" ] |
Lei Zhang | e262c9a | 2015-09-03 16:16:10 -0700 | [diff] [blame] | 127 | if (is_clang) { |
Lei Zhang | 8241df7 | 2015-11-06 14:38:48 -0800 | [diff] [blame] | 128 | cflags = [ |
| 129 | # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this |
| 130 | # library doesn't appear to have this problem. |
| 131 | "-Wno-missing-braces", |
| 132 | |
| 133 | # FindPrev() in cmsplugin.c is unused. |
| 134 | "-Wno-unused-function", |
| 135 | ] |
Nico Weber | 2827bdd | 2015-07-01 14:08:08 -0700 | [diff] [blame] | 136 | } |
Lei Zhang | e262c9a | 2015-09-03 16:16:10 -0700 | [diff] [blame] | 137 | } |
| 138 | |
| 139 | source_set("fx_lcms2") { |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 140 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 141 | configs += [ |
| 142 | "//build/config/compiler:no_chromium_code", |
| 143 | "//third_party/pdfium:pdfium_config", |
Lei Zhang | 8241df7 | 2015-11-06 14:38:48 -0800 | [diff] [blame] | 144 | |
Lei Zhang | 4f9ccbf | 2015-10-30 13:04:57 -0700 | [diff] [blame] | 145 | # Must be after no_chromium_code for warning flags to be ordered correctly. |
Nico Weber | 2827bdd | 2015-07-01 14:08:08 -0700 | [diff] [blame] | 146 | ":fx_lcms2_warnings", |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 147 | ] |
| 148 | sources = [ |
| 149 | "lcms2-2.6/include/lcms2.h", |
| 150 | "lcms2-2.6/include/lcms2_plugin.h", |
| 151 | "lcms2-2.6/src/cmscam02.c", |
| 152 | "lcms2-2.6/src/cmscgats.c", |
| 153 | "lcms2-2.6/src/cmscnvrt.c", |
| 154 | "lcms2-2.6/src/cmserr.c", |
| 155 | "lcms2-2.6/src/cmsgamma.c", |
| 156 | "lcms2-2.6/src/cmsgmt.c", |
| 157 | "lcms2-2.6/src/cmshalf.c", |
| 158 | "lcms2-2.6/src/cmsintrp.c", |
| 159 | "lcms2-2.6/src/cmsio0.c", |
| 160 | "lcms2-2.6/src/cmsio1.c", |
| 161 | "lcms2-2.6/src/cmslut.c", |
| 162 | "lcms2-2.6/src/cmsmd5.c", |
| 163 | "lcms2-2.6/src/cmsmtrx.c", |
| 164 | "lcms2-2.6/src/cmsnamed.c", |
| 165 | "lcms2-2.6/src/cmsopt.c", |
| 166 | "lcms2-2.6/src/cmspack.c", |
| 167 | "lcms2-2.6/src/cmspcs.c", |
| 168 | "lcms2-2.6/src/cmsplugin.c", |
| 169 | "lcms2-2.6/src/cmsps2.c", |
| 170 | "lcms2-2.6/src/cmssamp.c", |
| 171 | "lcms2-2.6/src/cmssm.c", |
| 172 | "lcms2-2.6/src/cmstypes.c", |
| 173 | "lcms2-2.6/src/cmsvirt.c", |
| 174 | "lcms2-2.6/src/cmswtpnt.c", |
| 175 | "lcms2-2.6/src/cmsxform.c", |
| 176 | ] |
| 177 | } |
| 178 | |
Lei Zhang | 8241df7 | 2015-11-06 14:38:48 -0800 | [diff] [blame] | 179 | # This is only used for standalone builds. |
| 180 | source_set("jpeg") { |
Tom Sepez | 0a11975 | 2015-06-17 15:46:03 -0700 | [diff] [blame] | 181 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 182 | configs += [ |
| 183 | "//build/config/compiler:no_chromium_code", |
| 184 | "//third_party/pdfium:pdfium_config", |
| 185 | ] |
| 186 | sources = [ |
| 187 | "libjpeg/cderror.h", |
| 188 | "libjpeg/cdjpeg.h", |
| 189 | "libjpeg/fpdfapi_jcapimin.c", |
| 190 | "libjpeg/fpdfapi_jcapistd.c", |
| 191 | "libjpeg/fpdfapi_jccoefct.c", |
| 192 | "libjpeg/fpdfapi_jccolor.c", |
| 193 | "libjpeg/fpdfapi_jcdctmgr.c", |
| 194 | "libjpeg/fpdfapi_jchuff.c", |
| 195 | "libjpeg/fpdfapi_jcinit.c", |
| 196 | "libjpeg/fpdfapi_jcmainct.c", |
| 197 | "libjpeg/fpdfapi_jcmarker.c", |
| 198 | "libjpeg/fpdfapi_jcmaster.c", |
| 199 | "libjpeg/fpdfapi_jcomapi.c", |
| 200 | "libjpeg/fpdfapi_jcparam.c", |
| 201 | "libjpeg/fpdfapi_jcphuff.c", |
| 202 | "libjpeg/fpdfapi_jcprepct.c", |
| 203 | "libjpeg/fpdfapi_jcsample.c", |
| 204 | "libjpeg/fpdfapi_jctrans.c", |
| 205 | "libjpeg/fpdfapi_jdapimin.c", |
| 206 | "libjpeg/fpdfapi_jdapistd.c", |
| 207 | "libjpeg/fpdfapi_jdcoefct.c", |
| 208 | "libjpeg/fpdfapi_jdcolor.c", |
| 209 | "libjpeg/fpdfapi_jddctmgr.c", |
| 210 | "libjpeg/fpdfapi_jdhuff.c", |
| 211 | "libjpeg/fpdfapi_jdinput.c", |
| 212 | "libjpeg/fpdfapi_jdmainct.c", |
| 213 | "libjpeg/fpdfapi_jdmarker.c", |
| 214 | "libjpeg/fpdfapi_jdmaster.c", |
| 215 | "libjpeg/fpdfapi_jdmerge.c", |
| 216 | "libjpeg/fpdfapi_jdphuff.c", |
| 217 | "libjpeg/fpdfapi_jdpostct.c", |
| 218 | "libjpeg/fpdfapi_jdsample.c", |
| 219 | "libjpeg/fpdfapi_jdtrans.c", |
| 220 | "libjpeg/fpdfapi_jerror.c", |
| 221 | "libjpeg/fpdfapi_jfdctfst.c", |
| 222 | "libjpeg/fpdfapi_jfdctint.c", |
| 223 | "libjpeg/fpdfapi_jidctfst.c", |
| 224 | "libjpeg/fpdfapi_jidctint.c", |
| 225 | "libjpeg/fpdfapi_jidctred.c", |
| 226 | "libjpeg/fpdfapi_jmemmgr.c", |
| 227 | "libjpeg/fpdfapi_jmemnobs.c", |
| 228 | "libjpeg/fpdfapi_jutils.c", |
| 229 | "libjpeg/jchuff.h", |
| 230 | "libjpeg/jconfig.h", |
| 231 | "libjpeg/jdct.h", |
| 232 | "libjpeg/jdhuff.h", |
| 233 | "libjpeg/jerror.h", |
| 234 | "libjpeg/jinclude.h", |
| 235 | "libjpeg/jmemsys.h", |
| 236 | "libjpeg/jmorecfg.h", |
| 237 | "libjpeg/jpegint.h", |
| 238 | "libjpeg/jpeglib.h", |
| 239 | "libjpeg/jversion.h", |
| 240 | "libjpeg/makefile", |
| 241 | "libjpeg/transupp.h", |
| 242 | ] |
| 243 | } |
| 244 | |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 245 | source_set("fx_libopenjpeg") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 246 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 247 | configs += [ |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 248 | "//build/config/compiler:no_chromium_code", |
| 249 | "//third_party/pdfium:pdfium_config", |
| 250 | ] |
| 251 | sources = [ |
| 252 | "libopenjpeg20/bio.c", |
| 253 | "libopenjpeg20/cio.c", |
| 254 | "libopenjpeg20/dwt.c", |
| 255 | "libopenjpeg20/event.c", |
| 256 | "libopenjpeg20/function_list.c", |
| 257 | "libopenjpeg20/image.c", |
| 258 | "libopenjpeg20/invert.c", |
| 259 | "libopenjpeg20/j2k.c", |
| 260 | "libopenjpeg20/jp2.c", |
| 261 | "libopenjpeg20/mct.c", |
| 262 | "libopenjpeg20/mqc.c", |
| 263 | "libopenjpeg20/openjpeg.c", |
| 264 | "libopenjpeg20/opj_clock.c", |
| 265 | "libopenjpeg20/pi.c", |
| 266 | "libopenjpeg20/raw.c", |
| 267 | "libopenjpeg20/t1.c", |
| 268 | "libopenjpeg20/t2.c", |
| 269 | "libopenjpeg20/tcd.c", |
| 270 | "libopenjpeg20/tgt.c", |
| 271 | ] |
| 272 | } |
| 273 | |
Tom Sepez | 5ef9faa | 2015-10-12 15:43:01 -0700 | [diff] [blame] | 274 | source_set("fx_lpng") { |
| 275 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 276 | configs += [ |
| 277 | "//build/config/compiler:no_chromium_code", |
| 278 | "//third_party/pdfium:pdfium_config", |
| 279 | ] |
| 280 | sources = [ |
Lei Zhang | a76a6d8 | 2016-01-15 19:38:03 -0800 | [diff] [blame] | 281 | "libpng16/png.c", |
| 282 | "libpng16/png.h", |
| 283 | "libpng16/pngconf.h", |
| 284 | "libpng16/pngdebug.h", |
| 285 | "libpng16/pngerror.c", |
| 286 | "libpng16/pngget.c", |
| 287 | "libpng16/pnginfo.h", |
| 288 | "libpng16/pnglibconf.h", |
| 289 | "libpng16/pngmem.c", |
| 290 | "libpng16/pngpread.c", |
| 291 | "libpng16/pngpriv.h", |
| 292 | "libpng16/pngread.c", |
| 293 | "libpng16/pngrio.c", |
| 294 | "libpng16/pngrtran.c", |
| 295 | "libpng16/pngrutil.c", |
| 296 | "libpng16/pngset.c", |
| 297 | "libpng16/pngstruct.h", |
| 298 | "libpng16/pngtrans.c", |
| 299 | "libpng16/pngwio.c", |
| 300 | "libpng16/pngwrite.c", |
| 301 | "libpng16/pngwtran.c", |
| 302 | "libpng16/pngwutil.c", |
Tom Sepez | 5ef9faa | 2015-10-12 15:43:01 -0700 | [diff] [blame] | 303 | ] |
| 304 | } |
| 305 | |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 306 | if (pdf_enable_xfa) { |
| 307 | source_set("fx_tiff") { |
| 308 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 309 | configs += [ |
| 310 | "//build/config/compiler:no_chromium_code", |
| 311 | "//third_party/pdfium:pdfium_config", |
| 312 | ] |
Tom Sepez | b8226d6 | 2016-01-12 16:00:23 -0800 | [diff] [blame] | 313 | deps = [ "//third_party:jpeg" ] |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 314 | sources = [ |
Lei Zhang | 9c2c87d | 2016-01-07 15:52:44 -0800 | [diff] [blame] | 315 | "libtiff/tiffiop.h", |
Lei Zhang | 77689da | 2016-01-07 15:58:35 -0800 | [diff] [blame] | 316 | "libtiff/tiffvers.h", |
Lei Zhang | 9c2c87d | 2016-01-07 15:52:44 -0800 | [diff] [blame] | 317 | "libtiff/tif_aux.c", |
| 318 | "libtiff/tif_close.c", |
| 319 | "libtiff/tif_codec.c", |
| 320 | "libtiff/tif_color.c", |
| 321 | "libtiff/tif_compress.c", |
| 322 | "libtiff/tif_dir.c", |
| 323 | "libtiff/tif_dirinfo.c", |
| 324 | "libtiff/tif_dirread.c", |
| 325 | "libtiff/tif_dirwrite.c", |
| 326 | "libtiff/tif_dumpmode.c", |
| 327 | "libtiff/tif_error.c", |
| 328 | "libtiff/tif_extension.c", |
| 329 | "libtiff/tif_fax3.c", |
| 330 | "libtiff/tif_fax3sm.c", |
| 331 | "libtiff/tif_flush.c", |
| 332 | "libtiff/tif_getimage.c", |
| 333 | "libtiff/tif_jpeg.c", |
| 334 | "libtiff/tif_luv.c", |
| 335 | "libtiff/tif_lzw.c", |
| 336 | "libtiff/tif_next.c", |
| 337 | "libtiff/tif_ojpeg.c", |
| 338 | "libtiff/tif_open.c", |
| 339 | "libtiff/tif_packbits.c", |
| 340 | "libtiff/tif_pixarlog.c", |
| 341 | "libtiff/tif_predict.c", |
| 342 | "libtiff/tif_print.c", |
| 343 | "libtiff/tif_read.c", |
| 344 | "libtiff/tif_strip.c", |
| 345 | "libtiff/tif_swab.c", |
| 346 | "libtiff/tif_thunder.c", |
| 347 | "libtiff/tif_tile.c", |
| 348 | "libtiff/tif_version.c", |
| 349 | "libtiff/tif_warning.c", |
| 350 | "libtiff/tif_write.c", |
| 351 | "libtiff/tif_zip.c", |
Tom Sepez | 465ed87 | 2015-12-09 14:55:41 -0800 | [diff] [blame] | 352 | ] |
| 353 | } |
Tom Sepez | 5ef9faa | 2015-10-12 15:43:01 -0700 | [diff] [blame] | 354 | } |
| 355 | |
Tom Sepez | 6f93de5 | 2015-06-19 12:57:10 -0700 | [diff] [blame] | 356 | source_set("fx_zlib") { |
| 357 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 358 | configs += [ |
| 359 | "//build/config/compiler:no_chromium_code", |
| 360 | "//third_party/pdfium:pdfium_config", |
| 361 | ] |
| 362 | sources = [ |
| 363 | "zlib_v128/adler32.c", |
| 364 | "zlib_v128/compress.c", |
| 365 | "zlib_v128/crc32.c", |
| 366 | "zlib_v128/deflate.c", |
| 367 | "zlib_v128/gzclose.c", |
| 368 | "zlib_v128/gzlib.c", |
| 369 | "zlib_v128/gzread.c", |
| 370 | "zlib_v128/gzwrite.c", |
| 371 | "zlib_v128/infback.c", |
| 372 | "zlib_v128/inffast.c", |
| 373 | "zlib_v128/inflate.c", |
| 374 | "zlib_v128/inftrees.c", |
| 375 | "zlib_v128/trees.c", |
| 376 | "zlib_v128/uncompr.c", |
| 377 | "zlib_v128/zutil.c", |
| 378 | ] |
| 379 | } |
| 380 | |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 381 | source_set("pdfium_base") { |
| 382 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 383 | configs += [ |
| 384 | "//build/config/compiler:no_chromium_code", |
| 385 | "//third_party/pdfium:pdfium_config", |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 386 | ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 387 | sources = [ |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 388 | "base/logging.h", |
| 389 | "base/macros.h", |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 390 | "base/numerics/safe_conversions.h", |
| 391 | "base/numerics/safe_conversions_impl.h", |
| 392 | "base/numerics/safe_math.h", |
| 393 | "base/numerics/safe_math_impl.h", |
Lei Zhang | 5428555 | 2015-10-09 13:57:36 -0700 | [diff] [blame] | 394 | "base/stl_util.h", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 395 | ] |
| 396 | } |