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

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: 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 '../include/ports/SkAtomics_sync.h', 61 '../include/ports/SkAtomics_sync.h',
62 '../include/ports/SkFontConfigInterface.h', 62 '../include/ports/SkFontConfigInterface.h',
63 '../include/ports/SkFontMgr.h', 63 '../include/ports/SkFontMgr.h',
64 '../include/ports/SkFontMgr_android.h', 64 '../include/ports/SkFontMgr_android.h',
65 '../include/ports/SkFontMgr_custom.h', 65 '../include/ports/SkFontMgr_custom.h',
66 '../include/ports/SkFontMgr_fontconfig.h', 66 '../include/ports/SkFontMgr_fontconfig.h',
67 '../include/ports/SkFontMgr_indirect.h', 67 '../include/ports/SkFontMgr_indirect.h',
68 '../include/ports/SkMutex_pthread.h', 68 '../include/ports/SkMutex_pthread.h',
69 '../include/ports/SkMutex_win.h', 69 '../include/ports/SkMutex_win.h',
70 '../include/ports/SkRemotableFontMgr.h', 70 '../include/ports/SkRemotableFontMgr.h',
71
djsollen 2015/07/15 13:48:48 remove newline
bungeman-skia 2015/07/15 17:08:48 Done.
71 ], 72 ],
72 'sources/': [ 73 'sources/': [
73 ['exclude', 'SkFontMgr_.+_factory\\.cpp$'], 74 ['exclude', 'SkFontMgr_.+_factory\\.cpp$'],
74 ], 75 ],
75 'conditions': [ 76 'conditions': [
76 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "an droid"]', { 77 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos", "an droid"]', {
77 'sources': [ 78 'sources': [
78 '../src/ports/SkFontHost_FreeType.cpp', 79 '../src/ports/SkFontHost_FreeType.cpp',
79 '../src/ports/SkFontHost_FreeType_common.cpp', 80 '../src/ports/SkFontHost_FreeType_common.cpp',
81 '../src/ports/SkFontMgr_android.cpp',
82 '../src/ports/SkFontMgr_android_parser.cpp',
83 '../src/ports/SkFontMgr_custom.cpp',
80 ], 84 ],
81 'dependencies': [ 85 'dependencies': [
82 'freetype.gyp:freetype', 86 'freetype.gyp:freetype',
83 ], 87 ],
84 }],
85 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "chromeos"]', {
86 'conditions': [ 88 'conditions': [
87 [ 'skia_embedded_fonts', { 89 [ 'skia_os == "android"', {
90 'dependencies': [
91 'android_deps.gyp:expat',
92 ],
93 }, {
88 'link_settings': { 94 'link_settings': {
89 'libraries': [ 95 'libraries': [
90 '-ldl', 96 '-ldl',
97 '-lexpat',
91 ], 98 ],
92 }, 99 },
100 }],
101 [ 'skia_embedded_fonts', {
93 'variables': { 102 'variables': {
94 'embedded_font_data_identifier': 'sk_fonts', 103 'embedded_font_data_identifier': 'sk_fonts',
95 'fonts_to_include': [ 104 'fonts_to_include': [
96 '../resources/fonts/Funkster.ttf', 105 '../resources/fonts/Funkster.ttf',
97 ], 106 ],
98 }, 107 },
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']], 108 'sources/': [['include', '../src/ports/SkFontMgr_custom_embedded_f actory.cpp']],
104 'actions': [{ 109 'actions': [{
105 'action_name': 'generate_embedded_font_data', 110 'action_name': 'generate_embedded_font_data',
106 'inputs': [ 111 'inputs': [
107 '../tools/embed_resources.py', 112 '../tools/embed_resources.py',
108 '<@(fonts_to_include)', 113 '<@(fonts_to_include)',
109 ], 114 ],
110 'outputs': [ 115 'outputs': [
111 '<(SHARED_INTERMEDIATE_DIR)/ports/fonts/fonts.cpp', 116 '<(SHARED_INTERMEDIATE_DIR)/ports/fonts/fonts.cpp',
112 ], 117 ],
113 'action': ['python', '../tools/embed_resources.py', 118 'action': ['python', '../tools/embed_resources.py',
114 '--align', '4', 119 '--align', '4',
115 '--name', '<(embedded_font_data_identifier) ', 120 '--name', '<(embedded_font_data_identifier) ',
116 '--input', '<@(fonts_to_include)', 121 '--input', '<@(fonts_to_include)',
117 '--output', '<@(_outputs)', 122 '--output', '<@(_outputs)',
118 ], 123 ],
119 'message': 'Generating <@(_outputs)', 124 'message': 'Generating <@(_outputs)',
120 'process_outputs_as_sources': 1, 125 'process_outputs_as_sources': 1,
121 }], 126 }],
122 'defines': [ 127 'defines': [
123 'SK_EMBEDDED_FONTS=<(embedded_font_data_identifier)', 128 'SK_EMBEDDED_FONTS=<(embedded_font_data_identifier)',
124 ], 129 ],
125 }, 'skia_no_fontconfig', { 130 }, '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']], 131 'sources/': [['include', '../src/ports/SkFontMgr_custom_directory_ factory.cpp']],
132 }, 'skia_os == "android"', {
133 'sources/': [['include', '../src/ports/SkFontMgr_android_factory.c pp']],
djsollen 2015/07/15 13:48:48 I've never seen this syntax before. What does it
bungeman-skia 2015/07/15 17:08:48 These '/' suffix on the key means inclusion/exclus
136 }, { 134 }, {
137 'link_settings': { 135 'link_settings': {
138 'libraries': [ 136 'libraries': [
139 '-lfontconfig', 137 '-lfontconfig',
140 '-ldl',
141 ], 138 ],
142 }, 139 },
143 'sources': [ 140 'sources': [
144 '../src/ports/SkFontMgr_fontconfig.cpp', 141 '../src/ports/SkFontMgr_fontconfig.cpp',
145 '../src/ports/SkFontHost_fontconfig.cpp', 142 '../src/ports/SkFontHost_fontconfig.cpp',
146 '../src/ports/SkFontConfigInterface_direct.cpp', 143 '../src/ports/SkFontConfigInterface_direct.cpp',
147 ], 144 ],
148 'sources/': [['include', '../src/ports/SkFontMgr_fontconfig_factor y.cpp']], 145 'sources/': [['include', '../src/ports/SkFontMgr_fontconfig_factor y.cpp']],
149 }] 146 }]
150 ], 147 ],
151 }], 148 }],
152 [ 'skia_os == "mac"', { 149 [ 'skia_os == "mac"', {
153 'include_dirs': [ 150 'include_dirs': [
154 '../include/utils/mac', 151 '../include/utils/mac',
155 ], 152 ],
156 'sources': [ 153 'sources': [
157 '../src/ports/SkFontHost_mac.cpp', 154 '../src/ports/SkFontHost_mac.cpp',
158 '../src/utils/mac/SkStream_mac.cpp', 155 '../src/utils/mac/SkStream_mac.cpp',
159 ], 156 ],
160 'sources!': [
161 '../src/ports/SkFontHost_tables.cpp',
162 ],
163 }], 157 }],
164 [ 'skia_os == "ios"', { 158 [ 'skia_os == "ios"', {
165 'include_dirs': [ 159 'include_dirs': [
166 '../include/utils/ios', 160 '../include/utils/ios',
167 '../include/utils/mac', 161 '../include/utils/mac',
168 ], 162 ],
169 'sources': [ 163 'sources': [
170 '../src/ports/SkFontHost_mac.cpp', 164 '../src/ports/SkFontHost_mac.cpp',
171 '../src/utils/mac/SkStream_mac.cpp', 165 '../src/utils/mac/SkStream_mac.cpp',
172 ], 166 ],
173 'sources!': [
174 '../src/ports/SkFontHost_tables.cpp',
175 ],
176 }], 167 }],
177 [ 'skia_os == "win"', { 168 [ 'skia_os == "win"', {
178 'include_dirs': [ 169 'include_dirs': [
179 'config/win', 170 'config/win',
180 '../src/utils/win', 171 '../src/utils/win',
181 ], 172 ],
182 'sources!': [ # these are used everywhere but windows 173 'sources!': [ # these are used everywhere but windows
183 '../src/ports/SkDebug_stdio.cpp', 174 '../src/ports/SkDebug_stdio.cpp',
184 '../src/ports/SkOSFile_posix.cpp', 175 '../src/ports/SkOSFile_posix.cpp',
185 '../src/ports/SkTime_Unix.cpp', 176 '../src/ports/SkTime_Unix.cpp',
(...skipping 21 matching lines...) Expand all
207 '../src/ports/SkTypeface_win_dw.cpp', 198 '../src/ports/SkTypeface_win_dw.cpp',
208 '../src/ports/SkTypeface_win_dw.h', 199 '../src/ports/SkTypeface_win_dw.h',
209 ], 200 ],
210 }], 201 }],
211 [ 'skia_os == "android"', { 202 [ 'skia_os == "android"', {
212 'sources!': [ 203 'sources!': [
213 '../src/ports/SkDebug_stdio.cpp', 204 '../src/ports/SkDebug_stdio.cpp',
214 ], 205 ],
215 'sources': [ 206 'sources': [
216 '../src/ports/SkDebug_android.cpp', 207 '../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 ], 208 ],
224 }], 209 }],
225 ], 210 ],
226 'direct_dependent_settings': { 211 'direct_dependent_settings': {
227 'include_dirs': [ 212 'include_dirs': [
228 '../include/ports', 213 '../include/ports',
229 ], 214 ],
230 }, 215 },
231 }, 216 },
232 ], 217 ],
233 } 218 }
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