blob: df02938a93ca6022c5c1371666916927743dc7ac [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",
9 ":safemath",
10 ]
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
33static_library("freetype") {
Tom Sepez54172662015-01-09 14:49:47 -080034 configs -= [ "//build/config/compiler:chromium_code" ]
35 configs += [
36 "//third_party/pdfium:pdfium_config",
37 "//build/config/compiler:no_chromium_code",
Bo Xu4c764f32014-12-19 14:29:17 -080038 ]
John Abd-El-Malekef4dce42015-02-02 16:52:07 -080039 defines = [ "FT2_BUILD_LIBRARY" ]
Bo Xu4c764f32014-12-19 14:29:17 -080040 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
72component("safemath") {
Tom Sepez54172662015-01-09 14:49:47 -080073 configs -= [ "//build/config/compiler:chromium_code" ]
74 configs += [
75 "//third_party/pdfium:pdfium_config",
76 "//build/config/compiler:no_chromium_code",
77 ]
Bo Xu4c764f32014-12-19 14:29:17 -080078 sources = [
79 "logging.h",
80 "macros.h",
81 "template_util.h",
82 "numerics/safe_conversions.h",
83 "numerics/safe_conversions_impl.h",
84 "numerics/safe_math.h",
85 "numerics/safe_math_impl.h",
86 ]
87}
88