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 | |
| 5 | group("third_party") { |
| 6 | deps = [ |
| 7 | ":bigint", |
| 8 | ":freetype", |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 9 | ":pdfium_base", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 10 | ] |
| 11 | } |
| 12 | |
| 13 | static_library("bigint") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 14 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 15 | configs += [ |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 16 | "//build/config/compiler:no_chromium_code", |
| 17 | "//third_party/pdfium:pdfium_config", |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 18 | ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 19 | sources = [ |
| 20 | "bigint/BigInteger.hh", |
| 21 | "bigint/BigIntegerLibrary.hh", |
| 22 | "bigint/BigIntegerUtils.hh", |
| 23 | "bigint/BigUnsigned.hh", |
| 24 | "bigint/NumberlikeArray.hh", |
| 25 | "bigint/BigUnsignedInABase.hh", |
| 26 | "bigint/BigInteger.cc", |
| 27 | "bigint/BigIntegerUtils.cc", |
| 28 | "bigint/BigUnsigned.cc", |
| 29 | "bigint/BigUnsignedInABase.cc", |
| 30 | ] |
| 31 | } |
| 32 | |
Tom Sepez | b7d358b | 2015-06-17 10:01:00 -0700 | [diff] [blame] | 33 | source_set("freetype") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 34 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 35 | configs += [ |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 36 | "//build/config/compiler:no_chromium_code", |
| 37 | "//third_party/pdfium:pdfium_config", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 38 | ] |
John Abd-El-Malek | ef4dce4 | 2015-02-02 16:52:07 -0800 | [diff] [blame] | 39 | defines = [ "FT2_BUILD_LIBRARY" ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 40 | sources = [ |
| 41 | "freetype/include/freetype.h", |
| 42 | "freetype/include/ft2build.h", |
| 43 | "freetype/include/ftmm.h", |
| 44 | "freetype/include/ftotval.h", |
| 45 | "freetype/include/ftoutln.h", |
| 46 | "freetype/include/tttables.h", |
| 47 | "freetype/include/internal/ftobjs.h", |
| 48 | "freetype/include/internal/ftstream.h", |
| 49 | "freetype/include/internal/tttypes.h", |
| 50 | "freetype/src/cff/cffobjs.h", |
| 51 | "freetype/src/cff/cfftypes.h", |
| 52 | "freetype/src/cff/cff.c", |
| 53 | "freetype/src/base/ftbase.c", |
| 54 | "freetype/src/base/ftbitmap.c", |
| 55 | "freetype/src/base/ftglyph.c", |
| 56 | "freetype/src/base/ftinit.c", |
| 57 | "freetype/src/base/ftlcdfil.c", |
| 58 | "freetype/src/base/ftmm.c", |
| 59 | "freetype/src/base/ftsystem.c", |
| 60 | "freetype/src/psaux/psaux.c", |
| 61 | "freetype/src/pshinter/pshinter.c", |
| 62 | "freetype/src/psnames/psmodule.c", |
| 63 | "freetype/src/raster/raster.c", |
| 64 | "freetype/src/sfnt/sfnt.c", |
| 65 | "freetype/src/smooth/smooth.c", |
| 66 | "freetype/src/truetype/truetype.c", |
| 67 | "freetype/src/type1/type1.c", |
| 68 | "freetype/src/cid/type1cid.c", |
| 69 | ] |
| 70 | } |
| 71 | |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 72 | source_set("fx_agg") { |
| 73 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 74 | configs += [ |
| 75 | "//build/config/compiler:no_chromium_code", |
| 76 | "//third_party/pdfium:pdfium_config", |
| 77 | ] |
| 78 | sources = [ |
| 79 | "agg23/agg_basics.h", |
| 80 | "agg23/agg_clip_liang_barsky.h", |
| 81 | "agg23/agg_conv_dash.h", |
| 82 | "agg23/agg_conv_stroke.h", |
| 83 | "agg23/agg_curves.cpp", |
| 84 | "agg23/agg_curves.h", |
| 85 | "agg23/agg_path_storage.cpp", |
| 86 | "agg23/agg_path_storage.h", |
| 87 | "agg23/agg_rasterizer_scanline_aa.cpp", |
| 88 | "agg23/agg_rasterizer_scanline_aa.h", |
| 89 | "agg23/agg_renderer_scanline.h", |
| 90 | "agg23/agg_rendering_buffer.h", |
| 91 | "agg23/agg_scanline_u.h", |
| 92 | "agg23/agg_vcgen_dash.cpp", |
| 93 | "agg23/agg_vcgen_stroke.cpp", |
| 94 | ] |
| 95 | } |
| 96 | |
| 97 | source_set("fx_lcms2") { |
Nico Weber | 2827bdd | 2015-07-01 14:08:08 -0700 | [diff] [blame^] | 98 | config("fx_lcms2_warnings") { |
| 99 | if (is_clang) { |
| 100 | # cmslut.cc is sloppy with aggregate initialization. Version 2.7 of this |
| 101 | # library doesn't appear to have this problem. |
| 102 | cflags = [ "-Wno-missing-braces" ] |
| 103 | } |
| 104 | } |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 105 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 106 | configs += [ |
| 107 | "//build/config/compiler:no_chromium_code", |
| 108 | "//third_party/pdfium:pdfium_config", |
Nico Weber | 2827bdd | 2015-07-01 14:08:08 -0700 | [diff] [blame^] | 109 | ":fx_lcms2_warnings", |
Tom Sepez | 8be5575 | 2015-06-17 11:05:02 -0700 | [diff] [blame] | 110 | ] |
| 111 | sources = [ |
| 112 | "lcms2-2.6/include/lcms2.h", |
| 113 | "lcms2-2.6/include/lcms2_plugin.h", |
| 114 | "lcms2-2.6/src/cmscam02.c", |
| 115 | "lcms2-2.6/src/cmscgats.c", |
| 116 | "lcms2-2.6/src/cmscnvrt.c", |
| 117 | "lcms2-2.6/src/cmserr.c", |
| 118 | "lcms2-2.6/src/cmsgamma.c", |
| 119 | "lcms2-2.6/src/cmsgmt.c", |
| 120 | "lcms2-2.6/src/cmshalf.c", |
| 121 | "lcms2-2.6/src/cmsintrp.c", |
| 122 | "lcms2-2.6/src/cmsio0.c", |
| 123 | "lcms2-2.6/src/cmsio1.c", |
| 124 | "lcms2-2.6/src/cmslut.c", |
| 125 | "lcms2-2.6/src/cmsmd5.c", |
| 126 | "lcms2-2.6/src/cmsmtrx.c", |
| 127 | "lcms2-2.6/src/cmsnamed.c", |
| 128 | "lcms2-2.6/src/cmsopt.c", |
| 129 | "lcms2-2.6/src/cmspack.c", |
| 130 | "lcms2-2.6/src/cmspcs.c", |
| 131 | "lcms2-2.6/src/cmsplugin.c", |
| 132 | "lcms2-2.6/src/cmsps2.c", |
| 133 | "lcms2-2.6/src/cmssamp.c", |
| 134 | "lcms2-2.6/src/cmssm.c", |
| 135 | "lcms2-2.6/src/cmstypes.c", |
| 136 | "lcms2-2.6/src/cmsvirt.c", |
| 137 | "lcms2-2.6/src/cmswtpnt.c", |
| 138 | "lcms2-2.6/src/cmsxform.c", |
| 139 | ] |
| 140 | } |
| 141 | |
Tom Sepez | 0a11975 | 2015-06-17 15:46:03 -0700 | [diff] [blame] | 142 | source_set("fx_libjpeg") { |
| 143 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 144 | configs += [ |
| 145 | "//build/config/compiler:no_chromium_code", |
| 146 | "//third_party/pdfium:pdfium_config", |
| 147 | ] |
| 148 | sources = [ |
| 149 | "libjpeg/cderror.h", |
| 150 | "libjpeg/cdjpeg.h", |
| 151 | "libjpeg/fpdfapi_jcapimin.c", |
| 152 | "libjpeg/fpdfapi_jcapistd.c", |
| 153 | "libjpeg/fpdfapi_jccoefct.c", |
| 154 | "libjpeg/fpdfapi_jccolor.c", |
| 155 | "libjpeg/fpdfapi_jcdctmgr.c", |
| 156 | "libjpeg/fpdfapi_jchuff.c", |
| 157 | "libjpeg/fpdfapi_jcinit.c", |
| 158 | "libjpeg/fpdfapi_jcmainct.c", |
| 159 | "libjpeg/fpdfapi_jcmarker.c", |
| 160 | "libjpeg/fpdfapi_jcmaster.c", |
| 161 | "libjpeg/fpdfapi_jcomapi.c", |
| 162 | "libjpeg/fpdfapi_jcparam.c", |
| 163 | "libjpeg/fpdfapi_jcphuff.c", |
| 164 | "libjpeg/fpdfapi_jcprepct.c", |
| 165 | "libjpeg/fpdfapi_jcsample.c", |
| 166 | "libjpeg/fpdfapi_jctrans.c", |
| 167 | "libjpeg/fpdfapi_jdapimin.c", |
| 168 | "libjpeg/fpdfapi_jdapistd.c", |
| 169 | "libjpeg/fpdfapi_jdcoefct.c", |
| 170 | "libjpeg/fpdfapi_jdcolor.c", |
| 171 | "libjpeg/fpdfapi_jddctmgr.c", |
| 172 | "libjpeg/fpdfapi_jdhuff.c", |
| 173 | "libjpeg/fpdfapi_jdinput.c", |
| 174 | "libjpeg/fpdfapi_jdmainct.c", |
| 175 | "libjpeg/fpdfapi_jdmarker.c", |
| 176 | "libjpeg/fpdfapi_jdmaster.c", |
| 177 | "libjpeg/fpdfapi_jdmerge.c", |
| 178 | "libjpeg/fpdfapi_jdphuff.c", |
| 179 | "libjpeg/fpdfapi_jdpostct.c", |
| 180 | "libjpeg/fpdfapi_jdsample.c", |
| 181 | "libjpeg/fpdfapi_jdtrans.c", |
| 182 | "libjpeg/fpdfapi_jerror.c", |
| 183 | "libjpeg/fpdfapi_jfdctfst.c", |
| 184 | "libjpeg/fpdfapi_jfdctint.c", |
| 185 | "libjpeg/fpdfapi_jidctfst.c", |
| 186 | "libjpeg/fpdfapi_jidctint.c", |
| 187 | "libjpeg/fpdfapi_jidctred.c", |
| 188 | "libjpeg/fpdfapi_jmemmgr.c", |
| 189 | "libjpeg/fpdfapi_jmemnobs.c", |
| 190 | "libjpeg/fpdfapi_jutils.c", |
| 191 | "libjpeg/jchuff.h", |
| 192 | "libjpeg/jconfig.h", |
| 193 | "libjpeg/jdct.h", |
| 194 | "libjpeg/jdhuff.h", |
| 195 | "libjpeg/jerror.h", |
| 196 | "libjpeg/jinclude.h", |
| 197 | "libjpeg/jmemsys.h", |
| 198 | "libjpeg/jmorecfg.h", |
| 199 | "libjpeg/jpegint.h", |
| 200 | "libjpeg/jpeglib.h", |
| 201 | "libjpeg/jversion.h", |
| 202 | "libjpeg/makefile", |
| 203 | "libjpeg/transupp.h", |
| 204 | ] |
| 205 | } |
| 206 | |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 207 | source_set("fx_libopenjpeg") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 208 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 209 | configs += [ |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 210 | "//build/config/compiler:no_chromium_code", |
| 211 | "//third_party/pdfium:pdfium_config", |
| 212 | ] |
| 213 | sources = [ |
| 214 | "libopenjpeg20/bio.c", |
| 215 | "libopenjpeg20/cio.c", |
| 216 | "libopenjpeg20/dwt.c", |
| 217 | "libopenjpeg20/event.c", |
| 218 | "libopenjpeg20/function_list.c", |
| 219 | "libopenjpeg20/image.c", |
| 220 | "libopenjpeg20/invert.c", |
| 221 | "libopenjpeg20/j2k.c", |
| 222 | "libopenjpeg20/jp2.c", |
| 223 | "libopenjpeg20/mct.c", |
| 224 | "libopenjpeg20/mqc.c", |
| 225 | "libopenjpeg20/openjpeg.c", |
| 226 | "libopenjpeg20/opj_clock.c", |
| 227 | "libopenjpeg20/pi.c", |
| 228 | "libopenjpeg20/raw.c", |
| 229 | "libopenjpeg20/t1.c", |
| 230 | "libopenjpeg20/t2.c", |
| 231 | "libopenjpeg20/tcd.c", |
| 232 | "libopenjpeg20/tgt.c", |
| 233 | ] |
| 234 | } |
| 235 | |
Tom Sepez | 6f93de5 | 2015-06-19 12:57:10 -0700 | [diff] [blame] | 236 | source_set("fx_zlib") { |
| 237 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 238 | configs += [ |
| 239 | "//build/config/compiler:no_chromium_code", |
| 240 | "//third_party/pdfium:pdfium_config", |
| 241 | ] |
| 242 | sources = [ |
| 243 | "zlib_v128/adler32.c", |
| 244 | "zlib_v128/compress.c", |
| 245 | "zlib_v128/crc32.c", |
| 246 | "zlib_v128/deflate.c", |
| 247 | "zlib_v128/gzclose.c", |
| 248 | "zlib_v128/gzlib.c", |
| 249 | "zlib_v128/gzread.c", |
| 250 | "zlib_v128/gzwrite.c", |
| 251 | "zlib_v128/infback.c", |
| 252 | "zlib_v128/inffast.c", |
| 253 | "zlib_v128/inflate.c", |
| 254 | "zlib_v128/inftrees.c", |
| 255 | "zlib_v128/trees.c", |
| 256 | "zlib_v128/uncompr.c", |
| 257 | "zlib_v128/zutil.c", |
| 258 | ] |
| 259 | } |
| 260 | |
Tom Sepez | 6fd997b | 2015-06-18 17:51:37 -0700 | [diff] [blame] | 261 | source_set("pdfium_base") { |
| 262 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 263 | configs += [ |
| 264 | "//build/config/compiler:no_chromium_code", |
| 265 | "//third_party/pdfium:pdfium_config", |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 266 | ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 267 | sources = [ |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 268 | "base/logging.h", |
| 269 | "base/macros.h", |
Tom Sepez | a07aa98 | 2015-04-17 13:05:21 -0700 | [diff] [blame] | 270 | "base/nonstd_unique_ptr.h", |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 271 | "base/numerics/safe_conversions.h", |
| 272 | "base/numerics/safe_conversions_impl.h", |
| 273 | "base/numerics/safe_math.h", |
| 274 | "base/numerics/safe_math_impl.h", |
Tom Sepez | a07aa98 | 2015-04-17 13:05:21 -0700 | [diff] [blame] | 275 | "base/template_util.h", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 276 | ] |
| 277 | } |