OLD | NEW |
| (Empty) |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 | |
6 # This gypi file contains the Skia library. | |
7 # In component mode (shared_lib) it is folded into a single shared library with | |
8 # the PDFium-specific enhancements but in all other cases it is a separate lib. | |
9 | |
10 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
11 # variables and defines should go in skia_common.gypi so they can be seen | |
12 # by files listed here and in skia_library_opts.gypi. | |
13 # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!WARNING!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | |
14 { | |
15 'dependencies': [ | |
16 'skia_library_opts.gyp:skia_opts', | |
17 '../third_party/third_party.gyp:fx_zlib', | |
18 ], | |
19 | |
20 'includes': [ | |
21 '../third_party/skia/gyp/core.gypi', | |
22 '../third_party/skia/gyp/effects.gypi', | |
23 '../third_party/skia/gyp/pdf.gypi', | |
24 '../third_party/skia/gyp/utils.gypi', | |
25 ], | |
26 | |
27 'sources': [ | |
28 '../third_party/skia/src/lazy/SkDiscardableMemoryPool.cpp', | |
29 | |
30 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', | |
31 '../third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp', | |
32 | |
33 '../third_party/skia/src/ports/SkDiscardableMemory_none.cpp', | |
34 | |
35 '../third_party/skia/src/fonts/SkFontMgr_indirect.cpp', | |
36 '../third_party/skia/src/fonts/SkRemotableFontMgr.cpp', | |
37 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp', | |
38 | |
39 '../third_party/skia/src/ports/SkImageEncoder_none.cpp', | |
40 '../third_party/skia/src/ports/SkImageGenerator_none.cpp', | |
41 | |
42 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', | |
43 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', | |
44 '../third_party/skia/src/ports/SkFontHost_win.cpp', | |
45 "../third_party/skia/src/ports/SkFontMgr_android.cpp", | |
46 "../third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | |
47 '../third_party/skia/src/ports/SkFontMgr_android_parser.cpp', | |
48 '../third_party/skia/src/ports/SkFontMgr_custom.cpp', | |
49 '../third_party/skia/src/ports/SkFontMgr_custom_empty_factory.cpp', | |
50 | |
51 '../third_party/skia/src/ports/SkGlobalInitialization_default.cpp', | |
52 '../third_party/skia/src/ports/SkMemory_malloc.cpp', | |
53 '../third_party/skia/src/ports/SkOSFile_posix.cpp', | |
54 '../third_party/skia/src/ports/SkOSFile_stdio.cpp', | |
55 '../third_party/skia/src/ports/SkOSFile_win.cpp', | |
56 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp', | |
57 '../third_party/skia/src/ports/SkTLS_pthread.cpp', | |
58 '../third_party/skia/src/ports/SkTLS_win.cpp', | |
59 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp', | |
60 | |
61 '../third_party/skia/src/sfnt/SkOTTable_name.cpp', | |
62 '../third_party/skia/src/sfnt/SkOTUtils.cpp', | |
63 ], | |
64 | |
65 # Exclude all unused files in skia utils.gypi file | |
66 'sources!': [ | |
67 '../third_party/skia/src/utils/SkBoundaryPatch.cpp', | |
68 '../third_party/skia/src/utils/SkFrontBufferedStream.cpp', | |
69 '../third_party/skia/src/utils/SkCamera.cpp', | |
70 '../third_party/skia/src/utils/SkDumpCanvas.cpp', | |
71 '../third_party/skia/src/utils/SkInterpolator.cpp', | |
72 '../third_party/skia/src/utils/SkLayer.cpp', | |
73 '../third_party/skia/src/utils/SkMD5.cpp', | |
74 '../third_party/skia/src/utils/SkMeshUtils.cpp', | |
75 '../third_party/skia/src/utils/SkNinePatch.cpp', | |
76 '../third_party/skia/src/utils/SkParsePath.cpp', | |
77 | |
78 #windows | |
79 '../third_party/skia/src/utils/win/SkAutoCoInitialize.cpp', | |
80 '../third_party/skia/src/utils/win/SkIStream.cpp', | |
81 '../third_party/skia/src/utils/win/SkWGL_win.cpp', | |
82 | |
83 #testing | |
84 '../third_party/skia/src/fonts/SkGScalerContext.cpp', | |
85 ], | |
86 | |
87 'include_dirs': [ | |
88 '../third_party/skia/include/c', | |
89 '../third_party/skia/include/core', | |
90 '../third_party/skia/include/client/android', | |
91 '../third_party/skia/include/effects', | |
92 '../third_party/skia/include/images', | |
93 '../third_party/skia/include/lazy', | |
94 '../third_party/skia/include/pathops', | |
95 '../third_party/skia/include/pdf', | |
96 '../third_party/skia/include/pipe', | |
97 '../third_party/skia/include/ports', | |
98 '../third_party/skia/include/private', | |
99 '../third_party/skia/include/utils', | |
100 '../third_party/skia/src/core', | |
101 '../third_party/skia/src/opts', | |
102 '../third_party/skia/src/image', | |
103 '../third_party/skia/src/pdf', | |
104 '../third_party/skia/src/ports', | |
105 '../third_party/skia/src/sfnt', | |
106 '../third_party/skia/src/utils', | |
107 '../third_party/skia/src/lazy', | |
108 # TODO(dsinclair): Right way to use third_party.gyp:fx_freetype? | |
109 '../third_party/freetype/include', | |
110 ], | |
111 'conditions': [ | |
112 ['skia_support_gpu != 0', { | |
113 'includes': [ | |
114 '../third_party/skia/gyp/gpu.gypi', | |
115 ], | |
116 'sources': [ | |
117 '<@(skgpu_null_gl_sources)', | |
118 '<@(skgpu_sources)', | |
119 ], | |
120 'include_dirs': [ | |
121 '../third_party/skia/include/gpu', | |
122 '../third_party/skia/src/gpu', | |
123 ], | |
124 }], | |
125 ['skia_support_pdf == 0', { | |
126 'sources/': [ | |
127 ['exclude', '../third_party/skia/src/doc/SkDocument_PDF.cpp'], | |
128 ['exclude', '../third_party/skia/src/pdf/'], | |
129 ], | |
130 }], | |
131 ['skia_support_pdf == 1', { | |
132 'dependencies': [ | |
133 '../third_party/sfntly/sfntly.gyp:sfntly', | |
134 ], | |
135 }], | |
136 | |
137 [ 'OS == "win"', { | |
138 'sources!': [ | |
139 # Keeping _win.cpp | |
140 "../third_party/skia/src/utils/SkThreadUtils_pthread.cpp", | |
141 ], | |
142 'dependencies': [ | |
143 '../third_party/third_party.gyp:fx_freetype' | |
144 ], | |
145 },{ | |
146 'sources!': [ | |
147 # Keeping _pthread.cpp | |
148 "../third_party/skia/src/utils/SkThreadUtils_win.cpp", | |
149 ], | |
150 }], | |
151 | |
152 [ 'OS != "mac"', { | |
153 'sources/': [ | |
154 ['exclude', '/mac/'] | |
155 ], | |
156 }], | |
157 [ 'OS == "android" and target_arch == "arm"', { | |
158 'sources': [ | |
159 '../third_party/skia/src/core/SkUtilsArm.cpp', | |
160 ], | |
161 }], | |
162 [ 'OS=="linux"', { | |
163 'dependencies': [ | |
164 '../third_party/third_party.gyp:fx_freetype' | |
165 ], | |
166 'cflags': [ | |
167 '-Wno-unused', | |
168 '-Wno-unused-function', | |
169 ], | |
170 }], | |
171 [ 'OS=="win" or OS=="mac" or OS=="ios" or OS=="android"', { | |
172 'sources!': [ | |
173 '../third_party/skia/src/ports/SkFontConfigInterface_direct.cpp', | |
174 '../third_party/skia/src/ports/SkFontConfigInterface_direct_factory.cpp'
, | |
175 '../third_party/skia/src/ports/SkFontHost_fontconfig.cpp', | |
176 '../third_party/skia/src/fonts/SkFontMgr_fontconfig.cpp', | |
177 ], | |
178 }], | |
179 [ 'OS=="mac" or OS=="ios"', { | |
180 'sources!': [ | |
181 '../third_party/skia/src/ports/SkFontHost_FreeType.cpp', | |
182 '../third_party/skia/src/ports/SkFontHost_FreeType_common.cpp', | |
183 | |
184 ], | |
185 }], | |
186 [ 'OS == "android"', { | |
187 'dependencies': [ | |
188 '../third_party/expat/expat.gyp:expat', | |
189 '../third_party/freetype-android/freetype.gyp:ft2', | |
190 ], | |
191 # This exports a hard dependency because it needs to run its | |
192 # symlink action in order to expose the skia header files. | |
193 'hard_dependency': 1, | |
194 'include_dirs': [ | |
195 '../third_party/expat/files/lib', | |
196 ], | |
197 },{ # not 'OS == "android"' | |
198 'sources!': [ | |
199 "../third_party/skia/src/ports/SkFontMgr_android_factory.cpp", | |
200 '../third_party/skia/src/ports/SkFontMgr_android_parser.cpp', | |
201 ], | |
202 }], | |
203 [ 'OS == "ios"', { | |
204 'include_dirs': [ | |
205 '../third_party/skia/include/utils/ios', | |
206 '../third_party/skia/include/utils/mac', | |
207 ], | |
208 'link_settings': { | |
209 'libraries': [ | |
210 '$(SDKROOT)/System/Library/Frameworks/ImageIO.framework', | |
211 ], | |
212 }, | |
213 'sources': [ | |
214 # This file is used on both iOS and Mac, so it should be removed | |
215 # from the ios and mac conditions and moved into the main sources | |
216 # list. | |
217 '../third_party/skia/src/utils/mac/SkStream_mac.cpp', | |
218 ], | |
219 | |
220 # The main skia_opts target does not currently work on iOS because the | |
221 # target architecture on iOS is determined at compile time rather than | |
222 # gyp time (simulator builds are x86, device builds are arm). As a | |
223 # temporary measure, this is a separate opts target for iOS-only, using | |
224 # the _none.cpp files to avoid architecture-dependent implementations. | |
225 'dependencies': [ | |
226 'skia_library_opts.gyp:skia_opts_none', | |
227 ], | |
228 'dependencies!': [ | |
229 'skia_library_opts.gyp:skia_opts', | |
230 ], | |
231 }], | |
232 [ 'OS == "mac"', { | |
233 'direct_dependent_settings': { | |
234 'include_dirs': [ | |
235 '../third_party/skia/include/utils/mac', | |
236 ], | |
237 }, | |
238 'include_dirs': [ | |
239 '../third_party/skia/include/utils/mac', | |
240 ], | |
241 'link_settings': { | |
242 'libraries': [ | |
243 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | |
244 ], | |
245 }, | |
246 'sources': [ | |
247 '../third_party/skia/src/utils/mac/SkStream_mac.cpp', | |
248 ], | |
249 }], | |
250 [ 'OS == "win"', { | |
251 'sources!': [ | |
252 '../third_party/skia/src/ports/SkOSFile_posix.cpp', | |
253 '../third_party/skia/src/ports/SkTime_Unix.cpp', | |
254 '../third_party/skia/src/ports/SkTLS_pthread.cpp', | |
255 ], | |
256 'include_dirs': [ | |
257 '../third_party/skia/include/utils/win', | |
258 '../third_party/skia/src/utils/win', | |
259 ], | |
260 },{ # not 'OS == "win"' | |
261 'sources!': [ | |
262 '../third_party/skia/src/ports/SkRemotableFontMgr_win_dw.cpp', | |
263 '../third_party/skia/src/ports/SkScalerContext_win_dw.cpp', | |
264 '../third_party/skia/src/ports/SkTypeface_win_dw.cpp', | |
265 | |
266 '../third_party/skia/src/utils/win/SkDWrite.cpp', | |
267 '../third_party/skia/src/utils/win/SkDWriteFontFileStream.cpp', | |
268 '../third_party/skia/src/utils/win/SkDWriteGeometrySink.cpp', | |
269 '../third_party/skia/src/utils/win/SkHRESULT.cpp', | |
270 ], | |
271 }], | |
272 ], | |
273 'target_conditions': [ | |
274 # Pull in specific Mac files for iOS (which have been filtered out | |
275 # by file name rules). | |
276 [ 'OS == "ios"', { | |
277 'sources/': [ | |
278 ['include', 'SkFontHost_mac\\.cpp$',], | |
279 ['include', 'SkStream_mac\\.cpp$',], | |
280 ['include', 'SkCreateCGImageRef\\.cpp$',], | |
281 ], | |
282 'xcode_settings' : { | |
283 'WARNING_CFLAGS': [ | |
284 # SkFontHost_mac.cpp uses API deprecated in iOS 7. | |
285 # crbug.com/408571 | |
286 '-Wno-deprecated-declarations', | |
287 ], | |
288 }, | |
289 }], | |
290 ], | |
291 | |
292 'direct_dependent_settings': { | |
293 'include_dirs': [ | |
294 '../third_party/skia/include/core', | |
295 '../third_party/skia/include/effects', | |
296 '../third_party/skia/include/pdf', | |
297 '../third_party/skia/include/gpu', | |
298 '../third_party/skia/include/lazy', | |
299 '../third_party/skia/include/pathops', | |
300 '../third_party/skia/include/pipe', | |
301 '../third_party/skia/include/ports', | |
302 '../third_party/skia/include/utils', | |
303 ], | |
304 }, | |
305 } | |
OLD | NEW |