Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Target for building freetype. | 1 # Target for building freetype. |
| 2 { | 2 { |
| 3 'targets': [ | 3 'targets': [ |
| 4 { | 4 { |
| 5 'target_name': 'freetype', | 5 'target_name': 'freetype', |
| 6 'type': 'none', | 6 'type': 'none', |
| 7 'conditions': [ | 7 'conditions': [ |
| 8 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | 8 [ 'skia_freetype_static', |
| 9 'direct_dependent_settings': { | 9 { |
| 10 'include_dirs' : [ | 10 'dependencies': [ |
| 11 '/usr/include/freetype2', | 11 'freetype_static' |
| 12 ], | 12 ], |
| 13 'link_settings': { | 13 'export_dependent_settings': [ |
| 14 'libraries': [ | 14 'freetype_static' |
| 15 '-lfreetype', | 15 ], |
| 16 'direct_dependent_settings': { | |
| 17 'defines': [ | |
| 18 # Both Android and NaCl provide at least FreeType 2.4.0 | |
| 19 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', | |
|
scroggo
2014/02/19 18:33:57
If I understand Eric's comment in https://coderevi
borenet
2014/02/21 15:24:34
Yes, everything in this block only makes sense on
hal.canary
2014/02/24 17:42:35
I think I've got it right now.
| |
| 20 'SK_CAN_USE_DLOPEN=0', | |
| 16 ], | 21 ], |
| 17 'defines': [ | 22 }, |
| 18 #The font host requires at least FreeType 2.3.0 at runtime. | 23 }, { # (not skia_freetype_static) |
| 19 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300',\ | 24 'direct_dependent_settings': { |
| 20 'SK_CAN_USE_DLOPEN=1', | 25 'include_dirs' : [ |
| 26 '/usr/include/freetype2', | |
| 21 ], | 27 ], |
| 22 } | 28 'link_settings': { |
| 23 }, | 29 'libraries': [ |
| 24 }], | 30 '-lfreetype', |
| 25 [ 'skia_os in ["android", "nacl"]', { | 31 ], |
| 26 'dependencies': [ | 32 'defines': [ |
| 27 'freetype_static' | 33 #The font host requires at least FreeType 2.3.0 at runtime. |
| 28 ], | 34 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020300', |
| 29 'export_dependent_settings': [ | 35 'SK_CAN_USE_DLOPEN=1', |
| 30 'freetype_static' | 36 ], |
| 31 ], | 37 } |
| 32 'direct_dependent_settings': { | 38 }, |
| 33 'defines': [ | 39 } |
| 34 # Both Android and NaCl provide at least FreeType 2.4.0 | 40 ], |
| 35 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', | 41 [ 'skia_android_framework', |
| 36 'SK_CAN_USE_DLOPEN=0', | 42 { |
| 37 ], | |
| 38 }, | |
| 39 }], | |
| 40 [ 'skia_android_framework', { | |
| 41 'include_dirs': [ | 43 'include_dirs': [ |
| 42 'external/expat/lib', | 44 'external/expat/lib', |
| 43 'external/freetype/include', | 45 'external/freetype/include', |
| 44 ], | 46 ], |
| 45 'libraries': [ | 47 'libraries': [ |
| 46 '-lft2', | 48 '-lft2', |
| 47 ], | 49 ], |
| 48 # Remove these, and use the system's freetype instead. | 50 # Remove these, and use the system's freetype instead. |
| 49 'dependencies!': [ | 51 'dependencies!': [ |
| 50 'freetype_static', | 52 'freetype_static', |
| 51 ], | 53 ], |
| 52 'export_dependent_settings!': [ | 54 'export_dependent_settings!': [ |
| 53 'freetype_static', | 55 'freetype_static', |
| 54 ] | 56 ] |
| 55 }], | 57 }], |
| 56 ], | 58 ], |
| 57 }, | 59 }, |
| 58 { | 60 { |
| 59 'target_name': 'freetype_static', | 61 'target_name': 'freetype_static', |
| 60 'type': 'static_library', | 62 'type': 'static_library', |
| 61 'standalone_static_library': 1, | 63 'standalone_static_library': 1, |
| 62 'dependencies': [ | 64 'dependencies': [ |
| 63 # we are dependent upon PNG for color emoji glyphs | 65 # we are dependent upon PNG for color emoji glyphs |
| 64 'images.gyp:images' | 66 'libpng.gyp:libpng', |
| 65 ], | 67 ], |
| 66 'includes': [ | 68 'includes': [ |
| 67 # common freetype sources needed for both the base Skia build and the | 69 # common freetype sources needed for both the base Skia build and the |
| 68 # libpoppler build for testing only | 70 # libpoppler build for testing only |
| 69 'freetype.gypi', | 71 'freetype.gypi', |
| 70 ], | 72 ], |
| 71 'include_dirs': [ | 73 'include_dirs': [ |
| 72 '../third_party/freetype/include_overrides', | 74 '../third_party/freetype/include_overrides', |
| 73 ], | 75 ], |
| 74 'direct_dependent_settings': { | 76 'direct_dependent_settings': { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 112 '../third_party/externals/freetype/src/type1/type1.c', | 114 '../third_party/externals/freetype/src/type1/type1.c', |
| 113 '../third_party/externals/freetype/src/type42/type42.c', | 115 '../third_party/externals/freetype/src/type42/type42.c', |
| 114 '../third_party/externals/freetype/src/winfonts/winfnt.c', | 116 '../third_party/externals/freetype/src/winfonts/winfnt.c', |
| 115 | 117 |
| 116 '../third_party/externals/freetype/src/gzip/ftgzip.c', | 118 '../third_party/externals/freetype/src/gzip/ftgzip.c', |
| 117 '../third_party/externals/freetype/src/lzw/ftlzw.c', | 119 '../third_party/externals/freetype/src/lzw/ftlzw.c', |
| 118 ], | 120 ], |
| 119 }, | 121 }, |
| 120 ], | 122 ], |
| 121 } | 123 } |
| OLD | NEW |