Home | History | Annotate | Download | only in gyp
      1 {
      2   'targets': [
      3     {
      4       'target_name': 'freetype',
      5       'type': 'static_library',
      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/psaux/psaux.c',       # PostScript Type 1 parsing
     40         '../third_party/externals/freetype/src/pshinter/pshinter.c', # PS hinting module
     41         '../third_party/externals/freetype/src/psnames/psnames.c',   # PostScript glyph names support
     42       ],
     43       'include_dirs': [
     44         '../third_party/externals/freetype/internal',
     45         '../third_party/externals/freetype/builds',
     46         '../third_party/externals/freetype/include',
     47         '../third_party/externals/freetype',
     48       ],
     49       'cflags': [
     50         '-DFT2_BUILD_LIBRARY',
     51       ],
     52       'direct_dependent_settings': {
     53         'include_dirs': [
     54           '../third_party/externals/freetype/include',
     55         ],
     56       },
     57       'conditions': [
     58         [ 'skia_os == "mac"', {
     59           'sources': [
     60             '../third_party/externals/freetype/src/base/ftmac.c',        # only on the Macintosh
     61           ],
     62         }],
     63         [ 'skia_os == "android"', {
     64           # These flags are used by the Android OS.  They are probably overkill
     65           # for Skia, but we add them for consistency.
     66           'cflags': [
     67             '-W',
     68             '-Wall',
     69             '-fPIC',
     70             '-DPIC',
     71             '-DDARWIN_NO_CARBON',
     72             '-DFT2_BUILD_LIBRARY',
     73             '-O2',
     74           ],
     75           'cflags!': [
     76             '-fno-rtti', # supress warnings about invalid option of non-C++ code
     77           ],
     78         }],
     79       ],
     80     },
     81   ],
     82 }
     83 
     84 # Local Variables:
     85 # tab-width:2
     86 # indent-tabs-mode:nil
     87 # End:
     88 # vim: set expandtab tabstop=2 shiftwidth=2:
     89