OLD | NEW |
1 # Copyright 2015 Google Inc. | 1 # Copyright 2015 Google Inc. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 # Target for building freetype. | 5 # Target for building freetype. |
6 { | 6 { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 'target_name': 'freetype', | 9 'target_name': 'freetype', |
10 'type': 'none', | 10 'type': 'none', |
11 'conditions': [ | 11 'conditions': [ |
12 [ 'skia_freetype_static', | 12 [ 'skia_freetype_static', |
13 { | 13 { |
14 'dependencies': [ | 14 'dependencies': [ |
15 'freetype_static' | 15 'freetype_static' |
16 ], | 16 ], |
17 'export_dependent_settings': [ | 17 'export_dependent_settings': [ |
18 'freetype_static' | 18 'freetype_static' |
19 ], | 19 ], |
20 'conditions': [ | 20 'conditions': [ |
21 [ 'skia_os == "android"', | 21 [ 'skia_os == "android"', |
22 { | 22 { |
23 'direct_dependent_settings': { | 23 'direct_dependent_settings': { |
24 'defines': [ | 24 'defines': [ |
25 # Android provides at least FreeType 2.4.0 | 25 # Android provides at least FreeType 2.4.0 |
26 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', | 26 'SK_FONTHOST_FREETYPE_RUNTIME_VERSION=0x020400', |
27 'SK_CAN_USE_DLOPEN=0', | 27 'SK_CAN_USE_DLOPEN=0', |
28 'SK_ANDROID_FREETYPE_HAS_MM=1', | |
29 ], | 28 ], |
30 } | 29 } |
31 } | 30 } |
32 ] | 31 ] |
33 ], | 32 ], |
34 }, { # (not skia_freetype_static) | 33 }, { # (not skia_freetype_static) |
35 # dynamic linking depends on the OS: | 34 # dynamic linking depends on the OS: |
36 'conditions': [ | 35 'conditions': [ |
37 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos
"]', | 36 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos
"]', |
38 { | 37 { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 '-DPIC', | 107 '-DPIC', |
109 '-DDARWIN_NO_CARBON', | 108 '-DDARWIN_NO_CARBON', |
110 '-DFT2_BUILD_LIBRARY', | 109 '-DFT2_BUILD_LIBRARY', |
111 '-O2', | 110 '-O2', |
112 ], | 111 ], |
113 }], | 112 }], |
114 ], | 113 ], |
115 }, | 114 }, |
116 ], | 115 ], |
117 } | 116 } |
OLD | NEW |