blob: f72c29c259a32921c65201a24cdc494eaddc5c96 [file] [log] [blame]
reed@google.comb76b34e2011-11-10 15:00:52 +00001{
reed@google.comb76b34e2011-11-10 15:00:52 +00002 'targets': [
3 {
borenet@google.com7158e6a2012-11-01 17:43:44 +00004 'target_name': 'freetype',
reed@google.comb76b34e2011-11-10 15:00:52 +00005 'type': 'static_library',
borenet@google.com5661c5b2013-02-27 14:12:55 +00006 'standalone_static_library': 1,
reed@google.comb76b34e2011-11-10 15:00:52 +00007 'sources': [
borenet@google.com7158e6a2012-11-01 17:43:44 +00008 # 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.comb76b34e2011-11-10 15:00:52 +000013
borenet@google.com7158e6a2012-11-01 17:43:44 +000014 '../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.comb76b34e2011-11-10 15:00:52 +000043 ],
44 'include_dirs': [
borenet@google.com7158e6a2012-11-01 17:43:44 +000045 '../third_party/externals/freetype/internal',
46 '../third_party/externals/freetype/builds',
47 '../third_party/externals/freetype/include',
48 '../third_party/externals/freetype',
reed@google.comb76b34e2011-11-10 15:00:52 +000049 ],
50 'cflags': [
reed@google.comb76b34e2011-11-10 15:00:52 +000051 '-DFT2_BUILD_LIBRARY',
52 ],
53 'direct_dependent_settings': {
54 'include_dirs': [
borenet@google.com7158e6a2012-11-01 17:43:44 +000055 '../third_party/externals/freetype/include',
reed@google.comb76b34e2011-11-10 15:00:52 +000056 ],
57 },
borenet@google.com7158e6a2012-11-01 17:43:44 +000058 '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.com7158e6a2012-11-01 17:43:44 +000076 }],
77 ],
reed@google.comb76b34e2011-11-10 15:00:52 +000078 },
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: