scroggo | 3e56227 | 2015-03-25 10:22:41 -0700 | [diff] [blame] | 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. |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 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> |
bungeman | 13dd023 | 2015-10-27 08:39:39 -0700 | [diff] [blame] | 26 | '../third_party/externals/freetype/src/base/ftfntfmt.c', # optional, see <freetype/ftfntfmt.h> |
| 27 | '../third_party/externals/freetype/src/gzip/ftgzip.c', # required for sfnt/sfnt.c |
| 28 | # (with FT_CONFIG_OPTION_USE_ZLIB) |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 29 | |
| 30 | # font drivers (optional; at least one is needed) |
| 31 | '../third_party/externals/freetype/src/cff/cff.c', # CFF/OpenType font driver |
| 32 | '../third_party/externals/freetype/src/sfnt/sfnt.c', # SFNT files support (TrueType & OpenType) |
| 33 | '../third_party/externals/freetype/src/truetype/truetype.c', # TrueType font driver |
| 34 | |
| 35 | # rasterizers (optional; at least one is needed for vector formats) |
| 36 | '../third_party/externals/freetype/src/raster/raster.c', # monochrome rasterizer |
| 37 | '../third_party/externals/freetype/src/smooth/smooth.c', # anti-aliasing rasterizer |
| 38 | |
| 39 | # auxiliary modules (optional) |
| 40 | '../third_party/externals/freetype/src/autofit/autofit.c', # auto hinting module |
| 41 | '../third_party/externals/freetype/src/pshinter/pshinter.c', # PS hinting module |
| 42 | '../third_party/externals/freetype/src/psnames/psnames.c', # PostScript glyph names support |
| 43 | ], |
| 44 | 'include_dirs': [ |
bungeman | 13dd023 | 2015-10-27 08:39:39 -0700 | [diff] [blame] | 45 | '../third_party/freetype', |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 46 | '../third_party/externals/freetype/internal', |
| 47 | '../third_party/externals/freetype/builds', |
| 48 | '../third_party/externals/freetype/include', |
| 49 | '../third_party/externals/freetype', |
| 50 | ], |
| 51 | 'defines': [ |
| 52 | 'FT2_BUILD_LIBRARY', |
bungeman | 13dd023 | 2015-10-27 08:39:39 -0700 | [diff] [blame] | 53 | 'FT_CONFIG_MODULES_H=<include/freetype-android/ftmodule.h>', |
| 54 | 'FT_CONFIG_OPTIONS_H=<include/freetype-android/ftoption.h>', |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 55 | ], |
| 56 | 'conditions': [ |
| 57 | [ 'skia_warnings_as_errors', { |
| 58 | 'cflags!': [ |
| 59 | '-Werror', |
| 60 | ], |
| 61 | }], |
| 62 | [ 'skia_os == "mac"', { |
| 63 | 'sources': [ |
| 64 | '../third_party/externals/freetype/src/base/ftmac.c', # only on the Macintosh |
| 65 | ], |
| 66 | }], |
| 67 | ], |
| 68 | 'direct_dependent_settings': { |
| 69 | 'include_dirs': [ |
| 70 | '../third_party/externals/freetype/include', |
| 71 | ], |
| 72 | }, |
| 73 | } |