Updates WebRTC from 1165 to 1264.
[chromium-blink-merge.git] / skia / skia.gyp
blob2df78858017b9e0f4e1725202926cb7e8223d25f
1 # Copyright (c) 2011 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.
6   'targets': [
7     {
8       'target_name': 'skia',
9       'type': '<(component)',
10       'sources': [
11         #'../third_party/skia/src/animator/SkAnimate.h',
12         #'../third_party/skia/src/animator/SkAnimateActive.cpp',
13         #'../third_party/skia/src/animator/SkAnimateActive.h',
14         #'../third_party/skia/src/animator/SkAnimateBase.cpp',
15         #'../third_party/skia/src/animator/SkAnimateBase.h',
16         #'../third_party/skia/src/animator/SkAnimateField.cpp',
17         #'../third_party/skia/src/animator/SkAnimateMaker.cpp',
18         #'../third_party/skia/src/animator/SkAnimateMaker.h',
19         #'../third_party/skia/src/animator/SkAnimateProperties.h',
20         #'../third_party/skia/src/animator/SkAnimateSchema.xsd',
21         #'../third_party/skia/src/animator/SkAnimateSchema.xsx',
22         #'../third_party/skia/src/animator/SkAnimateSet.cpp',
23         #'../third_party/skia/src/animator/SkAnimateSet.h',
24         #'../third_party/skia/src/animator/SkAnimator.cpp',
25         #'../third_party/skia/src/animator/SkAnimatorScript.cpp',
26         #'../third_party/skia/src/animator/SkAnimatorScript.h',
27         #'../third_party/skia/src/animator/SkAnimatorScript2.cpp',
28         #'../third_party/skia/src/animator/SkAnimatorScript2.h',
29         #'../third_party/skia/src/animator/SkBase64.cpp',
30         #'../third_party/skia/src/animator/SkBase64.h',
31         #'../third_party/skia/src/animator/SkBoundable.cpp',
32         #'../third_party/skia/src/animator/SkBoundable.h',
33         #'../third_party/skia/src/animator/SkBuildCondensedInfo.cpp',
34         #'../third_party/skia/src/animator/SkCondensedDebug.cpp',
35         #'../third_party/skia/src/animator/SkCondensedRelease.cpp',
36         #'../third_party/skia/src/animator/SkDisplayAdd.cpp',
37         #'../third_party/skia/src/animator/SkDisplayAdd.h',
38         #'../third_party/skia/src/animator/SkDisplayApply.cpp',
39         #'../third_party/skia/src/animator/SkDisplayApply.h',
40         #'../third_party/skia/src/animator/SkDisplayBounds.cpp',
41         #'../third_party/skia/src/animator/SkDisplayBounds.h',
42         #'../third_party/skia/src/animator/SkDisplayEvent.cpp',
43         #'../third_party/skia/src/animator/SkDisplayEvent.h',
44         #'../third_party/skia/src/animator/SkDisplayEvents.cpp',
45         #'../third_party/skia/src/animator/SkDisplayEvents.h',
46         #'../third_party/skia/src/animator/SkDisplayInclude.cpp',
47         #'../third_party/skia/src/animator/SkDisplayInclude.h',
48         #'../third_party/skia/src/animator/SkDisplayInput.cpp',
49         #'../third_party/skia/src/animator/SkDisplayInput.h',
50         #'../third_party/skia/src/animator/SkDisplayList.cpp',
51         #'../third_party/skia/src/animator/SkDisplayList.h',
52         #'../third_party/skia/src/animator/SkDisplayMath.cpp',
53         #'../third_party/skia/src/animator/SkDisplayMath.h',
54         #'../third_party/skia/src/animator/SkDisplayMovie.cpp',
55         #'../third_party/skia/src/animator/SkDisplayMovie.h',
56         #'../third_party/skia/src/animator/SkDisplayNumber.cpp',
57         #'../third_party/skia/src/animator/SkDisplayNumber.h',
58         #'../third_party/skia/src/animator/SkDisplayPost.cpp',
59         #'../third_party/skia/src/animator/SkDisplayPost.h',
60         #'../third_party/skia/src/animator/SkDisplayRandom.cpp',
61         #'../third_party/skia/src/animator/SkDisplayRandom.h',
62         #'../third_party/skia/src/animator/SkDisplayScreenplay.cpp',
63         #'../third_party/skia/src/animator/SkDisplayScreenplay.h',
64         #'../third_party/skia/src/animator/SkDisplayType.cpp',
65         #'../third_party/skia/src/animator/SkDisplayType.h',
66         #'../third_party/skia/src/animator/SkDisplayTypes.cpp',
67         #'../third_party/skia/src/animator/SkDisplayTypes.h',
68         #'../third_party/skia/src/animator/SkDisplayXMLParser.cpp',
69         #'../third_party/skia/src/animator/SkDisplayXMLParser.h',
70         #'../third_party/skia/src/animator/SkDisplayable.cpp',
71         #'../third_party/skia/src/animator/SkDisplayable.h',
72         #'../third_party/skia/src/animator/SkDraw3D.cpp',
73         #'../third_party/skia/src/animator/SkDraw3D.h',
74         #'../third_party/skia/src/animator/SkDrawBitmap.cpp',
75         #'../third_party/skia/src/animator/SkDrawBitmap.h',
76         #'../third_party/skia/src/animator/SkDrawBlur.cpp',
77         #'../third_party/skia/src/animator/SkDrawBlur.h',
78         #'../third_party/skia/src/animator/SkDrawClip.cpp',
79         #'../third_party/skia/src/animator/SkDrawClip.h',
80         #'../third_party/skia/src/animator/SkDrawColor.cpp',
81         #'../third_party/skia/src/animator/SkDrawColor.h',
82         #'../third_party/skia/src/animator/SkDrawDash.cpp',
83         #'../third_party/skia/src/animator/SkDrawDash.h',
84         #'../third_party/skia/src/animator/SkDrawDiscrete.cpp',
85         #'../third_party/skia/src/animator/SkDrawDiscrete.h',
86         #'../third_party/skia/src/animator/SkDrawEmboss.cpp',
87         #'../third_party/skia/src/animator/SkDrawEmboss.h',
88         #'../third_party/skia/src/animator/SkDrawExtraPathEffect.cpp',
89         #'../third_party/skia/src/animator/SkDrawFull.cpp',
90         #'../third_party/skia/src/animator/SkDrawFull.h',
91         #'../third_party/skia/src/animator/SkDrawGradient.cpp',
92         #'../third_party/skia/src/animator/SkDrawGradient.h',
93         #'../third_party/skia/src/animator/SkDrawGroup.cpp',
94         #'../third_party/skia/src/animator/SkDrawGroup.h',
95         #'../third_party/skia/src/animator/SkDrawLine.cpp',
96         #'../third_party/skia/src/animator/SkDrawLine.h',
97         #'../third_party/skia/src/animator/SkDrawMatrix.cpp',
98         #'../third_party/skia/src/animator/SkDrawMatrix.h',
99         #'../third_party/skia/src/animator/SkDrawOval.cpp',
100         #'../third_party/skia/src/animator/SkDrawOval.h',
101         #'../third_party/skia/src/animator/SkDrawPaint.cpp',
102         #'../third_party/skia/src/animator/SkDrawPaint.h',
103         #'../third_party/skia/src/animator/SkDrawPath.cpp',
104         #'../third_party/skia/src/animator/SkDrawPath.h',
105         #'../third_party/skia/src/animator/SkDrawPoint.cpp',
106         #'../third_party/skia/src/animator/SkDrawPoint.h',
107         #'../third_party/skia/src/animator/SkDrawRectangle.cpp',
108         #'../third_party/skia/src/animator/SkDrawRectangle.h',
109         #'../third_party/skia/src/animator/SkDrawSaveLayer.cpp',
110         #'../third_party/skia/src/animator/SkDrawSaveLayer.h',
111         #'../third_party/skia/src/animator/SkDrawShader.cpp',
112         #'../third_party/skia/src/animator/SkDrawShader.h',
113         #'../third_party/skia/src/animator/SkDrawText.cpp',
114         #'../third_party/skia/src/animator/SkDrawText.h',
115         #'../third_party/skia/src/animator/SkDrawTextBox.cpp',
116         #'../third_party/skia/src/animator/SkDrawTextBox.h',
117         #'../third_party/skia/src/animator/SkDrawTo.cpp',
118         #'../third_party/skia/src/animator/SkDrawTo.h',
119         #'../third_party/skia/src/animator/SkDrawTransparentShader.cpp',
120         #'../third_party/skia/src/animator/SkDrawTransparentShader.h',
121         #'../third_party/skia/src/animator/SkDrawable.cpp',
122         #'../third_party/skia/src/animator/SkDrawable.h',
123         #'../third_party/skia/src/animator/SkDump.cpp',
124         #'../third_party/skia/src/animator/SkDump.h',
125         #'../third_party/skia/src/animator/SkExtraPathEffects.xsd',
126         #'../third_party/skia/src/animator/SkExtras.h',
127         #'../third_party/skia/src/animator/SkGetCondensedInfo.cpp',
128         #'../third_party/skia/src/animator/SkHitClear.cpp',
129         #'../third_party/skia/src/animator/SkHitClear.h',
130         #'../third_party/skia/src/animator/SkHitTest.cpp',
131         #'../third_party/skia/src/animator/SkHitTest.h',
132         #'../third_party/skia/src/animator/SkIntArray.h',
133         #'../third_party/skia/src/animator/SkMatrixParts.cpp',
134         #'../third_party/skia/src/animator/SkMatrixParts.h',
135         #'../third_party/skia/src/animator/SkMemberInfo.cpp',
136         #'../third_party/skia/src/animator/SkMemberInfo.h',
137         #'../third_party/skia/src/animator/SkOpArray.cpp',
138         #'../third_party/skia/src/animator/SkOpArray.h',
139         #'../third_party/skia/src/animator/SkOperand.h',
140         #'../third_party/skia/src/animator/SkOperand2.h',
141         #'../third_party/skia/src/animator/SkOperandInterpolator.h',
142         #'../third_party/skia/src/animator/SkOperandIterpolator.cpp',
143         #'../third_party/skia/src/animator/SkPaintParts.cpp',
144         #'../third_party/skia/src/animator/SkPaintParts.h',
145         #'../third_party/skia/src/animator/SkParseSVGPath.cpp',
146         #'../third_party/skia/src/animator/SkPathParts.cpp',
147         #'../third_party/skia/src/animator/SkPathParts.h',
148         #'../third_party/skia/src/animator/SkPostParts.cpp',
149         #'../third_party/skia/src/animator/SkPostParts.h',
150         #'../third_party/skia/src/animator/SkScript.cpp',
151         #'../third_party/skia/src/animator/SkScript.h',
152         #'../third_party/skia/src/animator/SkScript2.h',
153         #'../third_party/skia/src/animator/SkScriptCallBack.h',
154         #'../third_party/skia/src/animator/SkScriptDecompile.cpp',
155         #'../third_party/skia/src/animator/SkScriptRuntime.cpp',
156         #'../third_party/skia/src/animator/SkScriptRuntime.h',
157         #'../third_party/skia/src/animator/SkScriptTokenizer.cpp',
158         #'../third_party/skia/src/animator/SkSnapshot.cpp',
159         #'../third_party/skia/src/animator/SkSnapshot.h',
160         #'../third_party/skia/src/animator/SkTDArray_Experimental.h',
161         #'../third_party/skia/src/animator/SkTextOnPath.cpp',
162         #'../third_party/skia/src/animator/SkTextOnPath.h',
163         #'../third_party/skia/src/animator/SkTextToPath.cpp',
164         #'../third_party/skia/src/animator/SkTextToPath.h',
165         #'../third_party/skia/src/animator/SkTypedArray.cpp',
166         #'../third_party/skia/src/animator/SkTypedArray.h',
167         #'../third_party/skia/src/animator/SkXMLAnimatorWriter.cpp',
168         #'../third_party/skia/src/animator/SkXMLAnimatorWriter.h',
170         '../third_party/skia/src/animator/SkTime.cpp',
172         '../third_party/skia/src/core/ARGB32_Clamp_Bilinear_BitmapShader.h',
173         '../third_party/skia/src/core/Sk64.cpp',
174         '../third_party/skia/src/core/SkAAClip.cpp',
175         '../third_party/skia/src/core/SkAdvancedTypefaceMetrics.cpp',
176         '../third_party/skia/src/core/SkAlphaRuns.cpp',
177         '../third_party/skia/src/core/SkAntiRun.h',
178         '../third_party/skia/src/core/SkBitmap.cpp',
179         '../third_party/skia/src/core/SkBitmapProcShader.cpp',
180         '../third_party/skia/src/core/SkBitmapProcShader.h',
181         '../third_party/skia/src/core/SkBitmapProcState.cpp',
182         '../third_party/skia/src/core/SkBitmapProcState.h',
183         '../third_party/skia/src/core/SkBitmapProcState_matrix.h',
184         '../third_party/skia/src/core/SkBitmapProcState_matrixProcs.cpp',
185         '../third_party/skia/src/core/SkBitmapProcState_sample.h',
186         '../third_party/skia/src/core/SkBitmapSampler.cpp',
187         '../third_party/skia/src/core/SkBitmapSampler.h',
188         '../third_party/skia/src/core/SkBitmapSamplerTemplate.h',
189         '../third_party/skia/src/core/SkBitmapShader16BilerpTemplate.h',
190         '../third_party/skia/src/core/SkBitmapShaderTemplate.h',
191         '../third_party/skia/src/core/SkBitmap_scroll.cpp',
192         '../third_party/skia/src/core/SkBlitBWMaskTemplate.h',
193         '../third_party/skia/src/core/SkBlitMask_D32.cpp',
194         '../third_party/skia/src/core/SkBlitRow_D16.cpp',
195         '../third_party/skia/src/core/SkBlitRow_D32.cpp',
196         '../third_party/skia/src/core/SkBlitRow_D4444.cpp',
197         '../third_party/skia/src/core/SkBlitter.cpp',
198         '../third_party/skia/src/core/SkBlitter_4444.cpp',
199         '../third_party/skia/src/core/SkBlitter_A1.cpp',
200         '../third_party/skia/src/core/SkBlitter_A8.cpp',
201         '../third_party/skia/src/core/SkBlitter_ARGB32.cpp',
202         '../third_party/skia/src/core/SkBlitter_RGB16.cpp',
203         '../third_party/skia/src/core/SkBlitter_Sprite.cpp',
204         '../third_party/skia/src/core/SkBuffer.cpp',
205         '../third_party/skia/src/core/SkCanvas.cpp',
206         '../third_party/skia/src/core/SkChunkAlloc.cpp',
207         '../third_party/skia/src/core/SkClampRange.cpp',
208         '../third_party/skia/src/core/SkClipStack.cpp',
209         '../third_party/skia/src/core/SkColor.cpp',
210         '../third_party/skia/src/core/SkColorFilter.cpp',
211         '../third_party/skia/src/core/SkColorTable.cpp',
212         '../third_party/skia/src/core/SkComposeShader.cpp',
213         '../third_party/skia/src/core/SkConcaveToTriangles.cpp',
214         '../third_party/skia/src/core/SkConcaveToTriangles.h',
215         '../third_party/skia/src/core/SkConfig8888.h',
216         '../third_party/skia/src/core/SkCordic.cpp',
217         '../third_party/skia/src/core/SkCordic.h',
218         '../third_party/skia/src/core/SkCoreBlitters.h',
219         '../third_party/skia/src/core/SkCubicClipper.cpp',
220         '../third_party/skia/src/core/SkCubicClipper.h',
221         '../third_party/skia/src/core/SkData.cpp',
222         '../third_party/skia/src/core/SkDebug.cpp',
223         #'../third_party/skia/src/core/SkDebug_stdio.cpp',
224         '../third_party/skia/src/core/SkDeque.cpp',
225         '../third_party/skia/src/core/SkDevice.cpp',
226         '../third_party/skia/src/core/SkDither.cpp',
227         '../third_party/skia/src/core/SkDraw.cpp',
228         '../third_party/skia/src/core/SkDrawProcs.h',
229         #'../third_party/skia/src/core/SkDrawing.cpp',
230         '../third_party/skia/src/core/SkEdgeBuilder.cpp',
231         '../third_party/skia/src/core/SkEdgeClipper.cpp',
232         '../third_party/skia/src/core/SkEdge.cpp',
233         '../third_party/skia/src/core/SkEdge.h',
234         '../third_party/skia/src/core/SkFP.h',
235         '../third_party/skia/src/core/SkFilterProc.cpp',
236         '../third_party/skia/src/core/SkFilterProc.h',
237         '../third_party/skia/src/core/SkFlate.cpp',
238         '../third_party/skia/src/core/SkFlattenable.cpp',
239         '../third_party/skia/src/core/SkFloat.cpp',
240         '../third_party/skia/src/core/SkFloat.h',
241         '../third_party/skia/src/core/SkFloatBits.cpp',
242         '../third_party/skia/src/core/SkFontHost.cpp',
243         '../third_party/skia/src/core/SkGeometry.cpp',
244         '../third_party/skia/src/core/SkGlyphCache.cpp',
245         '../third_party/skia/src/core/SkGlyphCache.h',
246         '../third_party/skia/src/core/SkGraphics.cpp',
247         '../third_party/skia/src/core/SkLineClipper.cpp',
248         '../third_party/skia/src/core/SkMMapStream.cpp',
249         '../third_party/skia/src/core/SkMallocPixelRef.cpp',
250         '../third_party/skia/src/core/SkMask.cpp',
251         '../third_party/skia/src/core/SkMaskFilter.cpp',
252         '../third_party/skia/src/core/SkMath.cpp',
253         '../third_party/skia/src/core/SkMatrix.cpp',
254         '../third_party/skia/src/core/SkMetaData.cpp',
255         '../third_party/skia/src/core/SkPackBits.cpp',
256         '../third_party/skia/src/core/SkPaint.cpp',
257         '../third_party/skia/src/core/SkPath.cpp',
258         '../third_party/skia/src/core/SkPathEffect.cpp',
259         '../third_party/skia/src/core/SkPathHeap.cpp',
260         '../third_party/skia/src/core/SkPathHeap.h',
261         '../third_party/skia/src/core/SkPathMeasure.cpp',
262         '../third_party/skia/src/core/SkPicture.cpp',
263         '../third_party/skia/src/core/SkPictureFlat.cpp',
264         '../third_party/skia/src/core/SkPictureFlat.h',
265         '../third_party/skia/src/core/SkPicturePlayback.cpp',
266         '../third_party/skia/src/core/SkPicturePlayback.h',
267         '../third_party/skia/src/core/SkPictureRecord.cpp',
268         '../third_party/skia/src/core/SkPictureRecord.h',
269         '../third_party/skia/src/core/SkPixelRef.cpp',
270         '../third_party/skia/src/core/SkPoint.cpp',
271         '../third_party/skia/src/core/SkProcSpriteBlitter.cpp',
272         '../third_party/skia/src/core/SkPtrRecorder.cpp',
273         '../third_party/skia/src/core/SkQuadClipper.cpp',
274         '../third_party/skia/src/core/SkQuadClipper.h',
275         '../third_party/skia/src/core/SkRasterClip.cpp',
276         '../third_party/skia/src/core/SkRasterizer.cpp',
277         '../third_party/skia/src/core/SkRect.cpp',
278         '../third_party/skia/src/core/SkRefDict.cpp',
279         '../third_party/skia/src/core/SkRegion.cpp',
280         '../third_party/skia/src/core/SkRegionPriv.h',
281         '../third_party/skia/src/core/SkRegion_path.cpp',
282         '../third_party/skia/src/core/SkScalar.cpp',
283         '../third_party/skia/src/core/SkScalerContext.cpp',
284         '../third_party/skia/src/core/SkScan.cpp',
285         '../third_party/skia/src/core/SkScanPriv.h',
286         '../third_party/skia/src/core/SkScan_AntiPath.cpp',
287         '../third_party/skia/src/core/SkScan_Antihair.cpp',
288         '../third_party/skia/src/core/SkScan_Hairline.cpp',
289         '../third_party/skia/src/core/SkScan_Path.cpp',
290         '../third_party/skia/src/core/SkShader.cpp',
291         '../third_party/skia/src/core/SkShape.cpp',
292         '../third_party/skia/src/core/SkSpriteBlitter_ARGB32.cpp',
293         '../third_party/skia/src/core/SkSpriteBlitter_RGB16.cpp',
294         '../third_party/skia/src/core/SkSinTable.h',
295         '../third_party/skia/src/core/SkSpriteBlitter.h',
296         '../third_party/skia/src/core/SkSpriteBlitterTemplate.h',
297         '../third_party/skia/src/core/SkStream.cpp',
298         '../third_party/skia/src/core/SkString.cpp',
299         '../third_party/skia/src/core/SkStroke.cpp',
300         '../third_party/skia/src/core/SkStrokerPriv.cpp',
301         '../third_party/skia/src/core/SkStrokerPriv.h',
302         '../third_party/skia/src/core/SkTextFormatParams.h',
303         '../third_party/skia/src/core/SkTSearch.cpp',
304         '../third_party/skia/src/core/SkTSort.h',
305         '../third_party/skia/src/core/SkTemplatesPriv.h',
306         '../third_party/skia/src/core/SkTypeface.cpp',
307         '../third_party/skia/src/core/SkTypefaceCache.cpp',
308         '../third_party/skia/src/core/SkUnPreMultiply.cpp',
309         '../third_party/skia/src/core/SkUtils.cpp',
310         '../third_party/skia/src/core/SkWriter32.cpp',
311         '../third_party/skia/src/core/SkXfermode.cpp',
313         '../third_party/skia/src/effects/Sk1DPathEffect.cpp',
314         '../third_party/skia/src/effects/Sk2DPathEffect.cpp',
315         '../third_party/skia/src/effects/SkAvoidXfermode.cpp',
316         '../third_party/skia/src/effects/SkBitmapCache.cpp',
317         '../third_party/skia/src/effects/SkBitmapCache.h',
318         '../third_party/skia/src/effects/SkBlurDrawLooper.cpp',
319         '../third_party/skia/src/effects/SkBlurImageFilter.cpp',
320         '../third_party/skia/src/effects/SkBlurMask.cpp',
321         '../third_party/skia/src/effects/SkBlurMask.h',
322         '../third_party/skia/src/effects/SkBlurMaskFilter.cpp',
323         '../third_party/skia/src/effects/SkColorFilters.cpp',
324         '../third_party/skia/src/effects/SkColorMatrixFilter.cpp',
325         '../third_party/skia/src/effects/SkCornerPathEffect.cpp',
326         '../third_party/skia/src/effects/SkDashPathEffect.cpp',
327         '../third_party/skia/src/effects/SkDiscretePathEffect.cpp',
328         '../third_party/skia/src/effects/SkEmbossMask.cpp',
329         '../third_party/skia/src/effects/SkEmbossMask.h',
330         '../third_party/skia/src/effects/SkEmbossMask_Table.h',
331         '../third_party/skia/src/effects/SkEmbossMaskFilter.cpp',
332         '../third_party/skia/src/effects/SkGradientShader.cpp',
333         '../third_party/skia/src/effects/SkKernel33MaskFilter.cpp',
334         '../third_party/skia/src/effects/SkLayerDrawLooper.cpp',
335         '../third_party/skia/src/effects/SkLayerRasterizer.cpp',
336         '../third_party/skia/src/effects/SkPaintFlagsDrawFilter.cpp',
337         '../third_party/skia/src/effects/SkPorterDuff.cpp',
338         '../third_party/skia/src/effects/SkPixelXorXfermode.cpp',
339         '../third_party/skia/src/effects/SkRadialGradient_Table.h',
340         '../third_party/skia/src/effects/SkTransparentShader.cpp',
342         '../third_party/skia/src/gpu/GrAAHairLinePathRenderer.cpp',
343         '../third_party/skia/src/gpu/GrAAHairLinePathRenderer.h',
344         '../third_party/skia/src/gpu/GrAddPathRenderers_aahairline.cpp',
345         '../third_party/skia/src/gpu/GrAllocator.h',
346         '../third_party/skia/src/gpu/GrAllocPool.h',
347         '../third_party/skia/src/gpu/GrAllocPool.cpp',
348         '../third_party/skia/src/gpu/GrAtlas.cpp',
349         '../third_party/skia/src/gpu/GrAtlas.h',
350         '../third_party/skia/src/gpu/GrBufferAllocPool.cpp',
351         '../third_party/skia/src/gpu/GrBufferAllocPool.h',
352         '../third_party/skia/src/gpu/GrClip.cpp',
353         '../third_party/skia/src/gpu/GrContext.cpp',
354         '../third_party/skia/src/gpu/GrDefaultPathRenderer.cpp',
355         '../third_party/skia/src/gpu/GrDefaultPathRenderer.h',
356         '../third_party/skia/src/gpu/GrDrawTarget.cpp',
357         '../third_party/skia/src/gpu/GrDrawTarget.h',
358         '../third_party/skia/src/gpu/GrGeometryBuffer.h',
359         '../third_party/skia/src/gpu/GrGLCreateNativeInterface_none.cpp',
360         '../third_party/skia/src/gpu/GrGLDefaultInterface_none.cpp',
361         '../third_party/skia/src/gpu/GrGLIndexBuffer.cpp',
362         '../third_party/skia/src/gpu/GrGLIndexBuffer.h',
363         '../third_party/skia/src/gpu/GrGLInterface.cpp',
364         '../third_party/skia/src/gpu/GrGLIRect.h',
365         '../third_party/skia/src/gpu/GrGLProgram.cpp',
366         '../third_party/skia/src/gpu/GrGLProgram.h',
367         '../third_party/skia/src/gpu/GrGLRenderTarget.cpp',
368         '../third_party/skia/src/gpu/GrGLRenderTarget.h',
369         '../third_party/skia/src/gpu/GrGLStencilBuffer.cpp',
370         '../third_party/skia/src/gpu/GrGLSL.cpp',
371         '../third_party/skia/src/gpu/GrGLSL.h',
372         '../third_party/skia/src/gpu/GrGLTexture.cpp',
373         '../third_party/skia/src/gpu/GrGLTexture.h',
374         '../third_party/skia/src/gpu/GrGLUtil.cpp',
375         '../third_party/skia/src/gpu/GrGLVertexBuffer.cpp',
376         '../third_party/skia/src/gpu/GrGLVertexBuffer.h',
377         '../third_party/skia/src/gpu/GrGpu.cpp',
378         '../third_party/skia/src/gpu/GrGpu.h',
379         '../third_party/skia/src/gpu/GrGpuFactory.cpp',
380         '../third_party/skia/src/gpu/GrGpuGL.cpp',
381         '../third_party/skia/src/gpu/GrGpuGL.h',
382         '../third_party/skia/src/gpu/GrGpuGLShaders.cpp',
383         '../third_party/skia/src/gpu/GrGpuGLShaders.h',
384         '../third_party/skia/src/gpu/GrGpuVertex.h',
385         '../third_party/skia/src/gpu/GrIndexBuffer.h',
386         '../third_party/skia/src/gpu/GrInOrderDrawBuffer.cpp',
387         '../third_party/skia/src/gpu/GrInOrderDrawBuffer.h',
388         '../third_party/skia/src/gpu/GrMatrix.cpp',
389         '../third_party/skia/src/gpu/GrMemory.cpp',
390         '../third_party/skia/src/gpu/GrPathRenderer.cpp',
391         '../third_party/skia/src/gpu/GrPathRenderer.h',
392         '../third_party/skia/src/gpu/GrPathRendererChain.cpp',
393         '../third_party/skia/src/gpu/GrPathRendererChain.h',
394         '../third_party/skia/src/gpu/GrPathUtils.cpp',
395         '../third_party/skia/src/gpu/GrPlotMgr.h',
396         '../third_party/skia/src/gpu/GrPrintf_skia.cpp',
397         '../third_party/skia/src/gpu/GrRandom.h',
398         '../third_party/skia/src/gpu/GrRectanizer.h',
399         '../third_party/skia/src/gpu/GrRectanizer_fifo.cpp',
400         '../third_party/skia/src/gpu/GrRenderTarget.cpp',
401         '../third_party/skia/src/gpu/GrResource.cpp',
402         '../third_party/skia/src/gpu/GrResourceCache.cpp',
403         '../third_party/skia/src/gpu/GrResourceCache.h',
404         '../third_party/skia/src/gpu/GrStencil.cpp',
405         '../third_party/skia/src/gpu/GrStencil.h',
406         '../third_party/skia/src/gpu/GrStencilBuffer.cpp',
407         '../third_party/skia/src/gpu/GrStencilBuffer.h',
408         '../third_party/skia/src/gpu/GrStringBuilder.h',
409         '../third_party/skia/src/gpu/GrTBSearch.h',
410         '../third_party/skia/src/gpu/GrTDArray.h',
411         '../third_party/skia/src/gpu/GrTHashCache.h',
412         '../third_party/skia/src/gpu/GrTLList.h',
413         '../third_party/skia/src/gpu/GrTesselatedPathRenderer.cpp',
414         '../third_party/skia/src/gpu/GrTesselatedPathRenderer.h',
415         '../third_party/skia/src/gpu/GrTexture.cpp',
416         '../third_party/skia/src/gpu/GrTextContext.cpp',
417         '../third_party/skia/src/gpu/GrTextStrike.cpp',
418         '../third_party/skia/src/gpu/GrTextStrike.h',
419         '../third_party/skia/src/gpu/GrTextStrike_impl.h',
420         '../third_party/skia/src/gpu/GrVertexBuffer.h',
421         '../third_party/skia/src/gpu/SkGpuCanvas.cpp',
422         '../third_party/skia/src/gpu/SkGpuDevice.cpp',
423         '../third_party/skia/src/gpu/SkGrFontScaler.cpp',
424         '../third_party/skia/src/gpu/SkGr.cpp',
425         '../third_party/skia/src/gpu/SkGrTexturePixelRef.cpp',
427         '../third_party/skia/src/images/bmpdecoderhelper.cpp',
428         '../third_party/skia/src/images/bmpdecoderhelper.h',
429         '../third_party/skia/src/images/SkBitmap_RLEPixels.h',
430         '../third_party/skia/src/images/SkCreateRLEPixelRef.cpp',
431         #'../third_party/skia/src/images/SkFDStream.cpp',
432         #'../third_party/skia/src/images/SkFlipPixelRef.cpp',
433         '../third_party/skia/src/images/SkImageDecoder.cpp',
434         '../third_party/skia/src/images/SkImageDecoder_Factory.cpp',
435         #'../third_party/skia/src/images/SkImageDecoder_fpdfemb.cpp',
436         #'../third_party/skia/src/images/SkImageDecoder_libbmp.cpp',
437         #'../third_party/skia/src/images/SkImageDecoder_libgif.cpp',
438         #'../third_party/skia/src/images/SkImageDecoder_libico.cpp',
439         #'../third_party/skia/src/images/SkImageDecoder_libjpeg.cpp',
440         #'../third_party/skia/src/images/SkImageDecoder_libpng.cpp',
441         #'../third_party/skia/src/images/SkImageDecoder_libpvjpeg.cpp',
442         #'../third_party/skia/src/images/SkImageDecoder_wbmp.cpp',
443         #'../third_party/skia/src/images/SkImageEncoder.cpp',
444         #'../third_party/skia/src/images/SkImageEncoder_Factory.cpp',
445         #'../third_party/skia/src/images/SkImageRef.cpp',
446         #'../third_party/skia/src/images/SkImageRefPool.cpp',
447         #'../third_party/skia/src/images/SkImageRefPool.h',
448         #'../third_party/skia/src/images/SkImageRef_GlobalPool.cpp',
449         #'../third_party/skia/src/images/SkMovie.cpp',
450         #'../third_party/skia/src/images/SkMovie_gif.cpp',
451         '../third_party/skia/src/images/SkScaledBitmapSampler.cpp',
452         '../third_party/skia/src/images/SkScaledBitmapSampler.h',
454         '../third_party/skia/src/opts/opts_check_SSE2.cpp',
456         '../third_party/skia/src/pdf/SkBitSet.cpp',
457         '../third_party/skia/src/pdf/SkPDFCatalog.cpp',
458         '../third_party/skia/src/pdf/SkPDFDevice.cpp',
459         '../third_party/skia/src/pdf/SkPDFDocument.cpp',
460         '../third_party/skia/src/pdf/SkPDFFont.cpp',
461         '../third_party/skia/src/pdf/SkPDFFormXObject.cpp',
462         '../third_party/skia/src/pdf/SkPDFGraphicState.cpp',
463         '../third_party/skia/src/pdf/SkPDFImage.cpp',
464         '../third_party/skia/src/pdf/SkPDFPage.cpp',
465         '../third_party/skia/src/pdf/SkPDFShader.cpp',
466         '../third_party/skia/src/pdf/SkPDFStream.cpp',
467         '../third_party/skia/src/pdf/SkPDFTypes.cpp',
468         '../third_party/skia/src/pdf/SkPDFUtils.cpp',
470         '../third_party/skia/src/ports/FontHostConfiguration_android.cpp',
471         #'../third_party/skia/src/ports/SkFontHost_FONTPATH.cpp',
472         '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
473         '../third_party/skia/src/ports/SkFontHost_android.cpp',
474         #'../third_party/skia/src/ports/SkFontHost_ascender.cpp',
475         '../third_party/skia/src/ports/SkFontHost_tables.cpp',
476         '../third_party/skia/src/ports/SkFontHost_gamma.cpp',
477         '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp',
478         #'../third_party/skia/src/ports/SkFontHost_linux.cpp',
479         '../third_party/skia/src/ports/SkFontHost_mac.cpp',
480         #'../third_party/skia/src/ports/SkFontHost_none.cpp',
481         '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
482         '../third_party/skia/src/ports/SkFontHost_win.cpp',
483         #'../third_party/skia/src/ports/SkImageDecoder_CG.cpp',
484         #'../third_party/skia/src/ports/SkImageDecoder_empty.cpp',
485         #'../third_party/skia/src/ports/SkImageRef_ashmem.cpp',
486         #'../third_party/skia/src/ports/SkImageRef_ashmem.h',
487         #'../third_party/skia/src/ports/SkOSEvent_android.cpp',
488         #'../third_party/skia/src/ports/SkOSEvent_dummy.cpp',
489         '../third_party/skia/src/ports/SkOSFile_stdio.cpp',
490         #'../third_party/skia/src/ports/SkThread_none.cpp',
491         '../third_party/skia/src/ports/SkThread_pthread.cpp',
492         '../third_party/skia/src/ports/SkThread_win.cpp',
493         '../third_party/skia/src/ports/SkTime_Unix.cpp',
494         #'../third_party/skia/src/ports/SkXMLParser_empty.cpp',
495         #'../third_party/skia/src/ports/SkXMLParser_expat.cpp',
496         #'../third_party/skia/src/ports/SkXMLParser_tinyxml.cpp',
497         #'../third_party/skia/src/ports/SkXMLPullParser_expat.cpp',
498         '../third_party/skia/src/ports/sk_predefined_gamma.h',
500         '../third_party/skia/include/utils/mac/SkCGUtils.h',
501         '../third_party/skia/include/utils/SkMatrix44.h',
502         '../third_party/skia/src/utils/mac/SkCreateCGImageRef.cpp',
503         '../third_party/skia/src/utils/SkMatrix44.cpp',
505         '../third_party/skia/include/core/Sk64.h',
506         '../third_party/skia/include/core/SkAdvancedTypefaceMetrics.h',
507         '../third_party/skia/include/core/SkAutoKern.h',
508         '../third_party/skia/include/core/SkBitmap.h',
509         '../third_party/skia/include/core/SkBlitRow.h',
510         '../third_party/skia/include/core/SkBlitter.h',
511         '../third_party/skia/include/core/SkBounder.h',
512         '../third_party/skia/include/core/SkBuffer.h',
513         '../third_party/skia/include/core/SkCanvas.h',
514         '../third_party/skia/include/core/SkChunkAlloc.h',
515         '../third_party/skia/include/core/SkClipStack.h',
516         '../third_party/skia/include/core/SkColor.h',
517         '../third_party/skia/include/core/SkColorFilter.h',
518         '../third_party/skia/include/core/SkColorPriv.h',
519         '../third_party/skia/include/core/SkColorShader.h',
520         '../third_party/skia/include/core/SkComposeShader.h',
521         '../third_party/skia/include/core/SkData.h',
522         '../third_party/skia/include/core/SkDeque.h',
523         '../third_party/skia/include/core/SkDescriptor.h',
524         '../third_party/skia/include/core/SkDevice.h',
525         '../third_party/skia/include/core/SkDither.h',
526         '../third_party/skia/include/core/SkDraw.h',
527         '../third_party/skia/include/core/SkDrawFilter.h',
528         '../third_party/skia/include/core/SkDrawLooper.h',
529         #'../third_party/skia/include/core/SkDrawing.h',
530         '../third_party/skia/include/core/SkEndian.h',
531         '../third_party/skia/include/core/SkFDot6.h',
532         '../third_party/skia/include/core/SkFixed.h',
533         '../third_party/skia/include/core/SkFlate.h',
534         '../third_party/skia/include/core/SkFlattenable.h',
535         '../third_party/skia/include/core/SkFloatBits.h',
536         '../third_party/skia/include/core/SkFloatingPoint.h',
537         '../third_party/skia/include/core/SkFontHost.h',
538         '../third_party/skia/include/core/SkGeometry.h',
539         '../third_party/skia/include/core/SkGraphics.h',
540         '../third_party/skia/include/core/SkMMapStream.h',
541         '../third_party/skia/include/core/SkMallocPixelRef.h',
542         '../third_party/skia/include/core/SkMask.h',
543         '../third_party/skia/include/core/SkMaskFilter.h',
544         '../third_party/skia/include/core/SkMath.h',
545         '../third_party/skia/include/core/SkMatrix.h',
546         '../third_party/skia/include/core/SkOSFile.h',
547         '../third_party/skia/include/core/SkPackBits.h',
548         '../third_party/skia/include/core/SkPaint.h',
549         '../third_party/skia/include/core/SkPath.h',
550         '../third_party/skia/include/core/SkPathEffect.h',
551         '../third_party/skia/include/core/SkPathMeasure.h',
552         '../third_party/skia/include/core/SkPerspIter.h',
553         '../third_party/skia/include/core/SkPicture.h',
554         '../third_party/skia/include/core/SkPixelRef.h',
555         '../third_party/skia/include/core/SkPoint.h',
556         '../third_party/skia/include/core/SkPtrRecorder.h',
557         '../third_party/skia/include/core/SkRandom.h',
558         '../third_party/skia/include/core/SkRasterizer.h',
559         '../third_party/skia/include/core/SkReader32.h',
560         '../third_party/skia/include/core/SkRect.h',
561         '../third_party/skia/include/core/SkRefCnt.h',
562         '../third_party/skia/include/core/SkRefDict.h',
563         '../third_party/skia/include/core/SkRegion.h',
564         '../third_party/skia/include/core/SkScalar.h',
565         '../third_party/skia/include/core/SkScalarCompare.h',
566         '../third_party/skia/include/core/SkScalerContext.h',
567         '../third_party/skia/include/core/SkScan.h',
568         '../third_party/skia/include/core/SkShader.h',
569         '../third_party/skia/include/core/SkStream.h',
570         '../third_party/skia/include/core/SkString.h',
571         '../third_party/skia/include/core/SkStroke.h',
572         '../third_party/skia/include/core/SkTArray.h',
573         '../third_party/skia/include/core/SkTDArray.h',
574         '../third_party/skia/include/core/SkTDStack.h',
575         '../third_party/skia/include/core/SkTDict.h',
576         '../third_party/skia/include/core/SkTRegistry.h',
577         '../third_party/skia/include/core/SkTScopedPtr.h',
578         '../third_party/skia/include/core/SkTSearch.h',
579         '../third_party/skia/include/core/SkTemplates.h',
580         '../third_party/skia/include/core/SkThread.h',
581         '../third_party/skia/include/core/SkThread_platform.h',
582         '../third_party/skia/include/core/SkTime.h',
583         '../third_party/skia/include/core/SkTypeface.h',
584         '../third_party/skia/include/core/SkTypes.h',
585         '../third_party/skia/include/core/SkUnPreMultiply.h',
586         '../third_party/skia/include/core/SkUnitMapper.h',
587         '../third_party/skia/include/core/SkUtils.h',
588         '../third_party/skia/include/core/SkWriter32.h',
589         '../third_party/skia/include/core/SkXfermode.h',
591         '../third_party/skia/include/effects/Sk1DPathEffect.h',
592         '../third_party/skia/include/effects/Sk2DPathEffect.h',
593         '../third_party/skia/include/effects/SkAvoidXfermode.h',
594         '../third_party/skia/include/effects/SkBlurDrawLooper.h',
595         '../third_party/skia/include/effects/SkBlurImageFilter.h',
596         '../third_party/skia/include/effects/SkBlurMaskFilter.h',
597         '../third_party/skia/include/effects/SkColorMatrix.h',
598         '../third_party/skia/include/effects/SkColorMatrixFilter.h',
599         '../third_party/skia/include/effects/SkCornerPathEffect.h',
600         '../third_party/skia/include/effects/SkDashPathEffect.h',
601         '../third_party/skia/include/effects/SkDiscretePathEffect.h',
602         '../third_party/skia/include/effects/SkDrawExtraPathEffect.h',
603         '../third_party/skia/include/effects/SkEmbossMaskFilter.h',
604         '../third_party/skia/include/effects/SkGradientShader.h',
605         '../third_party/skia/include/effects/SkKernel33MaskFilter.h',
606         '../third_party/skia/include/effects/SkLayerDrawLooper.h',
607         '../third_party/skia/include/effects/SkLayerRasterizer.h',
608         '../third_party/skia/include/effects/SkPaintFlagsDrawFilter.h',
609         '../third_party/skia/include/effects/SkPixelXorXfermode.h',
610         '../third_party/skia/include/effects/SkPorterDuff.h',
611         '../third_party/skia/include/effects/SkTransparentShader.h',
613         '../third_party/skia/include/gpu/GrClip.h',
614         '../third_party/skia/include/gpu/GrClipIterator.h',
615         '../third_party/skia/include/gpu/GrColor.h',
616         '../third_party/skia/include/gpu/GrConfig.h',
617         '../third_party/skia/include/gpu/GrContext.h',
618         '../third_party/skia/include/gpu/GrFontScaler.h',
619         '../third_party/skia/include/gpu/GrGLConfig.h',
620         '../third_party/skia/include/gpu/GrGLConfig_chrome.h',
621         '../third_party/skia/include/gpu/GrGLInterface.h',
622         '../third_party/skia/include/gpu/GrGlyph.h',
623         '../third_party/skia/include/gpu/GrInstanceCounter.h',
624         '../third_party/skia/include/gpu/GrKey.h',
625         '../third_party/skia/include/gpu/GrMatrix.h',
626         '../third_party/skia/include/gpu/GrNoncopyable.h',
627         '../third_party/skia/include/gpu/GrPaint.h',
628         '../third_party/skia/include/gpu/GrPath.h',
629         '../third_party/skia/include/gpu/GrPoint.h',
630         '../third_party/skia/include/gpu/GrRect.h',
631         '../third_party/skia/include/gpu/GrRefCnt.h',
632         '../third_party/skia/include/gpu/GrRenderTarget.h',
633         '../third_party/skia/include/gpu/GrSamplerState.h',
634         '../third_party/skia/include/gpu/GrScalar.h',
635         '../third_party/skia/include/gpu/GrTextContext.h',
636         '../third_party/skia/include/gpu/GrTexture.h',
637         '../third_party/skia/include/gpu/GrTypes.h',
638         '../third_party/skia/include/gpu/GrUserConfig.h',
639         '../third_party/skia/include/gpu/SkGpuCanvas.h',
640         '../third_party/skia/include/gpu/SkGpuDevice.h',
641         '../third_party/skia/include/gpu/SkGr.h',
642         '../third_party/skia/include/gpu/SkGrTexturePixelRef.h',
644         '../third_party/skia/include/pdf/SkBitSet.h',
645         '../third_party/skia/include/pdf/SkPDFCatalog.h',
646         '../third_party/skia/include/pdf/SkPDFDevice.h',
647         '../third_party/skia/include/pdf/SkPDFDocument.h',
648         '../third_party/skia/include/pdf/SkPDFFont.h',
649         '../third_party/skia/include/pdf/SkPDFFormXObject.h',
650         '../third_party/skia/include/pdf/SkPDFGraphicState.h',
651         '../third_party/skia/include/pdf/SkPDFImage.h',
652         '../third_party/skia/include/pdf/SkPDFPage.h',
653         '../third_party/skia/include/pdf/SkPDFShader.h',
654         '../third_party/skia/include/pdf/SkPDFStream.h',
655         '../third_party/skia/include/pdf/SkPDFTypes.h',
656         '../third_party/skia/include/pdf/SkPDFUtils.h',
658         '../third_party/skia/include/ports/SkStream_Win.h',
659         '../third_party/skia/include/ports/SkTypeface_win.h',
661         '../third_party/skia/include/images/SkFlipPixelRef.h',
662         '../third_party/skia/include/images/SkImageDecoder.h',
663         '../third_party/skia/include/images/SkImageEncoder.h',
664         '../third_party/skia/include/images/SkImageRef.h',
665         '../third_party/skia/include/images/SkImageRef_GlobalPool.h',
666         '../third_party/skia/include/images/SkMovie.h',
667         '../third_party/skia/include/images/SkPageFlipper.h',
669         'ext/bitmap_platform_device.h',
670         'ext/bitmap_platform_device_android.cc',
671         'ext/bitmap_platform_device_android.h',
672         'ext/bitmap_platform_device_data.h',
673         'ext/bitmap_platform_device_linux.cc',
674         'ext/bitmap_platform_device_linux.h',
675         'ext/bitmap_platform_device_mac.cc',
676         'ext/bitmap_platform_device_mac.h',
677         'ext/bitmap_platform_device_win.cc',
678         'ext/bitmap_platform_device_win.h',
679         'ext/convolver.cc',
680         'ext/convolver.h',
681         'ext/google_logging.cc',
682         'ext/image_operations.cc',
683         'ext/image_operations.h',
684         'ext/SkThread_chrome.cc',
685         'ext/platform_canvas.cc',
686         'ext/platform_canvas.h',
687         'ext/platform_canvas_linux.cc',
688         'ext/platform_canvas_mac.cc',
689         'ext/platform_canvas_win.cc',
690         'ext/platform_device.cc',
691         'ext/platform_device.h',
692         'ext/platform_device_linux.cc',
693         'ext/platform_device_mac.cc',
694         'ext/platform_device_win.cc',
695         'ext/SkMemory_new_handler.cpp',
696         'ext/skia_sandbox_support_win.h',
697         'ext/skia_sandbox_support_win.cc',
698         'ext/skia_utils_mac.mm',
699         'ext/skia_utils_mac.h',
700         'ext/skia_utils_win.cc',
701         'ext/skia_utils_win.h',
702         'ext/vector_canvas.cc',
703         'ext/vector_canvas.h',
704         'ext/vector_platform_device_emf_win.cc',
705         'ext/vector_platform_device_emf_win.h',
706         'ext/vector_platform_device_skia.cc',
707         'ext/vector_platform_device_skia.h',
708       ],
709       'include_dirs': [
710         '..',
711         'config',
712         '../third_party/skia/include/config',
713         '../third_party/skia/include/core',
714         '../third_party/skia/include/effects',
715         '../third_party/skia/include/gpu',
716         '../third_party/skia/include/images',
717         '../third_party/skia/include/pdf',
718         '../third_party/skia/include/ports',
719         '../third_party/skia/include/utils',
720         '../third_party/skia/src/core',
721       ],
722       'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
723       'mac_framework_dirs': [
724         '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
725       ],
726       'defines': [
727         'SK_BUILD_NO_IMAGE_ENCODE',
728         'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
729         'GR_STATIC_RECT_VB=1',
730         'GR_AGGRESSIVE_SHADER_OPTS=1',
731         'SK_DISABLE_FAST_AA_STROKE_RECT',
732         'SK_DEFAULT_FONT_CACHE_LIMIT=(20*1024*1024)',
733       ],
734       'sources!': [
735         '../third_party/skia/include/core/SkTypes.h',
736       ],
737       'conditions': [
738         [ 'OS != "android"', {
739           'sources/': [
740             ['exclude', '_android\\.(cc|cpp)$'],
741           ],
742           'sources!': [
743             # Below files are only used by Android
744             '../third_party/skia/src/ports/SkFontHost_gamma.cpp',
745             '../third_party/skia/src/ports/SkThread_pthread.cpp',
746           ],
747         }],
748         [ 'OS != "mac"', {
749           'sources/': [
750             ['exclude', '_mac\\.(cc|cpp|mm?)$'],
751             ['exclude', '/mac/']
752           ],
753         }],
754         [ 'OS != "win"', {
755           'sources/': [ ['exclude', '_win\\.(cc|cpp)$'] ],
756         }],
757         [ 'armv7 == 1', {
758           'defines': [
759             '__ARM_ARCH__=7',
760           ],
761         }],
762         [ 'armv7 == 1 and arm_neon == 1', {
763           'defines': [
764             '__ARM_HAVE_NEON',
765           ],
766         }],
767         [ 'target_arch == "arm"', {
768           'sources!': [
769             '../third_party/skia/src/opts/opts_check_SSE2.cpp'
770           ],
771         }],
772         [ 'use_glib == 1', {
773           'dependencies': [
774             '../build/linux/system.gyp:fontconfig',
775             '../build/linux/system.gyp:freetype2',
776             '../build/linux/system.gyp:pangocairo',
777             '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz',
778             '../third_party/icu/icu.gyp:icuuc',
779           ],
780           'cflags': [
781             '-Wno-unused',
782             '-Wno-unused-function',
783           ],
784           'sources': [
785             'ext/SkFontHost_fontconfig.cpp',
786             'ext/SkFontHost_fontconfig_direct.cpp',
787           ],
788         }, {  # use_glib == 0
789           'sources/': [ ['exclude', '_linux\\.(cc|cpp)$'] ],
790           'sources!': [
791             '../third_party/skia/src/ports/SkFontHost_FreeType.cpp',
792             '../third_party/skia/src/ports/SkFontHost_TryeType_Tables.cpp',
793             '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp',
794             '../third_party/skia/src/ports/SkFontHost_tables.cpp',
795           ],
796         }],
797         [ 'toolkit_uses_gtk == 1', {
798           'dependencies': [
799             '../build/linux/system.gyp:gdk',
800           ],
801         }, {  # toolkit_uses_gtk == 0
802           'sources/': [ ['exclude', '_gtk\\.(cc|cpp)$'] ],
803         }],
804         [ 'OS == "android"', {
805           'defines': [
806             'SK_BUILD_FOR_ANDROID_NDK',
807           ],
808           'conditions': [
809             [ '_toolset == "target"', {
810               'defines': [
811                 'HAVE_ENDIAN_H',
812                 'HAVE_PTHREADS',
813                 'OS_ANDROID',
814                 'USE_CHROMIUM_SKIA',
815               ],
816               'dependencies': [
817                 '../third_party/freetype/freetype.gyp:ft2',
818                 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz',
819                 '../third_party/expat/expat.gyp:expat',
820                 'skia_opts'
821               ],
822               'dependencies!': [
823                 # Android doesn't use Skia's PDF generation, which is what uses
824                 # sfntly.
825                 '../third_party/sfntly/sfntly.gyp:sfntly',
826               ],
827               # This exports a hard dependency because it needs to run its
828               # symlink action in order to expose the skia header files.
829               'hard_dependency': 1,
830               'include_dirs': [
831                 '../third_party/expat/files/lib',
832               ],
833               'sources!': [
834                 'ext/SkThread_chrome.cc',
835                 'ext/vector_platform_device_skia.cc',
836                 '../third_party/skia/src/core/SkTypefaceCache.cpp',
837                 '../third_party/skia/src/ports/SkFontHost_gamma_none.cpp',
838               ],
839               'export_dependent_settings': [
840                 '../third_party/harfbuzz/harfbuzz.gyp:harfbuzz',
841               ],
842             }],
843             [ '_toolset=="host" and host_os=="linux"', {
844               'sources': [
845                 'ext/platform_device_linux.cc',
846                 'ext/platform_canvas_linux.cc',
847               ],
848             }],
849           ],
850         }],
851         [ 'OS == "mac"', {
852           'defines': [
853             'SK_BUILD_FOR_MAC',
854           ],
855           'include_dirs': [
856             '../third_party/skia/include/utils/mac',
857           ],
858           'link_settings': {
859             'libraries': [
860               '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
861             ],
862           },
863           'conditions': [
864              [ 'use_skia == 0', {
865                'sources/': [
866                  ['exclude', '/pdf/'],
867                  ['exclude', 'ext/vector_platform_device_skia\\.(cc|h)'],
868                ],
869             },
870             { # use_skia
871               'defines': [
872                 'SK_USE_MAC_CORE_TEXT',
873               ],
874             }],
875           ],
876         }],
877         [ 'OS == "win"', {
878           'sources!': [
879             '../third_party/skia/src/core/SkMMapStream.cpp',
880             '../third_party/skia/src/ports/SkTime_Unix.cpp',
881             '../third_party/skia/src/ports/SkFontHost_sandbox_none.cpp',
882             'ext/SkThread_chrome.cc',
883           ],
884           'include_dirs': [
885             'config/win',
886           ],
887           'direct_dependent_settings': {
888             'include_dirs': [
889               'config/win',
890             ],
891           },
892         }],
893         ['component=="shared_library"', {
894           'defines': [
895             'GR_DLL=1',
896             'GR_IMPLEMENTATION=1',
897             'SKIA_DLL',
898             'SKIA_IMPLEMENTATION=1',
899           ],
900           'dependencies': [
901             '../base/base.gyp:base',
902           ],
903           'direct_dependent_settings': {
904             'defines': [
905               'GR_DLL',
906               'SKIA_DLL',
907             ],
908           },
909         }],
910       ],
911       'dependencies': [
912         'skia_opts',
913         'skia_libtess',
914         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
915         '../third_party/sfntly/sfntly.gyp:sfntly',
916         '../third_party/zlib/zlib.gyp:zlib',
917       ],
918       'direct_dependent_settings': {
919         'include_dirs': [
920           'config',
921           '../third_party/skia/include/config',
922           '../third_party/skia/include/core',
923           '../third_party/skia/include/effects',
924           '../third_party/skia/include/pdf',
925           '../third_party/skia/include/gpu',
926           '../third_party/skia/include/ports',
927           'ext',
928         ],
929         'mac_framework_dirs': [
930           '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
931         ],
932         'defines': [
933           'SK_BUILD_NO_IMAGE_ENCODE',
934           'GR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"',
935           'GR_AGGRESSIVE_SHADER_OPTS=1',
936         ],
937         'conditions': [
938           ['OS=="android"', {
939             'defines': [
940               'SK_BUILD_FOR_ANDROID_NDK',
941             ],
942             'conditions': [
943               [ '_toolset == "target"', {
944                 'defines': [
945                   'HAVE_ENDIAN_H',
946                   'SK_RELEASE',  # Assume platform has a release build.
947                 ],
948                 'dependencies!': [
949                   'skia_opts',
950                   '../third_party/zlib/zlib.gyp:zlib',
951                 ],
952               }],
953             ],
954           }],
955           ['OS=="mac"', {
956             'include_dirs': [
957               '../third_party/skia/include/utils/mac',
958             ],
959           }],
960         ],
961       },
962     },
964     # Due to an unfortunate intersection of lameness between gcc and gyp,
965     # we have to build the *_SSE2.cpp files in a separate target.  The
966     # gcc lameness is that, in order to compile SSE2 intrinsics code, it
967     # must be passed the -msse2 flag.  However, with this flag, it may
968     # emit SSE2 instructions even for scalar code, such as the CPUID
969     # test used to test for the presence of SSE2.  So that, and all other
970     # code must be compiled *without* -msse2.  The gyp lameness is that it
971     # does not allow file-specific CFLAGS, so we must create this extra
972     # target for those files to be compiled with -msse2.
973     #
974     # This is actually only a problem on 32-bit Linux (all Intel Macs have
975     # SSE2, Linux x86_64 has SSE2 by definition, and MSC will happily emit
976     # SSE2 from instrinsics, which generating plain ol' 386 for everything
977     # else).  However, to keep the .gyp file simple and avoid platform-specific
978     # build breakage, we do this on all platforms.
980     # For about the same reason, we need to compile the ARM opts files
981     # separately as well.
982     {
983       'target_name': 'skia_opts',
984       'type': 'static_library',
985       'include_dirs': [
986         '..',
987         'config',
988         '../third_party/skia/include/config',
989         '../third_party/skia/include/core',
990         '../third_party/skia/include/effects',
991         '../third_party/skia/include/images',
992         '../third_party/skia/include/utils',
993         '../third_party/skia/src/core',
994       ],
995       'conditions': [
996         [ 'os_posix == 1 and OS != "mac" and OS != "android" and target_arch != "arm"', {
997           'cflags': [
998             '-msse2',
999           ],
1000         }],
1001         [ 'OS == "android"', {
1002           'defines': [
1003             'SK_BUILD_FOR_ANDROID_NDK',
1004           ],
1005         }],
1006         [ 'target_arch != "arm"', {
1007           'sources': [
1008             '../third_party/skia/src/opts/SkBitmapProcState_opts_SSE2.cpp',
1009             '../third_party/skia/src/opts/SkBlitRow_opts_SSE2.cpp',
1010             '../third_party/skia/src/opts/SkUtils_opts_SSE2.cpp',
1011           ],
1012         },
1013         {  # arm
1014           'conditions': [
1015             [ 'armv7 == 1', {
1016               'defines': [
1017                 '__ARM_ARCH__=7',
1018               ],
1019             }],
1020             [ 'armv7 == 1 and arm_neon == 1', {
1021               'defines': [
1022                 '__ARM_HAVE_NEON',
1023               ],
1024               'cflags': [
1025                 # The neon assembly contains conditional instructions which
1026                 # aren't enclosed in an IT block. The assembler complains
1027                 # without this option.
1028                 # See #86592.
1029                 '-Wa,-mimplicit-it=always',
1030               ],
1031            }],
1032           ],
1033           # The assembly uses the frame pointer register (r7 in Thumb/r11 in
1034           # ARM), the compiler doesn't like that.
1035           'cflags': [
1036             '-fomit-frame-pointer',
1037           ],
1038           'sources': [
1039             '../third_party/skia/src/opts/SkBitmapProcState_opts_arm.cpp',
1040             '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp',
1041             '../third_party/skia/src/opts/opts_check_arm.cpp',
1042           ],
1043         }],
1044         [ 'armv7 == 1 and arm_neon == 0', {
1045           'sources': [
1046             '../third_party/skia/src/opts/memset.arm.S',
1047         ],
1048         }],
1049         [ 'armv7 == 1 and arm_neon == 1', {
1050           'sources': [
1051             '../third_party/skia/src/opts/memset16_neon.S',
1052             '../third_party/skia/src/opts/memset32_neon.S',
1053         ],
1054         }],
1055         [ 'target_arch == "arm" and armv7 != 1', {
1056           'sources': [
1057             '../third_party/skia/src/opts/SkBlitRow_opts_none.cpp',
1058           ],
1059           'sources!': [
1060             '../third_party/skia/src/opts/SkBlitRow_opts_arm.cpp',
1061           ],
1062         }],
1063       ],
1064     },
1065     {
1066       'target_name': 'skia_libtess',
1067       'type': 'static_library',
1068       'include_dirs': [
1069         '../third_party/skia/third_party/glu',
1070       ],
1071       'sources': [
1072         '../third_party/skia/third_party/glu/sk_glu.h',
1073         '../third_party/skia/third_party/glu/gluos.h',
1074         '../third_party/skia/third_party/glu/libtess/dict-list.h',
1075         '../third_party/skia/third_party/glu/libtess/dict.c',
1076         '../third_party/skia/third_party/glu/libtess/dict.h',
1077         '../third_party/skia/third_party/glu/libtess/geom.c',
1078         '../third_party/skia/third_party/glu/libtess/geom.h',
1079         '../third_party/skia/third_party/glu/libtess/memalloc.c',
1080         '../third_party/skia/third_party/glu/libtess/memalloc.h',
1081         '../third_party/skia/third_party/glu/libtess/mesh.c',
1082         '../third_party/skia/third_party/glu/libtess/mesh.h',
1083         '../third_party/skia/third_party/glu/libtess/normal.c',
1084         '../third_party/skia/third_party/glu/libtess/normal.h',
1085         '../third_party/skia/third_party/glu/libtess/priorityq-heap.h',
1086         '../third_party/skia/third_party/glu/libtess/priorityq-sort.h',
1087         '../third_party/skia/third_party/glu/libtess/priorityq.c',
1088         '../third_party/skia/third_party/glu/libtess/priorityq.h',
1089         '../third_party/skia/third_party/glu/libtess/render.c',
1090         '../third_party/skia/third_party/glu/libtess/render.h',
1091         '../third_party/skia/third_party/glu/libtess/sweep.c',
1092         '../third_party/skia/third_party/glu/libtess/sweep.h',
1093         '../third_party/skia/third_party/glu/libtess/tess.c',
1094         '../third_party/skia/third_party/glu/libtess/tess.h',
1095         '../third_party/skia/third_party/glu/libtess/tessmono.c',
1096         '../third_party/skia/third_party/glu/libtess/tessmono.h',
1097       ],
1098       'direct_dependent_settings': {
1099         'include_dirs': [
1100           '../third_party/skia/third_party/glu',
1101         ],
1102       },
1103     },
1104     {
1105       'target_name': 'image_operations_bench',
1106       'type': 'executable',
1107       'dependencies': [
1108         '../base/base.gyp:base',
1109         'skia',
1110       ],
1111       'include_dirs': [
1112         '..',
1113       ],
1114       'sources': [
1115         'ext/image_operations_bench.cc',
1116       ],
1117     },
1118   ],