Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: gyp/ports.gyp

Issue 1228833003: Allow Android font manager on *nix. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove unintended whitespace. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | gyp/tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 '../include/ports/SkRemotableFontMgr.h', 70 '../include/ports/SkRemotableFontMgr.h',
71 ], 71 ],
72 'sources/': [ 72 'sources/': [
73 ['exclude', 'SkFontMgr_.+_factory\\.cpp$'], 73 ['exclude', 'SkFontMgr_.+_factory\\.cpp$'],
74 ], 74 ],
75 'conditions': [ 75 'conditions': [
76 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "an droid"]', { 76 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "an droid"]', {
77 'sources': [ 77 'sources': [
78 '../src/ports/SkFontHost_FreeType.cpp', 78 '../src/ports/SkFontHost_FreeType.cpp',
79 '../src/ports/SkFontHost_FreeType_common.cpp', 79 '../src/ports/SkFontHost_FreeType_common.cpp',
80 '../src/ports/SkFontMgr_android.cpp',
81 '../src/ports/SkFontMgr_android_parser.cpp',
82 '../src/ports/SkFontMgr_custom.cpp',
80 ], 83 ],
81 'dependencies': [ 84 'dependencies': [
82 'freetype.gyp:freetype', 85 'freetype.gyp:freetype',
83 ], 86 ],
84 }],
85 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
86 'conditions': [ 87 'conditions': [
87 [ 'skia_embedded_fonts', { 88 [ 'skia_os == "android"', {
89 'dependencies': [
90 'android_deps.gyp:expat',
91 ],
92 }, {
88 'link_settings': { 93 'link_settings': {
89 'libraries': [ 94 'libraries': [
90 '-ldl', 95 '-ldl',
96 '-lexpat',
91 ], 97 ],
92 }, 98 },
99 }],
100 [ 'skia_embedded_fonts', {
93 'variables': { 101 'variables': {
94 'embedded_font_data_identifier': 'sk_fonts', 102 'embedded_font_data_identifier': 'sk_fonts',
95 'fonts_to_include': [ 103 'fonts_to_include': [
96 '../resources/fonts/Funkster.ttf', 104 '../resources/fonts/Funkster.ttf',
97 ], 105 ],
98 }, 106 },
99 'sources': [
100 '../include/ports/SkFontMgr_custom.h',
101 '../src/ports/SkFontMgr_custom.cpp',
102 ],
103 'sources/': [['include', '../src/ports/SkFontMgr_custom_embedded_f actory.cpp']], 107 'sources/': [['include', '../src/ports/SkFontMgr_custom_embedded_f actory.cpp']],
104 'actions': [{ 108 'actions': [{
105 'action_name': 'generate_embedded_font_data', 109 'action_name': 'generate_embedded_font_data',
106 'inputs': [ 110 'inputs': [
107 '../tools/embed_resources.py', 111 '../tools/embed_resources.py',
108 '<@(fonts_to_include)', 112 '<@(fonts_to_include)',
109 ], 113 ],
110 'outputs': [ 114 'outputs': [
111 '<(SHARED_INTERMEDIATE_DIR)/ports/fonts/fonts.cpp', 115 '<(SHARED_INTERMEDIATE_DIR)/ports/fonts/fonts.cpp',
112 ], 116 ],
113 'action': ['python', '../tools/embed_resources.py', 117 'action': ['python', '../tools/embed_resources.py',
114 '--align', '4', 118 '--align', '4',
115 '--name', '<(embedded_font_data_identifier) ', 119 '--name', '<(embedded_font_data_identifier) ',
116 '--input', '<@(fonts_to_include)', 120 '--input', '<@(fonts_to_include)',
117 '--output', '<@(_outputs)', 121 '--output', '<@(_outputs)',
118 ], 122 ],
119 'message': 'Generating <@(_outputs)', 123 'message': 'Generating <@(_outputs)',
120 'process_outputs_as_sources': 1, 124 'process_outputs_as_sources': 1,
121 }], 125 }],
122 'defines': [ 126 'defines': [
123 'SK_EMBEDDED_FONTS=<(embedded_font_data_identifier)', 127 'SK_EMBEDDED_FONTS=<(embedded_font_data_identifier)',
124 ], 128 ],
125 }, 'skia_no_fontconfig', { 129 }, 'skia_no_fontconfig', {
126 'link_settings': {
127 'libraries': [
128 '-ldl',
129 ],
130 },
131 'sources': [
132 '../include/ports/SkFontMgr_custom.h',
133 '../src/ports/SkFontMgr_custom.cpp',
134 ],
135 'sources/': [['include', '../src/ports/SkFontMgr_custom_directory_ factory.cpp']], 130 'sources/': [['include', '../src/ports/SkFontMgr_custom_directory_ factory.cpp']],
131 }, 'skia_os == "android"', {
132 'sources/': [['include', '../src/ports/SkFontMgr_android_factory.c pp']],
136 }, { 133 }, {
137 'link_settings': { 134 'link_settings': {
138 'libraries': [ 135 'libraries': [
139 '-lfontconfig', 136 '-lfontconfig',
140 '-ldl',
141 ], 137 ],
142 }, 138 },
143 'sources': [ 139 'sources': [
144 '../src/ports/SkFontMgr_fontconfig.cpp', 140 '../src/ports/SkFontMgr_fontconfig.cpp',
145 '../src/ports/SkFontHost_fontconfig.cpp', 141 '../src/ports/SkFontHost_fontconfig.cpp',
146 '../src/ports/SkFontConfigInterface_direct.cpp', 142 '../src/ports/SkFontConfigInterface_direct.cpp',
147 ], 143 ],
148 'sources/': [['include', '../src/ports/SkFontMgr_fontconfig_factor y.cpp']], 144 'sources/': [['include', '../src/ports/SkFontMgr_fontconfig_factor y.cpp']],
149 }] 145 }]
150 ], 146 ],
151 }], 147 }],
152 [ 'skia_os == "mac"', { 148 [ 'skia_os == "mac"', {
153 'include_dirs': [ 149 'include_dirs': [
154 '../include/utils/mac', 150 '../include/utils/mac',
155 ], 151 ],
156 'sources': [ 152 'sources': [
157 '../src/ports/SkFontHost_mac.cpp', 153 '../src/ports/SkFontHost_mac.cpp',
158 '../src/utils/mac/SkStream_mac.cpp', 154 '../src/utils/mac/SkStream_mac.cpp',
159 ], 155 ],
160 'sources!': [
161 '../src/ports/SkFontHost_tables.cpp',
162 ],
163 }], 156 }],
164 [ 'skia_os == "ios"', { 157 [ 'skia_os == "ios"', {
165 'include_dirs': [ 158 'include_dirs': [
166 '../include/utils/ios', 159 '../include/utils/ios',
167 '../include/utils/mac', 160 '../include/utils/mac',
168 ], 161 ],
169 'sources': [ 162 'sources': [
170 '../src/ports/SkFontHost_mac.cpp', 163 '../src/ports/SkFontHost_mac.cpp',
171 '../src/utils/mac/SkStream_mac.cpp', 164 '../src/utils/mac/SkStream_mac.cpp',
172 ], 165 ],
173 'sources!': [
174 '../src/ports/SkFontHost_tables.cpp',
175 ],
176 }], 166 }],
177 [ 'skia_os == "win"', { 167 [ 'skia_os == "win"', {
178 'include_dirs': [ 168 'include_dirs': [
179 'config/win', 169 'config/win',
180 '../src/utils/win', 170 '../src/utils/win',
181 ], 171 ],
182 'sources!': [ # these are used everywhere but windows 172 'sources!': [ # these are used everywhere but windows
183 '../src/ports/SkDebug_stdio.cpp', 173 '../src/ports/SkDebug_stdio.cpp',
184 '../src/ports/SkOSFile_posix.cpp', 174 '../src/ports/SkOSFile_posix.cpp',
185 '../src/ports/SkTime_Unix.cpp', 175 '../src/ports/SkTime_Unix.cpp',
(...skipping 21 matching lines...) Expand all
207 '../src/ports/SkTypeface_win_dw.cpp', 197 '../src/ports/SkTypeface_win_dw.cpp',
208 '../src/ports/SkTypeface_win_dw.h', 198 '../src/ports/SkTypeface_win_dw.h',
209 ], 199 ],
210 }], 200 }],
211 [ 'skia_os == "android"', { 201 [ 'skia_os == "android"', {
212 'sources!': [ 202 'sources!': [
213 '../src/ports/SkDebug_stdio.cpp', 203 '../src/ports/SkDebug_stdio.cpp',
214 ], 204 ],
215 'sources': [ 205 'sources': [
216 '../src/ports/SkDebug_android.cpp', 206 '../src/ports/SkDebug_android.cpp',
217 '../src/ports/SkFontMgr_android.cpp',
218 '../src/ports/SkFontMgr_android_parser.cpp',
219 ],
220 'sources/': [['include', '../src/ports/SkFontMgr_android_factory.cpp'] ],
221 'dependencies': [
222 'android_deps.gyp:expat',
223 ], 207 ],
224 }], 208 }],
225 ], 209 ],
226 'direct_dependent_settings': { 210 'direct_dependent_settings': {
227 'include_dirs': [ 211 'include_dirs': [
228 '../include/ports', 212 '../include/ports',
229 ], 213 ],
230 }, 214 },
231 }, 215 },
232 ], 216 ],
233 } 217 }
OLDNEW
« no previous file with comments | « no previous file | gyp/tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698