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 # Port-specific Skia library code. | 5 # Port-specific Skia library code. |
6 { | 6 { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 'target_name': 'ports', | 9 'target_name': 'ports', |
10 'product_name': 'skia_ports', | 10 'product_name': 'skia_ports', |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 'sources': [ | 63 'sources': [ |
64 '../src/ports/SkFontHost_FreeType.cpp', | 64 '../src/ports/SkFontHost_FreeType.cpp', |
65 '../src/ports/SkFontHost_FreeType_common.cpp', | 65 '../src/ports/SkFontHost_FreeType_common.cpp', |
66 ], | 66 ], |
67 'dependencies': [ | 67 'dependencies': [ |
68 'freetype.gyp:freetype', | 68 'freetype.gyp:freetype', |
69 ], | 69 ], |
70 }], | 70 }], |
71 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { | 71 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', { |
72 'conditions': [ | 72 'conditions': [ |
73 [ 'skia_no_fontconfig', { | 73 [ 'skia_embedded_fonts', { |
74 'link_settings': { | 74 'link_settings': { |
75 'libraries': [ | 75 'libraries': [ |
76 '-ldl', | 76 '-ldl', |
| 77 ], |
| 78 }, |
| 79 'variables': { |
| 80 'embedded_font_data_identifier': 'sk_fonts', |
| 81 'fonts_to_include': [ |
| 82 '../resources/Funkster.ttf', |
| 83 ], |
| 84 }, |
| 85 'sources': [ |
| 86 '../src/ports/SkFontHost_linux.cpp', |
| 87 ], |
| 88 'actions': [{ |
| 89 'action_name': 'generate_embedded_font_data', |
| 90 'inputs': [ |
| 91 '../tools/embed_resources.py', |
| 92 '<@(fonts_to_include)', |
| 93 ], |
| 94 'outputs': [ |
| 95 '<(SHARED_INTERMEDIATE_DIR)/ports/fonts/fonts.cpp', |
| 96 ], |
| 97 'action': ['python', '../tools/embed_resources.py', |
| 98 '--align', '4', |
| 99 '--name', '<(embedded_font_data_identifier)
', |
| 100 '--input', '<@(fonts_to_include)', |
| 101 '--output', '<@(_outputs)', |
| 102 ], |
| 103 'message': 'Generating <@(_outputs)', |
| 104 'process_outputs_as_sources': 1, |
| 105 }], |
| 106 'defines': [ |
| 107 'SK_EMBEDDED_FONTS=<(embedded_font_data_identifier)', |
| 108 ], |
| 109 }, 'skia_no_fontconfig', { |
| 110 'link_settings': { |
| 111 'libraries': [ |
| 112 '-ldl', |
77 ], | 113 ], |
78 }, | 114 }, |
79 'sources': [ | 115 'sources': [ |
80 '../src/ports/SkFontHost_linux.cpp', | 116 '../src/ports/SkFontHost_linux.cpp', |
81 ], | 117 ], |
82 }, { | 118 }, { |
83 'link_settings': { | 119 'link_settings': { |
84 'libraries': [ | 120 'libraries': [ |
85 '-lfontconfig', | 121 '-lfontconfig', |
86 '-ldl', | 122 '-ldl', |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 }], | 222 }], |
187 ], | 223 ], |
188 'direct_dependent_settings': { | 224 'direct_dependent_settings': { |
189 'include_dirs': [ | 225 'include_dirs': [ |
190 '../include/ports', | 226 '../include/ports', |
191 ], | 227 ], |
192 }, | 228 }, |
193 }, | 229 }, |
194 ], | 230 ], |
195 } | 231 } |
OLD | NEW |