OLD | NEW |
1 { | 1 { |
2 'targets': [ | 2 'targets': [ |
3 { | 3 { |
4 'target_name': 'freetype', | 4 'target_name': 'freetype', |
| 5 'type': 'none', |
| 6 'conditions': [ |
| 7 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
| 8 'direct_dependent_settings': { |
| 9 'include_dirs' : [ |
| 10 '/usr/include/freetype2', |
| 11 ], |
| 12 'link_settings': { |
| 13 'libraries': [ |
| 14 '-lfreetype', |
| 15 ], |
| 16 'defines': [ |
| 17 #The font host requires at least FreeType 2.3.0 at runtime. |
| 18 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ |
| 19 'SK_CAN_USE_DLOPEN=1', |
| 20 ], |
| 21 } |
| 22 }, |
| 23 }], |
| 24 [ 'skia_os in ["android", "nacl"]', { |
| 25 'dependencies': [ |
| 26 'freetype_static' |
| 27 ], |
| 28 'export_dependent_settings': [ |
| 29 'freetype_static' |
| 30 ], |
| 31 'direct_dependent_settings': { |
| 32 'defines': [ |
| 33 # Both Android and NaCl provide at least FreeType 2.4.0 |
| 34 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
| 35 'SK_CAN_USE_DLOPEN=0', |
| 36 ], |
| 37 }, |
| 38 }], |
| 39 ], |
| 40 }, |
| 41 { |
| 42 'target_name': 'freetype_static', |
5 'type': 'static_library', | 43 'type': 'static_library', |
6 'standalone_static_library': 1, | 44 'standalone_static_library': 1, |
7 'sources': [ | 45 'sources': [ |
8 # base components (required) | 46 # base components (required) |
9 '../third_party/externals/freetype/src/base/ftsystem.c', | 47 '../third_party/externals/freetype/src/base/ftsystem.c', |
10 '../third_party/externals/freetype/src/base/ftinit.c', | 48 '../third_party/externals/freetype/src/base/ftinit.c', |
11 '../third_party/externals/freetype/src/base/ftdebug.c', | 49 '../third_party/externals/freetype/src/base/ftdebug.c', |
12 '../third_party/externals/freetype/src/base/ftbase.c', | 50 '../third_party/externals/freetype/src/base/ftbase.c', |
13 | 51 |
14 '../third_party/externals/freetype/src/base/ftbbox.c', # recommend
ed, see <freetype/ftbbox.h> | 52 '../third_party/externals/freetype/src/base/ftbbox.c', # recommend
ed, see <freetype/ftbbox.h> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 ], | 115 ], |
78 }, | 116 }, |
79 ], | 117 ], |
80 } | 118 } |
81 | 119 |
82 # Local Variables: | 120 # Local Variables: |
83 # tab-width:2 | 121 # tab-width:2 |
84 # indent-tabs-mode:nil | 122 # indent-tabs-mode:nil |
85 # End: | 123 # End: |
86 # vim: set expandtab tabstop=2 shiftwidth=2: | 124 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |