1# Copyright 2015 Google Inc.
2#
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5{
6  'sources': [
7    # base components (required)
8    '../third_party/externals/freetype/src/base/ftsystem.c',
9    '../third_party/externals/freetype/src/base/ftinit.c',
10    '../third_party/externals/freetype/src/base/ftdebug.c',
11    '../third_party/externals/freetype/src/base/ftbase.c',
12
13    '../third_party/externals/freetype/src/base/ftbbox.c',       # recommended, see <freetype/ftbbox.h>
14    '../third_party/externals/freetype/src/base/ftglyph.c',      # recommended, see <freetype/ftglyph.h>
15
16    '../third_party/externals/freetype/src/base/ftbitmap.c',     # optional, see <freetype/ftbitmap.h>
17    '../third_party/externals/freetype/src/base/ftfstype.c',     # optional
18    '../third_party/externals/freetype/src/base/ftgasp.c',       # optional, see <freetype/ftgasp.h>
19    '../third_party/externals/freetype/src/base/ftlcdfil.c',     # optional, see <freetype/ftlcdfil.h>
20    '../third_party/externals/freetype/src/base/ftmm.c',         # optional, see <freetype/ftmm.h>
21    '../third_party/externals/freetype/src/base/ftpatent.c',     # optional
22    '../third_party/externals/freetype/src/base/ftstroke.c',     # optional, see <freetype/ftstroke.h>
23    '../third_party/externals/freetype/src/base/ftsynth.c',      # optional, see <freetype/ftsynth.h>
24    '../third_party/externals/freetype/src/base/fttype1.c',      # optional, see <freetype/t1tables.h>
25    '../third_party/externals/freetype/src/base/ftwinfnt.c',     # optional, see <freetype/ftwinfnt.h>
26    '../third_party/externals/freetype/src/base/ftxf86.c',       # optional, see <freetype/ftxf86.h>
27
28    # font drivers (optional; at least one is needed)
29    '../third_party/externals/freetype/src/cff/cff.c',           # CFF/OpenType font driver
30    '../third_party/externals/freetype/src/sfnt/sfnt.c',         # SFNT files support (TrueType & OpenType)
31    '../third_party/externals/freetype/src/truetype/truetype.c', # TrueType font driver
32
33    # rasterizers (optional; at least one is needed for vector formats)
34    '../third_party/externals/freetype/src/raster/raster.c',     # monochrome rasterizer
35    '../third_party/externals/freetype/src/smooth/smooth.c',     # anti-aliasing rasterizer
36
37    # auxiliary modules (optional)
38    '../third_party/externals/freetype/src/autofit/autofit.c',   # auto hinting module
39    '../third_party/externals/freetype/src/pshinter/pshinter.c', # PS hinting module
40    '../third_party/externals/freetype/src/psnames/psnames.c',   # PostScript glyph names support
41  ],
42  'include_dirs': [
43    '../third_party/externals/freetype/internal',
44    '../third_party/externals/freetype/builds',
45    '../third_party/externals/freetype/include',
46    '../third_party/externals/freetype',
47  ],
48  'defines': [
49    'FT2_BUILD_LIBRARY',
50  ],
51  'conditions': [
52    [ 'skia_warnings_as_errors', {
53      'cflags!': [
54        '-Werror',
55      ],
56    }],
57    [ 'skia_os == "mac"', {
58      'sources': [
59        '../third_party/externals/freetype/src/base/ftmac.c',        # only on the Macintosh
60      ],
61    }],
62  ],
63  'direct_dependent_settings': {
64    'include_dirs': [
65      '../third_party/externals/freetype/include',
66    ],
67  },
68}
69