Update freetype to 2.5.4.
[pdfium.git] / third_party / BUILD.gn
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",
9     ":safemath",
10   ]
11 }
12
13 static_library("bigint") {
14   sources = [
15     "bigint/BigInteger.hh",
16     "bigint/BigIntegerLibrary.hh",
17     "bigint/BigIntegerUtils.hh",
18     "bigint/BigUnsigned.hh",
19     "bigint/NumberlikeArray.hh",
20     "bigint/BigUnsignedInABase.hh",
21     "bigint/BigInteger.cc",
22     "bigint/BigIntegerUtils.cc",
23     "bigint/BigUnsigned.cc",
24     "bigint/BigUnsignedInABase.cc",
25   ]
26 }
27
28 static_library("freetype") {
29   defines = [
30     "FT2_BUILD_LIBRARY",
31   ]
32   include_dirs = [
33     "freetype/include",
34   ]
35   sources = [
36     "freetype/include/freetype.h",
37     "freetype/include/ft2build.h",
38     "freetype/include/ftmm.h",
39     "freetype/include/ftotval.h",
40     "freetype/include/ftoutln.h",
41     "freetype/include/tttables.h",
42     "freetype/include/internal/ftobjs.h",
43     "freetype/include/internal/ftstream.h",
44     "freetype/include/internal/tttypes.h",
45     "freetype/src/cff/cffobjs.h",
46     "freetype/src/cff/cfftypes.h",
47     "freetype/src/cff/cff.c",
48     "freetype/src/base/ftbase.c",
49     "freetype/src/base/ftbitmap.c",
50     "freetype/src/base/ftglyph.c",
51     "freetype/src/base/ftinit.c",
52     "freetype/src/base/ftlcdfil.c",
53     "freetype/src/base/ftmm.c",
54     "freetype/src/base/ftsystem.c",
55     "freetype/src/psaux/psaux.c",
56     "freetype/src/pshinter/pshinter.c",
57     "freetype/src/psnames/psmodule.c",
58     "freetype/src/raster/raster.c",
59     "freetype/src/sfnt/sfnt.c",
60     "freetype/src/smooth/smooth.c",
61     "freetype/src/truetype/truetype.c",
62     "freetype/src/type1/type1.c",
63     "freetype/src/cid/type1cid.c",
64   ]
65 }
66
67 component("safemath") {
68   sources = [
69     "logging.h",
70     "macros.h",
71     "template_util.h",
72     "numerics/safe_conversions.h",
73     "numerics/safe_conversions_impl.h",
74     "numerics/safe_math.h",
75     "numerics/safe_math_impl.h",
76   ]
77 }
78