blob: 9353b112a6aa162de3e27ec3572cf5b56995ca23 [file] [log] [blame]
Bo Xu4c764f32014-12-19 14:29:17 -08001# 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
5group("third_party") {
6 deps = [
7 ":bigint",
8 ":freetype",
Tom Sepez35425892015-02-05 10:03:18 -08009 ":pdfium_base",
Bo Xu4c764f32014-12-19 14:29:17 -080010 ]
11}
12
13static_library("bigint") {
Tom Sepez54172662015-01-09 14:49:47 -080014 configs -= [ "//build/config/compiler:chromium_code" ]
15 configs += [
16 "//third_party/pdfium:pdfium_config",
17 "//build/config/compiler:no_chromium_code",
18 ]
Bo Xu4c764f32014-12-19 14:29:17 -080019 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 Sepezb7d358b2015-06-17 10:01:00 -070033source_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
58source_set("freetype") {
Tom Sepez54172662015-01-09 14:49:47 -080059 configs -= [ "//build/config/compiler:chromium_code" ]
60 configs += [
61 "//third_party/pdfium:pdfium_config",
62 "//build/config/compiler:no_chromium_code",
Bo Xu4c764f32014-12-19 14:29:17 -080063 ]
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080064 defines = [ "FT2_BUILD_LIBRARY" ]
Bo Xu4c764f32014-12-19 14:29:17 -080065 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 Sepez35425892015-02-05 10:03:18 -080097component("pdfium_base") {
Tom Sepez54172662015-01-09 14:49:47 -080098 configs -= [ "//build/config/compiler:chromium_code" ]
99 configs += [
100 "//third_party/pdfium:pdfium_config",
101 "//build/config/compiler:no_chromium_code",
102 ]
Bo Xu4c764f32014-12-19 14:29:17 -0800103 sources = [
Tom Sepez35425892015-02-05 10:03:18 -0800104 "base/logging.h",
105 "base/macros.h",
Tom Sepeza07aa982015-04-17 13:05:21 -0700106 "base/nonstd_unique_ptr.h",
Tom Sepez35425892015-02-05 10:03:18 -0800107 "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 Sepeza07aa982015-04-17 13:05:21 -0700111 "base/template_util.h",
Bo Xu4c764f32014-12-19 14:29:17 -0800112 ]
113}
114