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', |
djsollen@google.com | 2679ff8 | 2013-07-22 14:12:56 +0000 | [diff] [blame] | 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', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 43 | 'type': 'static_library', |
borenet@google.com | 5661c5b | 2013-02-27 14:12:55 +0000 | [diff] [blame] | 44 | 'standalone_static_library': 1, |
djsollen@google.com | 2e767c3 | 2013-07-23 12:22:11 +0000 | [diff] [blame] | 45 | 'dependencies': [ |
| 46 | # we are dependent upon PNG for color emoji glyphs |
| 47 | 'images.gyp:images' |
| 48 | ], |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 49 | 'includes': [ |
| 50 | # common freetype sources needed for both the base Skia build and the |
| 51 | # libpoppler build for testing only |
| 52 | 'freetype.gypi', |
vandebo@chromium.org | 54c538e | 2013-08-20 17:06:22 +0000 | [diff] [blame] | 53 | ], |
| 54 | 'include_dirs': [ |
| 55 | '../third_party/freetype/include_overrides', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 56 | ], |
| 57 | 'direct_dependent_settings': { |
| 58 | 'include_dirs': [ |
djsollen@google.com | bcc6d7d | 2013-07-23 15:51:12 +0000 | [diff] [blame] | 59 | '../third_party/freetype/include_overrides', |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 60 | ], |
| 61 | }, |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 62 | 'conditions': [ |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 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 | ], |
borenet@google.com | 7158e6a | 2012-11-01 17:43:44 +0000 | [diff] [blame] | 75 | }], |
| 76 | ], |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 77 | }, |
commit-bot@chromium.org | 327c081 | 2013-08-20 18:57:01 +0000 | [diff] [blame] | 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 | }, |
reed@google.com | b76b34e | 2011-11-10 15:00:52 +0000 | [diff] [blame] | 103 | ], |
| 104 | } |