Bug 1769952 - Fix running raptor on a Win10-64 VM r=sparky
[gecko.git] / gfx / skia / moz.build
blob524bd28dac6c2270fae9b5b40a18b689ece3fa4d
3 #   #####   #######           #     #     #     #     #     #
4 # ##     #  #     #          # #    #  #  #    # #     #   #
5 # ##        #     #         #   #   #  #  #   #   #     # #
6 # ##  ####  #     #        #     #  #  #  #  #     #     #
7 # ##     #  #     #        #######  #  #  #  #######     #      ###
8 # ##     #  #     #        #     #  #  #  #  #     #     #      ###
9 # # #####   #######        #     #   ## ##   #     #     #      ###
11 # Seriously. You shouldn't even be looking at this file unless you're
12 # debugging generate_mozbuild.py.
14 # DO NOT MODIFY THIS FILE IT IS AUTOGENERATED.
17 skia_opt_flags = []
19 if CONFIG['MOZ_OPTIMIZE']:
20     if CONFIG['CC_TYPE'] == 'clang-cl':
21         skia_opt_flags += ['-O2']
22     elif CONFIG['CC_TYPE'] in ('clang', 'gcc'):
23         skia_opt_flags += ['-O3']
25 UNIFIED_SOURCES += [
26     'skia/src/codec/SkMasks.cpp',
27     'skia/src/core/SkAAClip.cpp',
28     'skia/src/core/SkAlphaRuns.cpp',
29     'skia/src/core/SkAnalyticEdge.cpp',
30     'skia/src/core/SkAnnotation.cpp',
31     'skia/src/core/SkArenaAlloc.cpp',
32     'skia/src/core/SkATrace.cpp',
33     'skia/src/core/SkAutoPixmapStorage.cpp',
34     'skia/src/core/SkBBHFactory.cpp',
35     'skia/src/core/SkBigPicture.cpp',
36     'skia/src/core/SkBitmap.cpp',
37     'skia/src/core/SkBitmapCache.cpp',
38     'skia/src/core/SkBitmapController.cpp',
39     'skia/src/core/SkBitmapDevice.cpp',
40     'skia/src/core/SkBlendMode.cpp',
41     'skia/src/core/SkBlurMask.cpp',
42     'skia/src/core/SkBlurMF.cpp',
43     'skia/src/core/SkBuffer.cpp',
44     'skia/src/core/SkCachedData.cpp',
45     'skia/src/core/SkCanvas.cpp',
46     'skia/src/core/SkCanvasPriv.cpp',
47     'skia/src/core/SkClipStack.cpp',
48     'skia/src/core/SkClipStackDevice.cpp',
49     'skia/src/core/SkColor.cpp',
50     'skia/src/core/SkColorFilter.cpp',
51     'skia/src/core/SkColorFilter_Matrix.cpp',
52     'skia/src/core/SkContourMeasure.cpp',
53     'skia/src/core/SkConvertPixels.cpp',
54     'skia/src/core/SkConvolver.cpp',
55     'skia/src/core/SkCpu.cpp',
56     'skia/src/core/SkCubicClipper.cpp',
57     'skia/src/core/SkCubicMap.cpp',
58     'skia/src/core/SkData.cpp',
59     'skia/src/core/SkDataTable.cpp',
60     'skia/src/core/SkDebug.cpp',
61     'skia/src/core/SkDeferredDisplayList.cpp',
62     'skia/src/core/SkDeferredDisplayListRecorder.cpp',
63     'skia/src/core/SkDeque.cpp',
64     'skia/src/core/SkDescriptor.cpp',
65     'skia/src/core/SkDevice.cpp',
66     'skia/src/core/SkDistanceFieldGen.cpp',
67     'skia/src/core/SkDocument.cpp',
68     'skia/src/core/SkDraw.cpp',
69     'skia/src/core/SkDraw_atlas.cpp',
70     'skia/src/core/SkDraw_text.cpp',
71     'skia/src/core/SkDraw_vertices.cpp',
72     'skia/src/core/SkDrawable.cpp',
73     'skia/src/core/SkDrawLooper.cpp',
74     'skia/src/core/SkDrawShadowInfo.cpp',
75     'skia/src/core/SkEdge.cpp',
76     'skia/src/core/SkEdgeBuilder.cpp',
77     'skia/src/core/SkEdgeClipper.cpp',
78     'skia/src/core/SkExecutor.cpp',
79     'skia/src/core/SkFlattenable.cpp',
80     'skia/src/core/SkFont.cpp',
81     'skia/src/core/SkFontDescriptor.cpp',
82     'skia/src/core/SkFontLCDConfig.cpp',
83     'skia/src/core/SkFontMgr.cpp',
84     'skia/src/core/SkFontStream.cpp',
85     'skia/src/core/SkGaussFilter.cpp',
86     'skia/src/core/SkGeometry.cpp',
87     'skia/src/core/SkGlobalInitialization_core.cpp',
88     'skia/src/core/SkGlyph.cpp',
89     'skia/src/core/SkGlyphBuffer.cpp',
90     'skia/src/core/SkGlyphRun.cpp',
91     'skia/src/core/SkGlyphRunPainter.cpp',
92     'skia/src/core/SkGpuBlurUtils.cpp',
93     'skia/src/core/SkGraphics.cpp',
94     'skia/src/core/SkHalf.cpp',
95     'skia/src/core/SkICC.cpp',
96     'skia/src/core/SkImageFilter.cpp',
97     'skia/src/core/SkImageFilterCache.cpp',
98     'skia/src/core/SkImageFilterTypes.cpp',
99     'skia/src/core/SkImageGenerator.cpp',
100     'skia/src/core/SkImageInfo.cpp',
101     'skia/src/core/SkLatticeIter.cpp',
102     'skia/src/core/SkLineClipper.cpp',
103     'skia/src/core/SkLocalMatrixImageFilter.cpp',
104     'skia/src/core/SkMallocPixelRef.cpp',
105     'skia/src/core/SkMask.cpp',
106     'skia/src/core/SkMaskBlurFilter.cpp',
107     'skia/src/core/SkMaskCache.cpp',
108     'skia/src/core/SkMaskFilter.cpp',
109     'skia/src/core/SkMaskGamma.cpp',
110     'skia/src/core/SkMath.cpp',
111     'skia/src/core/SkMatrixImageFilter.cpp',
112     'skia/src/core/SkMD5.cpp',
113     'skia/src/core/SkMipMap.cpp',
114     'skia/src/core/SkModeColorFilter.cpp',
115     'skia/src/core/SkMultiPictureDraw.cpp',
116     'skia/src/core/SkPaint.cpp',
117     'skia/src/core/SkPaintPriv.cpp',
118     'skia/src/core/SkPath.cpp',
119     'skia/src/core/SkPath_serial.cpp',
120     'skia/src/core/SkPathEffect.cpp',
121     'skia/src/core/SkPathMeasure.cpp',
122     'skia/src/core/SkPathRef.cpp',
123     'skia/src/core/SkPicture.cpp',
124     'skia/src/core/SkPictureFlat.cpp',
125     'skia/src/core/SkPictureImageGenerator.cpp',
126     'skia/src/core/SkPicturePlayback.cpp',
127     'skia/src/core/SkPictureRecord.cpp',
128     'skia/src/core/SkPictureRecorder.cpp',
129     'skia/src/core/SkPixelRef.cpp',
130     'skia/src/core/SkPixmap.cpp',
131     'skia/src/core/SkPoint.cpp',
132     'skia/src/core/SkPoint3.cpp',
133     'skia/src/core/SkPromiseImageTexture.cpp',
134     'skia/src/core/SkPtrRecorder.cpp',
135     'skia/src/core/SkQuadClipper.cpp',
136     'skia/src/core/SkRasterClip.cpp',
137     'skia/src/core/SkRasterPipeline.cpp',
138     'skia/src/core/SkRasterPipelineBlitter.cpp',
139     'skia/src/core/SkReadBuffer.cpp',
140     'skia/src/core/SkRecord.cpp',
141     'skia/src/core/SkRecordDraw.cpp',
142     'skia/src/core/SkRecordedDrawable.cpp',
143     'skia/src/core/SkRecordOpts.cpp',
144     'skia/src/core/SkRecords.cpp',
145     'skia/src/core/SkRect.cpp',
146     'skia/src/core/SkRegion.cpp',
147     'skia/src/core/SkRegion_path.cpp',
148     'skia/src/core/SkRemoteGlyphCache.cpp',
149     'skia/src/core/SkResourceCache.cpp',
150     'skia/src/core/SkRRect.cpp',
151     'skia/src/core/SkRWBuffer.cpp',
152     'skia/src/core/SkScalar.cpp',
153     'skia/src/core/SkScalerContext.cpp',
154     'skia/src/core/SkScan.cpp',
155     'skia/src/core/SkScan_AAAPath.cpp',
156     'skia/src/core/SkScan_Hairline.cpp',
157     'skia/src/core/SkScan_Path.cpp',
158     'skia/src/core/SkSemaphore.cpp',
159     'skia/src/core/SkSharedMutex.cpp',
160     'skia/src/core/SkSpecialImage.cpp',
161     'skia/src/core/SkSpecialSurface.cpp',
162     'skia/src/core/SkSpinlock.cpp',
163     'skia/src/core/SkStream.cpp',
164     'skia/src/core/SkStrike.cpp',
165     'skia/src/core/SkStrikeCache.cpp',
166     'skia/src/core/SkStrikeForGPU.cpp',
167     'skia/src/core/SkStrikeSpec.cpp',
168     'skia/src/core/SkString.cpp',
169     'skia/src/core/SkStringUtils.cpp',
170     'skia/src/core/SkStroke.cpp',
171     'skia/src/core/SkStrokeRec.cpp',
172     'skia/src/core/SkStrokerPriv.cpp',
173     'skia/src/core/SkSurfaceCharacterization.cpp',
174     'skia/src/core/SkSwizzle.cpp',
175     'skia/src/core/SkTaskGroup.cpp',
176     'skia/src/core/SkTextBlob.cpp',
177     'skia/src/core/SkThreadID.cpp',
178     'skia/src/core/SkTime.cpp',
179     'skia/src/core/SkTLS.cpp',
180     'skia/src/core/SkTSearch.cpp',
181     'skia/src/core/SkTypeface.cpp',
182     'skia/src/core/SkTypeface_remote.cpp',
183     'skia/src/core/SkTypefaceCache.cpp',
184     'skia/src/core/SkUnPreMultiply.cpp',
185     'skia/src/core/SkUtils.cpp',
186     'skia/src/core/SkVertState.cpp',
187     'skia/src/core/SkVM.cpp',
188     'skia/src/core/SkVMBlitter.cpp',
189     'skia/src/core/SkWriteBuffer.cpp',
190     'skia/src/core/SkWriter32.cpp',
191     'skia/src/core/SkYUVASizeInfo.cpp',
192     'skia/src/core/SkYUVMath.cpp',
193     'skia/src/core/SkYUVPlanesCache.cpp',
194     'skia/src/effects/imagefilters/SkBlurImageFilter.cpp',
195     'skia/src/effects/imagefilters/SkComposeImageFilter.cpp',
196     'skia/src/effects/SkDashPathEffect.cpp',
197     'skia/src/image/SkImage.cpp',
198     'skia/src/image/SkImage_Lazy.cpp',
199     'skia/src/image/SkImage_Raster.cpp',
200     'skia/src/image/SkSurface.cpp',
201     'skia/src/image/SkSurface_Raster.cpp',
202     'skia/src/images/SkImageEncoder.cpp',
203     'skia/src/lazy/SkDiscardableMemoryPool.cpp',
204     'skia/src/pathops/SkAddIntersections.cpp',
205     'skia/src/pathops/SkDConicLineIntersection.cpp',
206     'skia/src/pathops/SkDCubicLineIntersection.cpp',
207     'skia/src/pathops/SkDCubicToQuads.cpp',
208     'skia/src/pathops/SkDLineIntersection.cpp',
209     'skia/src/pathops/SkDQuadLineIntersection.cpp',
210     'skia/src/pathops/SkIntersections.cpp',
211     'skia/src/pathops/SkOpAngle.cpp',
212     'skia/src/pathops/SkOpBuilder.cpp',
213     'skia/src/pathops/SkOpCoincidence.cpp',
214     'skia/src/pathops/SkOpContour.cpp',
215     'skia/src/pathops/SkOpCubicHull.cpp',
216     'skia/src/pathops/SkOpEdgeBuilder.cpp',
217     'skia/src/pathops/SkOpSegment.cpp',
218     'skia/src/pathops/SkOpSpan.cpp',
219     'skia/src/pathops/SkPathOpsAsWinding.cpp',
220     'skia/src/pathops/SkPathOpsCommon.cpp',
221     'skia/src/pathops/SkPathOpsConic.cpp',
222     'skia/src/pathops/SkPathOpsCubic.cpp',
223     'skia/src/pathops/SkPathOpsCurve.cpp',
224     'skia/src/pathops/SkPathOpsLine.cpp',
225     'skia/src/pathops/SkPathOpsOp.cpp',
226     'skia/src/pathops/SkPathOpsQuad.cpp',
227     'skia/src/pathops/SkPathOpsRect.cpp',
228     'skia/src/pathops/SkPathOpsSimplify.cpp',
229     'skia/src/pathops/SkPathOpsTightBounds.cpp',
230     'skia/src/pathops/SkPathOpsTSect.cpp',
231     'skia/src/pathops/SkPathOpsTypes.cpp',
232     'skia/src/pathops/SkPathOpsWinding.cpp',
233     'skia/src/pathops/SkPathWriter.cpp',
234     'skia/src/pathops/SkReduceOrder.cpp',
235     'skia/src/ports/SkDiscardableMemory_none.cpp',
236     'skia/src/ports/SkGlobalInitialization_default.cpp',
237     'skia/src/ports/SkImageGenerator_none.cpp',
238     'skia/src/ports/SkMemory_mozalloc.cpp',
239     'skia/src/ports/SkOSFile_stdio.cpp',
240     'skia/src/sfnt/SkOTTable_name.cpp',
241     'skia/src/sfnt/SkOTUtils.cpp',
242     'skia/src/shaders/gradients/Sk4fGradientBase.cpp',
243     'skia/src/shaders/gradients/Sk4fLinearGradient.cpp',
244     'skia/src/shaders/gradients/SkGradientShader.cpp',
245     'skia/src/shaders/gradients/SkLinearGradient.cpp',
246     'skia/src/shaders/gradients/SkRadialGradient.cpp',
247     'skia/src/shaders/gradients/SkSweepGradient.cpp',
248     'skia/src/shaders/gradients/SkTwoPointConicalGradient.cpp',
249     'skia/src/shaders/SkBitmapProcShader.cpp',
250     'skia/src/shaders/SkColorFilterShader.cpp',
251     'skia/src/shaders/SkColorShader.cpp',
252     'skia/src/shaders/SkComposeShader.cpp',
253     'skia/src/shaders/SkImageShader.cpp',
254     'skia/src/shaders/SkLocalMatrixShader.cpp',
255     'skia/src/shaders/SkPerlinNoiseShader.cpp',
256     'skia/src/shaders/SkPictureShader.cpp',
257     'skia/src/shaders/SkRTShader.cpp',
258     'skia/src/shaders/SkShader.cpp',
259     'skia/src/sksl/ir/SkSLSetting.cpp',
260     'skia/src/sksl/ir/SkSLSymbolTable.cpp',
261     'skia/src/sksl/ir/SkSLType.cpp',
262     'skia/src/sksl/ir/SkSLVariableReference.cpp',
263     'skia/src/sksl/SkSLASTNode.cpp',
264     'skia/src/sksl/SkSLByteCode.cpp',
265     'skia/src/sksl/SkSLByteCodeGenerator.cpp',
266     'skia/src/sksl/SkSLCFGGenerator.cpp',
267     'skia/src/sksl/SkSLCompiler.cpp',
268     'skia/src/sksl/SkSLIRGenerator.cpp',
269     'skia/src/sksl/SkSLParser.cpp',
270     'skia/src/sksl/SkSLSectionAndParameterHelper.cpp',
271     'skia/src/sksl/SkSLString.cpp',
272     'skia/src/sksl/SkSLUtil.cpp',
273     'skia/src/utils/mac/SkStream_mac.cpp',
274     'skia/src/utils/SkBase64.cpp',
275     'skia/src/utils/SkCharToGlyphCache.cpp',
276     'skia/src/utils/SkDashPath.cpp',
277     'skia/src/utils/SkEventTracer.cpp',
278     'skia/src/utils/SkFloatToDecimal.cpp',
279     'skia/src/utils/SkMatrix22.cpp',
280     'skia/src/utils/SkOSPath.cpp',
281     'skia/src/utils/SkPatchUtils.cpp',
282     'skia/src/utils/SkPolyUtils.cpp',
283     'skia/src/utils/SkShadowTessellator.cpp',
284     'skia/src/utils/SkShadowUtils.cpp',
285     'skia/src/utils/SkTextUtils.cpp',
286     'skia/src/utils/SkThreadUtils_pthread.cpp',
287     'skia/src/utils/SkThreadUtils_win.cpp',
288     'skia/src/utils/SkUTF.cpp',
289     'skia/src/utils/win/SkAutoCoInitialize.cpp',
290     'skia/src/utils/win/SkDWrite.cpp',
291     'skia/src/utils/win/SkDWriteFontFileStream.cpp',
292     'skia/src/utils/win/SkDWriteGeometrySink.cpp',
293     'skia/src/utils/win/SkHRESULT.cpp',
294     'skia/src/utils/win/SkIStream.cpp',
296 SOURCES += [
297     'skia/src/core/SkBitmapProcState.cpp',
298     'skia/src/core/SkBitmapProcState_matrixProcs.cpp',
299     'skia/src/core/SkBitmapScaler.cpp',
300     'skia/src/core/SkBlitRow_D32.cpp',
301     'skia/src/core/SkBlitter.cpp',
302     'skia/src/core/SkBlitter_A8.cpp',
303     'skia/src/core/SkBlitter_ARGB32.cpp',
304     'skia/src/core/SkBlitter_RGB565.cpp',
305     'skia/src/core/SkBlitter_Sprite.cpp',
306     'skia/src/core/SkColorSpace.cpp',
307     'skia/src/core/SkColorSpaceXformSteps.cpp',
308     'skia/src/core/SkMatrix.cpp',
309     'skia/src/core/SkMatrix44.cpp',
310     'skia/src/core/SkMiniRecorder.cpp',
311     'skia/src/core/SkOpts.cpp',
312     'skia/src/core/SkPictureData.cpp',
313     'skia/src/core/SkRecorder.cpp',
314     'skia/src/core/SkRTree.cpp',
315     'skia/src/core/SkScan_Antihair.cpp',
316     'skia/src/core/SkScan_AntiPath.cpp',
317     'skia/src/core/SkSpriteBlitter_ARGB32.cpp',
318     'skia/src/core/SkSpriteBlitter_RGB565.cpp',
319     'skia/src/core/SkVertices.cpp',
320     'skia/src/core/SkXfermode.cpp',
321     'skia/src/core/SkXfermodeInterpretation.cpp',
322     'skia/src/pathops/SkPathOpsDebug.cpp',
323     'skia/src/sksl/SkSLLexer.cpp',
324     'skia/src/utils/SkParse.cpp',
325     'skia/src/utils/SkParsePath.cpp',
326     'skia/third_party/skcms/skcms.cc',
328 SOURCES['skia/src/core/SkBitmapProcState.cpp'].flags += skia_opt_flags
329 SOURCES['skia/src/core/SkBitmapProcState_matrixProcs.cpp'].flags += skia_opt_flags
330 SOURCES['skia/src/core/SkBitmapScaler.cpp'].flags += skia_opt_flags
331 SOURCES['skia/src/core/SkBlitRow_D32.cpp'].flags += skia_opt_flags
332 SOURCES['skia/src/core/SkBlitter.cpp'].flags += skia_opt_flags
333 SOURCES['skia/src/core/SkBlitter_A8.cpp'].flags += skia_opt_flags
334 SOURCES['skia/src/core/SkBlitter_ARGB32.cpp'].flags += skia_opt_flags
335 SOURCES['skia/src/core/SkBlitter_RGB565.cpp'].flags += skia_opt_flags
336 SOURCES['skia/src/core/SkBlitter_Sprite.cpp'].flags += skia_opt_flags
337 SOURCES['skia/src/core/SkMatrix.cpp'].flags += skia_opt_flags
338 SOURCES['skia/src/core/SkOpts.cpp'].flags += skia_opt_flags
339 SOURCES['skia/src/core/SkSpriteBlitter_ARGB32.cpp'].flags += skia_opt_flags
340 SOURCES['skia/src/core/SkSpriteBlitter_RGB565.cpp'].flags += skia_opt_flags
341 SOURCES['skia/third_party/skcms/skcms.cc'].flags += skia_opt_flags
342 if CONFIG['MOZ_ENABLE_SKIA_PDF']:
343     UNIFIED_SOURCES += [
344         'skia/src/pdf/SkClusterator.cpp',
345         'skia/src/pdf/SkDeflate.cpp',
346         'skia/src/pdf/SkJpegInfo.cpp',
347         'skia/src/pdf/SkKeyedImage.cpp',
348         'skia/src/pdf/SkPDFBitmap.cpp',
349         'skia/src/pdf/SkPDFDocument.cpp',
350         'skia/src/pdf/SkPDFFormXObject.cpp',
351         'skia/src/pdf/SkPDFGradientShader.cpp',
352         'skia/src/pdf/SkPDFGraphicStackState.cpp',
353         'skia/src/pdf/SkPDFGraphicState.cpp',
354         'skia/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp',
355         'skia/src/pdf/SkPDFMakeToUnicodeCmap.cpp',
356         'skia/src/pdf/SkPDFMetadata.cpp',
357         'skia/src/pdf/SkPDFResourceDict.cpp',
358         'skia/src/pdf/SkPDFShader.cpp',
359         'skia/src/pdf/SkPDFSubsetFont.cpp',
360         'skia/src/pdf/SkPDFTag.cpp',
361         'skia/src/pdf/SkPDFTypes.cpp',
362         'skia/src/pdf/SkPDFUtils.cpp',
363     ]
364     SOURCES += [
365         'skia/src/pdf/SkPDFDevice.cpp',
366         'skia/src/pdf/SkPDFFont.cpp',
367         'skia/src/pdf/SkPDFType1Font.cpp',
368     ]
369 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
370     UNIFIED_SOURCES += [
371         'skia/src/ports/SkDebug_android.cpp',
372         'skia/src/ports/SkOSFile_posix.cpp',
373         'skia/src/ports/SkOSLibrary_posix.cpp',
374         'skia/src/ports/SkTLS_pthread.cpp',
375     ]
376     SOURCES += [
377         'skia/src/ports/SkFontHost_cairo.cpp',
378         'skia/src/ports/SkFontHost_FreeType_common.cpp',
379     ]
380 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'uikit'):
381     UNIFIED_SOURCES += [
382         'skia/src/ports/SkDebug_stdio.cpp',
383         'skia/src/ports/SkOSFile_posix.cpp',
384         'skia/src/ports/SkOSLibrary_posix.cpp',
385         'skia/src/ports/SkTLS_pthread.cpp',
386     ]
387     SOURCES += [
388         'skia/src/ports/SkFontHost_mac.cpp',
389     ]
390 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
391     UNIFIED_SOURCES += [
392         'skia/src/ports/SkDebug_stdio.cpp',
393         'skia/src/ports/SkOSFile_posix.cpp',
394         'skia/src/ports/SkOSLibrary_posix.cpp',
395         'skia/src/ports/SkTLS_pthread.cpp',
396     ]
397     SOURCES += [
398         'skia/src/ports/SkFontHost_cairo.cpp',
399         'skia/src/ports/SkFontHost_FreeType_common.cpp',
400     ]
401 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
402     SOURCES += [
403         'skia/src/ports/SkDebug_win.cpp',
404         'skia/src/ports/SkFontHost_win.cpp',
405         'skia/src/ports/SkFontMgr_win_dw.cpp',
406         'skia/src/ports/SkFontMgr_win_dw_factory.cpp',
407         'skia/src/ports/SkOSFile_win.cpp',
408         'skia/src/ports/SkOSLibrary_win.cpp',
409         'skia/src/ports/SkScalerContext_win_dw.cpp',
410         'skia/src/ports/SkTLS_win.cpp',
411         'skia/src/ports/SkTypeface_win_dw.cpp',
412     ]
413 if CONFIG['INTEL_ARCHITECTURE']:
414     SOURCES += [
415         'skia/src/opts/SkOpts_avx.cpp',
416         'skia/src/opts/SkOpts_hsw.cpp',
417         'skia/src/opts/SkOpts_sse41.cpp',
418         'skia/src/opts/SkOpts_sse42.cpp',
419         'skia/src/opts/SkOpts_ssse3.cpp',
420     ]
421     SOURCES['skia/src/opts/SkOpts_avx.cpp'].flags += skia_opt_flags
422     SOURCES['skia/src/opts/SkOpts_hsw.cpp'].flags += skia_opt_flags
423     SOURCES['skia/src/opts/SkOpts_sse41.cpp'].flags += skia_opt_flags
424     SOURCES['skia/src/opts/SkOpts_sse42.cpp'].flags += skia_opt_flags
425     SOURCES['skia/src/opts/SkOpts_ssse3.cpp'].flags += skia_opt_flags
426 elif CONFIG['CPU_ARCH'] == 'aarch64':
427     SOURCES += [
428         'skia/src/opts/SkOpts_crc32.cpp',
429     ]
430     SOURCES['skia/src/opts/SkOpts_crc32.cpp'].flags += skia_opt_flags
433 # We allow warnings for third-party code that can be updated from upstream.
434 AllowCompilerWarnings()
436 FINAL_LIBRARY = 'gkmedias'
437 LOCAL_INCLUDES += [
438     'skia',
439     'skia/include/third_party/skcms',
442 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
443     DEFINES['UNICODE'] = True
444     DEFINES['_UNICODE'] = True
445     UNIFIED_SOURCES += [
446         'skia/src/fonts/SkFontMgr_indirect.cpp',
447         'skia/src/fonts/SkRemotableFontMgr.cpp',
448     ]
450 # We should autogenerate these SSE related flags.
452 if CONFIG['INTEL_ARCHITECTURE']:
453     SOURCES['skia/src/opts/SkOpts_ssse3.cpp'].flags += ['-mssse3']
454     SOURCES['skia/src/opts/SkOpts_sse41.cpp'].flags += ['-msse4.1']
455     SOURCES['skia/src/opts/SkOpts_sse42.cpp'].flags += ['-msse4.2']
456     SOURCES['skia/src/opts/SkOpts_avx.cpp'].flags += ['-mavx']
457     SOURCES['skia/src/opts/SkOpts_hsw.cpp'].flags += ['-mavx2', '-mf16c', '-mfma']
458 elif CONFIG['CPU_ARCH'] == 'arm' and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
459     CXXFLAGS += CONFIG['NEON_FLAGS']
460 elif CONFIG['CPU_ARCH'] == 'aarch64' and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
461     SOURCES['skia/src/opts/SkOpts_crc32.cpp'].flags += ['-march=armv8-a+crc']
463 DEFINES['SKIA_IMPLEMENTATION'] = 1
465 DEFINES['SK_PDF_USE_HARFBUZZ_SUBSETTING'] = 1
467 if CONFIG['MOZ_TREE_FREETYPE']:
468     DEFINES['SK_CAN_USE_DLOPEN'] = 0
470 # Suppress warnings in third-party code.
471 CXXFLAGS += [
472     '-Wno-deprecated-declarations',
473     '-Wno-overloaded-virtual',
474     '-Wno-sign-compare',
475     '-Wno-unreachable-code',
476     '-Wno-unused-function',
478 if CONFIG['CC_TYPE'] == 'gcc':
479     CXXFLAGS += [
480         '-Wno-logical-op',
481         '-Wno-maybe-uninitialized',
482     ]
483 if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
484     CXXFLAGS += [
485         '-Wno-implicit-fallthrough',
486         '-Wno-inconsistent-missing-override',
487         '-Wno-macro-redefined',
488         '-Wno-unused-private-field',
489     ]
491 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk', 'android'):
492     LOCAL_INCLUDES += [
493         "/gfx/cairo/cairo/src",
494     ]
495     CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']
497 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
498     CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']