reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 1 | { |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 2 | 'targets': [ |
| 3 | { |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 4 | 'target_name': 'freetype', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 5 | 'type': 'static_library', |
borenet@google.com | 5661c5b | 2013-02-27 14:12:55 +0000 | [diff] [blame] | 6 | 'standalone_static_library': 1, |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 7 | 'sources': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 8 | # base components (required) |
| 9 | '../third_party/externals/freetype/src/base/ftsystem.c', |
| 10 | '../third_party/externals/freetype/src/base/ftinit.c', |
| 11 | '../third_party/externals/freetype/src/base/ftdebug.c', |
| 12 | '../third_party/externals/freetype/src/base/ftbase.c', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 13 | |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 14 | '../third_party/externals/freetype/src/base/ftbbox.c', # recommended, see <freetype/ftbbox.h> |
| 15 | '../third_party/externals/freetype/src/base/ftglyph.c', # recommended, see <freetype/ftglyph.h> |
| 16 | |
| 17 | '../third_party/externals/freetype/src/base/ftbitmap.c', # optional, see <freetype/ftbitmap.h> |
| 18 | '../third_party/externals/freetype/src/base/ftfstype.c', # optional |
| 19 | '../third_party/externals/freetype/src/base/ftgasp.c', # optional, see <freetype/ftgasp.h> |
| 20 | '../third_party/externals/freetype/src/base/ftlcdfil.c', # optional, see <freetype/ftlcdfil.h> |
| 21 | '../third_party/externals/freetype/src/base/ftmm.c', # optional, see <freetype/ftmm.h> |
| 22 | '../third_party/externals/freetype/src/base/ftpatent.c', # optional |
| 23 | '../third_party/externals/freetype/src/base/ftstroke.c', # optional, see <freetype/ftstroke.h> |
| 24 | '../third_party/externals/freetype/src/base/ftsynth.c', # optional, see <freetype/ftsynth.h> |
| 25 | '../third_party/externals/freetype/src/base/fttype1.c', # optional, see <freetype/t1tables.h> |
| 26 | '../third_party/externals/freetype/src/base/ftwinfnt.c', # optional, see <freetype/ftwinfnt.h> |
| 27 | '../third_party/externals/freetype/src/base/ftxf86.c', # optional, see <freetype/ftxf86.h> |
| 28 | |
| 29 | # font drivers (optional; at least one is needed) |
| 30 | '../third_party/externals/freetype/src/cff/cff.c', # CFF/OpenType font driver |
| 31 | '../third_party/externals/freetype/src/sfnt/sfnt.c', # SFNT files support (TrueType & OpenType) |
| 32 | '../third_party/externals/freetype/src/truetype/truetype.c', # TrueType font driver |
| 33 | |
| 34 | # rasterizers (optional; at least one is needed for vector formats) |
| 35 | '../third_party/externals/freetype/src/raster/raster.c', # monochrome rasterizer |
| 36 | '../third_party/externals/freetype/src/smooth/smooth.c', # anti-aliasing rasterizer |
| 37 | |
| 38 | # auxiliary modules (optional) |
| 39 | '../third_party/externals/freetype/src/autofit/autofit.c', # auto hinting module |
| 40 | '../third_party/externals/freetype/src/psaux/psaux.c', # PostScript Type 1 parsing |
| 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 |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 43 | ], |
| 44 | 'include_dirs': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 45 | '../third_party/externals/freetype/internal', |
| 46 | '../third_party/externals/freetype/builds', |
| 47 | '../third_party/externals/freetype/include', |
| 48 | '../third_party/externals/freetype', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 49 | ], |
| 50 | 'cflags': [ |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 51 | '-DFT2_BUILD_LIBRARY', |
| 52 | ], |
| 53 | 'direct_dependent_settings': { |
| 54 | 'include_dirs': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 55 | '../third_party/externals/freetype/include', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 56 | ], |
| 57 | }, |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 58 | 'conditions': [ |
| 59 | [ 'skia_os == "mac"', { |
| 60 | 'sources': [ |
| 61 | '../third_party/externals/freetype/src/base/ftmac.c', # only on the Macintosh |
| 62 | ], |
| 63 | }], |
| 64 | [ 'skia_os == "android"', { |
| 65 | # These flags are used by the Android OS. They are probably overkill |
| 66 | # for Skia, but we add them for consistency. |
| 67 | 'cflags': [ |
| 68 | '-W', |
| 69 | '-Wall', |
| 70 | '-fPIC', |
| 71 | '-DPIC', |
| 72 | '-DDARWIN_NO_CARBON', |
| 73 | '-DFT2_BUILD_LIBRARY', |
| 74 | '-O2', |
| 75 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 76 | }], |
| 77 | ], |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 78 | }, |
| 79 | ], |
| 80 | } |
| 81 | |
| 82 | # Local Variables: |
| 83 | # tab-width:2 |
| 84 | # indent-tabs-mode:nil |
| 85 | # End: |
| 86 | # vim: set expandtab tabstop=2 shiftwidth=2: |