| OLD | NEW |
| 1 { | 1 { |
| 2 'targets': [ | 2 'targets': [ |
| 3 { | 3 { |
| 4 'target_name': 'freetype', | 4 'target_name': 'freetype', |
| 5 'type': 'none', | 5 'type': 'none', |
| 6 'conditions': [ | 6 'conditions': [ |
| 7 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | 7 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 8 'direct_dependent_settings': { | 8 'direct_dependent_settings': { |
| 9 'include_dirs' : [ | 9 'include_dirs' : [ |
| 10 '/usr/include/freetype2', | 10 '/usr/include/freetype2', |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 ], | 39 ], |
| 40 }, | 40 }, |
| 41 { | 41 { |
| 42 'target_name': 'freetype_static', | 42 'target_name': 'freetype_static', |
| 43 'type': 'static_library', | 43 'type': 'static_library', |
| 44 'standalone_static_library': 1, | 44 'standalone_static_library': 1, |
| 45 'dependencies': [ | 45 'dependencies': [ |
| 46 # we are dependent upon PNG for color emoji glyphs | 46 # we are dependent upon PNG for color emoji glyphs |
| 47 'images.gyp:images' | 47 'images.gyp:images' |
| 48 ], | 48 ], |
| 49 'sources': [ | 49 'includes': [ |
| 50 # base components (required) | 50 # common freetype sources needed for both the base Skia build and the |
| 51 '../third_party/externals/freetype/src/base/ftsystem.c', | 51 # libpoppler build for testing only |
| 52 '../third_party/externals/freetype/src/base/ftinit.c', | 52 'freetype.gypi', |
| 53 '../third_party/externals/freetype/src/base/ftdebug.c', | |
| 54 '../third_party/externals/freetype/src/base/ftbase.c', | |
| 55 | |
| 56 '../third_party/externals/freetype/src/base/ftbbox.c', # recommend
ed, see <freetype/ftbbox.h> | |
| 57 '../third_party/externals/freetype/src/base/ftglyph.c', # recommend
ed, see <freetype/ftglyph.h> | |
| 58 | |
| 59 '../third_party/externals/freetype/src/base/ftbitmap.c', # optional,
see <freetype/ftbitmap.h> | |
| 60 '../third_party/externals/freetype/src/base/ftfstype.c', # optional | |
| 61 '../third_party/externals/freetype/src/base/ftgasp.c', # optional,
see <freetype/ftgasp.h> | |
| 62 '../third_party/externals/freetype/src/base/ftlcdfil.c', # optional,
see <freetype/ftlcdfil.h> | |
| 63 '../third_party/externals/freetype/src/base/ftmm.c', # optional,
see <freetype/ftmm.h> | |
| 64 '../third_party/externals/freetype/src/base/ftpatent.c', # optional | |
| 65 '../third_party/externals/freetype/src/base/ftstroke.c', # optional,
see <freetype/ftstroke.h> | |
| 66 '../third_party/externals/freetype/src/base/ftsynth.c', # optional,
see <freetype/ftsynth.h> | |
| 67 '../third_party/externals/freetype/src/base/fttype1.c', # optional,
see <freetype/t1tables.h> | |
| 68 '../third_party/externals/freetype/src/base/ftwinfnt.c', # optional,
see <freetype/ftwinfnt.h> | |
| 69 '../third_party/externals/freetype/src/base/ftxf86.c', # optional,
see <freetype/ftxf86.h> | |
| 70 | |
| 71 # font drivers (optional; at least one is needed) | |
| 72 '../third_party/externals/freetype/src/cff/cff.c', # CFF/OpenT
ype font driver | |
| 73 '../third_party/externals/freetype/src/sfnt/sfnt.c', # SFNT file
s support (TrueType & OpenType) | |
| 74 '../third_party/externals/freetype/src/truetype/truetype.c', # TrueType
font driver | |
| 75 | |
| 76 # rasterizers (optional; at least one is needed for vector formats) | |
| 77 '../third_party/externals/freetype/src/raster/raster.c', # monochrom
e rasterizer | |
| 78 '../third_party/externals/freetype/src/smooth/smooth.c', # anti-alia
sing rasterizer | |
| 79 | |
| 80 # auxiliary modules (optional) | |
| 81 '../third_party/externals/freetype/src/autofit/autofit.c', # auto hint
ing module | |
| 82 '../third_party/externals/freetype/src/pshinter/pshinter.c', # PS hintin
g module | |
| 83 '../third_party/externals/freetype/src/psnames/psnames.c', # PostScrip
t glyph names support | |
| 84 ], | 53 ], |
| 85 'include_dirs': [ | 54 'include_dirs': [ |
| 86 '../third_party/freetype/include_overrides', | 55 '../third_party/freetype/include_overrides', |
| 87 '../third_party/externals/freetype/internal', | |
| 88 '../third_party/externals/freetype/builds', | |
| 89 '../third_party/externals/freetype/include', | |
| 90 '../third_party/externals/freetype', | |
| 91 ], | |
| 92 'cflags': [ | |
| 93 '-DFT2_BUILD_LIBRARY', | |
| 94 ], | 56 ], |
| 95 'direct_dependent_settings': { | 57 'direct_dependent_settings': { |
| 96 'include_dirs': [ | 58 'include_dirs': [ |
| 97 '../third_party/freetype/include_overrides', | 59 '../third_party/freetype/include_overrides', |
| 98 '../third_party/externals/freetype/include', | |
| 99 ], | 60 ], |
| 100 }, | 61 }, |
| 101 'conditions': [ | 62 'conditions': [ |
| 102 [ 'skia_warnings_as_errors', { | |
| 103 'cflags!': [ | |
| 104 '-Werror', | |
| 105 ], | |
| 106 }], | |
| 107 [ 'skia_os == "mac"', { | |
| 108 'sources': [ | |
| 109 '../third_party/externals/freetype/src/base/ftmac.c', # only
on the Macintosh | |
| 110 ], | |
| 111 }], | |
| 112 [ 'skia_os == "android"', { | 63 [ 'skia_os == "android"', { |
| 113 # These flags are used by the Android OS. They are probably overkill | 64 # These flags are used by the Android OS. They are probably overkill |
| 114 # for Skia, but we add them for consistency. | 65 # for Skia, but we add them for consistency. |
| 115 'cflags': [ | 66 'cflags': [ |
| 116 '-W', | 67 '-W', |
| 117 '-Wall', | 68 '-Wall', |
| 118 '-fPIC', | 69 '-fPIC', |
| 119 '-DPIC', | 70 '-DPIC', |
| 120 '-DDARWIN_NO_CARBON', | 71 '-DDARWIN_NO_CARBON', |
| 121 '-DFT2_BUILD_LIBRARY', | 72 '-DFT2_BUILD_LIBRARY', |
| 122 '-O2', | 73 '-O2', |
| 123 ], | 74 ], |
| 124 }], | 75 }], |
| 125 ], | 76 ], |
| 126 }, | 77 }, |
| 78 { |
| 79 'target_name': 'freetype_poppler', |
| 80 'type': 'static_library', |
| 81 'standalone_static_library': 1, |
| 82 'includes': [ |
| 83 'freetype.gypi', |
| 84 ], |
| 85 'sources': [ |
| 86 # additional components used by poppler |
| 87 '../third_party/externals/freetype/src/base/ftbdf.c', |
| 88 '../third_party/externals/freetype/src/base/ftpfr.c', |
| 89 |
| 90 '../third_party/externals/freetype/src/bdf/bdf.c', |
| 91 '../third_party/externals/freetype/src/cid/type1cid.c', |
| 92 '../third_party/externals/freetype/src/pcf/pcf.c', |
| 93 '../third_party/externals/freetype/src/pfr/pfr.c', |
| 94 '../third_party/externals/freetype/src/psaux/psaux.c', |
| 95 '../third_party/externals/freetype/src/type1/type1.c', |
| 96 '../third_party/externals/freetype/src/type42/type42.c', |
| 97 '../third_party/externals/freetype/src/winfonts/winfnt.c', |
| 98 |
| 99 '../third_party/externals/freetype/src/gzip/ftgzip.c', |
| 100 '../third_party/externals/freetype/src/lzw/ftlzw.c', |
| 101 ], |
| 102 }, |
| 127 ], | 103 ], |
| 128 } | 104 } |
| 129 | 105 |
| 130 # Local Variables: | 106 # Local Variables: |
| 131 # tab-width:2 | 107 # tab-width:2 |
| 132 # indent-tabs-mode:nil | 108 # indent-tabs-mode:nil |
| 133 # End: | 109 # End: |
| 134 # vim: set expandtab tabstop=2 shiftwidth=2: | 110 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |