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 += [ |
| 16 | "//third_party/pdfium:pdfium_config", |
| 17 | "//build/config/compiler:no_chromium_code", |
| 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("fx_agg") { |
| 34 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 35 | configs += [ |
| 36 | "//build/config/compiler:no_chromium_code", |
| 37 | "//third_party/pdfium:pdfium_config", |
| 38 | ] |
| 39 | sources = [ |
| 40 | "agg23/agg_basics.h", |
| 41 | "agg23/agg_clip_liang_barsky.h", |
| 42 | "agg23/agg_conv_dash.h", |
| 43 | "agg23/agg_conv_stroke.h", |
| 44 | "agg23/agg_curves.cpp", |
| 45 | "agg23/agg_curves.h", |
| 46 | "agg23/agg_path_storage.cpp", |
| 47 | "agg23/agg_path_storage.h", |
| 48 | "agg23/agg_rasterizer_scanline_aa.cpp", |
| 49 | "agg23/agg_rasterizer_scanline_aa.h", |
| 50 | "agg23/agg_renderer_scanline.h", |
| 51 | "agg23/agg_rendering_buffer.h", |
| 52 | "agg23/agg_scanline_u.h", |
| 53 | "agg23/agg_vcgen_dash.cpp", |
| 54 | "agg23/agg_vcgen_stroke.cpp", |
| 55 | ] |
| 56 | } |
| 57 | |
| 58 | source_set("freetype") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 59 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 60 | configs += [ |
| 61 | "//third_party/pdfium:pdfium_config", |
| 62 | "//build/config/compiler:no_chromium_code", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 63 | ] |
John Abd-El-Malek | ef4dce4 | 2015-02-02 16:52:07 -0800 | [diff] [blame] | 64 | defines = [ "FT2_BUILD_LIBRARY" ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 65 | sources = [ |
| 66 | "freetype/include/freetype.h", |
| 67 | "freetype/include/ft2build.h", |
| 68 | "freetype/include/ftmm.h", |
| 69 | "freetype/include/ftotval.h", |
| 70 | "freetype/include/ftoutln.h", |
| 71 | "freetype/include/tttables.h", |
| 72 | "freetype/include/internal/ftobjs.h", |
| 73 | "freetype/include/internal/ftstream.h", |
| 74 | "freetype/include/internal/tttypes.h", |
| 75 | "freetype/src/cff/cffobjs.h", |
| 76 | "freetype/src/cff/cfftypes.h", |
| 77 | "freetype/src/cff/cff.c", |
| 78 | "freetype/src/base/ftbase.c", |
| 79 | "freetype/src/base/ftbitmap.c", |
| 80 | "freetype/src/base/ftglyph.c", |
| 81 | "freetype/src/base/ftinit.c", |
| 82 | "freetype/src/base/ftlcdfil.c", |
| 83 | "freetype/src/base/ftmm.c", |
| 84 | "freetype/src/base/ftsystem.c", |
| 85 | "freetype/src/psaux/psaux.c", |
| 86 | "freetype/src/pshinter/pshinter.c", |
| 87 | "freetype/src/psnames/psmodule.c", |
| 88 | "freetype/src/raster/raster.c", |
| 89 | "freetype/src/sfnt/sfnt.c", |
| 90 | "freetype/src/smooth/smooth.c", |
| 91 | "freetype/src/truetype/truetype.c", |
| 92 | "freetype/src/type1/type1.c", |
| 93 | "freetype/src/cid/type1cid.c", |
| 94 | ] |
| 95 | } |
| 96 | |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 97 | component("pdfium_base") { |
Tom Sepez | 5417266 | 2015-01-09 14:49:47 -0800 | [diff] [blame] | 98 | configs -= [ "//build/config/compiler:chromium_code" ] |
| 99 | configs += [ |
| 100 | "//third_party/pdfium:pdfium_config", |
| 101 | "//build/config/compiler:no_chromium_code", |
| 102 | ] |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 103 | sources = [ |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 104 | "base/logging.h", |
| 105 | "base/macros.h", |
Tom Sepez | a07aa98 | 2015-04-17 13:05:21 -0700 | [diff] [blame] | 106 | "base/nonstd_unique_ptr.h", |
Tom Sepez | 3542589 | 2015-02-05 10:03:18 -0800 | [diff] [blame] | 107 | "base/numerics/safe_conversions.h", |
| 108 | "base/numerics/safe_conversions_impl.h", |
| 109 | "base/numerics/safe_math.h", |
| 110 | "base/numerics/safe_math_impl.h", |
Tom Sepez | a07aa98 | 2015-04-17 13:05:21 -0700 | [diff] [blame] | 111 | "base/template_util.h", |
Bo Xu | 4c764f3 | 2014-12-19 14:29:17 -0800 | [diff] [blame] | 112 | ] |
| 113 | } |
| 114 | |