Bug 1869043 add a main thread record of track audio outputs r=padenot
[gecko.git] / gfx / skia / moz.build
blob83aa2957a938e762916fb32c5454fb4791db7c1b
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/base/SkArenaAlloc.cpp',
27     'skia/src/base/SkBezierCurves.cpp',
28     'skia/src/base/SkBlockAllocator.cpp',
29     'skia/src/base/SkBuffer.cpp',
30     'skia/src/base/SkContainers.cpp',
31     'skia/src/base/SkCubics.cpp',
32     'skia/src/base/SkDeque.cpp',
33     'skia/src/base/SkFloatingPoint.cpp',
34     'skia/src/base/SkHalf.cpp',
35     'skia/src/base/SkMalloc.cpp',
36     'skia/src/base/SkMathPriv.cpp',
37     'skia/src/base/SkQuads.cpp',
38     'skia/src/base/SkSafeMath.cpp',
39     'skia/src/base/SkSemaphore.cpp',
40     'skia/src/base/SkTDArray.cpp',
41     'skia/src/base/SkThreadID.cpp',
42     'skia/src/base/SkTSearch.cpp',
43     'skia/src/base/SkUTF.cpp',
44     'skia/src/base/SkUtils.cpp',
45     'skia/src/codec/SkMasks.cpp',
46     'skia/src/core/SkAAClip.cpp',
47     'skia/src/core/SkAlphaRuns.cpp',
48     'skia/src/core/SkAnalyticEdge.cpp',
49     'skia/src/core/SkAnnotation.cpp',
50     'skia/src/core/SkATrace.cpp',
51     'skia/src/core/SkAutoPixmapStorage.cpp',
52     'skia/src/core/SkBBHFactory.cpp',
53     'skia/src/core/SkBigPicture.cpp',
54     'skia/src/core/SkBitmap.cpp',
55     'skia/src/core/SkBitmapCache.cpp',
56     'skia/src/core/SkBitmapDevice.cpp',
57     'skia/src/core/SkBlendMode.cpp',
58     'skia/src/core/SkBlendModeBlender.cpp',
59     'skia/src/core/SkBlurMask.cpp',
60     'skia/src/core/SkBlurMF.cpp',
61     'skia/src/core/SkCachedData.cpp',
62     'skia/src/core/SkCanvas.cpp',
63     'skia/src/core/SkCanvas_Raster.cpp',
64     'skia/src/core/SkCanvasPriv.cpp',
65     'skia/src/core/SkCapabilities.cpp',
66     'skia/src/core/SkChromeRemoteGlyphCache.cpp',
67     'skia/src/core/SkClipStack.cpp',
68     'skia/src/core/SkClipStackDevice.cpp',
69     'skia/src/core/SkColor.cpp',
70     'skia/src/core/SkColorFilter.cpp',
71     'skia/src/core/SkColorFilter_Matrix.cpp',
72     'skia/src/core/SkCompressedDataUtils.cpp',
73     'skia/src/core/SkContourMeasure.cpp',
74     'skia/src/core/SkConvertPixels.cpp',
75     'skia/src/core/SkCubicClipper.cpp',
76     'skia/src/core/SkCubicMap.cpp',
77     'skia/src/core/SkData.cpp',
78     'skia/src/core/SkDataTable.cpp',
79     'skia/src/core/SkDebug.cpp',
80     'skia/src/core/SkDeferredDisplayList.cpp',
81     'skia/src/core/SkDeferredDisplayListRecorder.cpp',
82     'skia/src/core/SkDescriptor.cpp',
83     'skia/src/core/SkDevice.cpp',
84     'skia/src/core/SkDistanceFieldGen.cpp',
85     'skia/src/core/SkDocument.cpp',
86     'skia/src/core/SkDraw.cpp',
87     'skia/src/core/SkDraw_atlas.cpp',
88     'skia/src/core/SkDraw_text.cpp',
89     'skia/src/core/SkDraw_vertices.cpp',
90     'skia/src/core/SkDrawable.cpp',
91     'skia/src/core/SkDrawBase.cpp',
92     'skia/src/core/SkDrawLooper.cpp',
93     'skia/src/core/SkDrawShadowInfo.cpp',
94     'skia/src/core/SkEdge.cpp',
95     'skia/src/core/SkEdgeBuilder.cpp',
96     'skia/src/core/SkEdgeClipper.cpp',
97     'skia/src/core/SkExecutor.cpp',
98     'skia/src/core/SkFlattenable.cpp',
99     'skia/src/core/SkFont.cpp',
100     'skia/src/core/SkFont_serial.cpp',
101     'skia/src/core/SkFontDescriptor.cpp',
102     'skia/src/core/SkFontMetricsPriv.cpp',
103     'skia/src/core/SkFontMgr.cpp',
104     'skia/src/core/SkFontStream.cpp',
105     'skia/src/core/SkGaussFilter.cpp',
106     'skia/src/core/SkGeometry.cpp',
107     'skia/src/core/SkGlobalInitialization_core.cpp',
108     'skia/src/core/SkGlyph.cpp',
109     'skia/src/core/SkGlyphRunPainter.cpp',
110     'skia/src/core/SkGpuBlurUtils.cpp',
111     'skia/src/core/SkGraphics.cpp',
112     'skia/src/core/SkIDChangeListener.cpp',
113     'skia/src/core/SkImageFilter.cpp',
114     'skia/src/core/SkImageFilterCache.cpp',
115     'skia/src/core/SkImageFilterTypes.cpp',
116     'skia/src/core/SkImageGenerator.cpp',
117     'skia/src/core/SkImageInfo.cpp',
118     'skia/src/core/SkLatticeIter.cpp',
119     'skia/src/core/SkLineClipper.cpp',
120     'skia/src/core/SkLocalMatrixImageFilter.cpp',
121     'skia/src/core/SkM44.cpp',
122     'skia/src/core/SkMallocPixelRef.cpp',
123     'skia/src/core/SkMask.cpp',
124     'skia/src/core/SkMaskBlurFilter.cpp',
125     'skia/src/core/SkMaskCache.cpp',
126     'skia/src/core/SkMaskFilter.cpp',
127     'skia/src/core/SkMaskGamma.cpp',
128     'skia/src/core/SkMatrixInvert.cpp',
129     'skia/src/core/SkMD5.cpp',
130     'skia/src/core/SkMesh.cpp',
131     'skia/src/core/SkMipmap.cpp',
132     'skia/src/core/SkMipmapAccessor.cpp',
133     'skia/src/core/SkMipmapBuilder.cpp',
134     'skia/src/core/SkModeColorFilter.cpp',
135     'skia/src/core/SkPaint.cpp',
136     'skia/src/core/SkPaintPriv.cpp',
137     'skia/src/core/SkPath_serial.cpp',
138     'skia/src/core/SkPathBuilder.cpp',
139     'skia/src/core/SkPathEffect.cpp',
140     'skia/src/core/SkPathMeasure.cpp',
141     'skia/src/core/SkPathRef.cpp',
142     'skia/src/core/SkPathUtils.cpp',
143     'skia/src/core/SkPicture.cpp',
144     'skia/src/core/SkPictureFlat.cpp',
145     'skia/src/core/SkPictureImageGenerator.cpp',
146     'skia/src/core/SkPicturePlayback.cpp',
147     'skia/src/core/SkPictureRecord.cpp',
148     'skia/src/core/SkPictureRecorder.cpp',
149     'skia/src/core/SkPixelRef.cpp',
150     'skia/src/core/SkPixmap.cpp',
151     'skia/src/core/SkPixmapDraw.cpp',
152     'skia/src/core/SkPoint.cpp',
153     'skia/src/core/SkPoint3.cpp',
154     'skia/src/core/SkPromiseImageTexture.cpp',
155     'skia/src/core/SkPtrRecorder.cpp',
156     'skia/src/core/SkQuadClipper.cpp',
157     'skia/src/core/SkRasterClip.cpp',
158     'skia/src/core/SkRasterPipeline.cpp',
159     'skia/src/core/SkRasterPipelineBlitter.cpp',
160     'skia/src/core/SkReadBuffer.cpp',
161     'skia/src/core/SkReadPixelsRec.cpp',
162     'skia/src/core/SkRecord.cpp',
163     'skia/src/core/SkRecordDraw.cpp',
164     'skia/src/core/SkRecordedDrawable.cpp',
165     'skia/src/core/SkRecordOpts.cpp',
166     'skia/src/core/SkRecords.cpp',
167     'skia/src/core/SkRect.cpp',
168     'skia/src/core/SkRegion.cpp',
169     'skia/src/core/SkRegion_path.cpp',
170     'skia/src/core/SkResourceCache.cpp',
171     'skia/src/core/SkRRect.cpp',
172     'skia/src/core/SkRSXform.cpp',
173     'skia/src/core/SkRuntimeEffect.cpp',
174     'skia/src/core/SkScalar.cpp',
175     'skia/src/core/SkScalerContext.cpp',
176     'skia/src/core/SkScan.cpp',
177     'skia/src/core/SkScan_AAAPath.cpp',
178     'skia/src/core/SkScan_Hairline.cpp',
179     'skia/src/core/SkScan_Path.cpp',
180     'skia/src/core/SkScan_SAAPath.cpp',
181     'skia/src/core/SkSharedMutex.cpp',
182     'skia/src/core/SkSLTypeShared.cpp',
183     'skia/src/core/SkSpecialImage.cpp',
184     'skia/src/core/SkSpecialSurface.cpp',
185     'skia/src/core/SkSpinlock.cpp',
186     'skia/src/core/SkStream.cpp',
187     'skia/src/core/SkStrike.cpp',
188     'skia/src/core/SkStrikeCache.cpp',
189     'skia/src/core/SkStrikeSpec.cpp',
190     'skia/src/core/SkString.cpp',
191     'skia/src/core/SkStringUtils.cpp',
192     'skia/src/core/SkStroke.cpp',
193     'skia/src/core/SkStrokeRec.cpp',
194     'skia/src/core/SkStrokerPriv.cpp',
195     'skia/src/core/SkSurfaceCharacterization.cpp',
196     'skia/src/core/SkSwizzle.cpp',
197     'skia/src/core/SkTaskGroup.cpp',
198     'skia/src/core/SkTextBlob.cpp',
199     'skia/src/core/SkTextBlobTrace.cpp',
200     'skia/src/core/SkTime.cpp',
201     'skia/src/core/SkTypeface.cpp',
202     'skia/src/core/SkTypeface_remote.cpp',
203     'skia/src/core/SkTypefaceCache.cpp',
204     'skia/src/core/SkUnPreMultiply.cpp',
205     'skia/src/core/SkVertState.cpp',
206     'skia/src/core/SkVM.cpp',
207     'skia/src/core/SkVMBlitter.cpp',
208     'skia/src/core/SkWriteBuffer.cpp',
209     'skia/src/core/SkWritePixelsRec.cpp',
210     'skia/src/core/SkWriter32.cpp',
211     'skia/src/core/SkYUVAInfo.cpp',
212     'skia/src/core/SkYUVAPixmaps.cpp',
213     'skia/src/core/SkYUVMath.cpp',
214     'skia/src/core/SkYUVPlanesCache.cpp',
215     'skia/src/effects/imagefilters/SkBlurImageFilter.cpp',
216     'skia/src/effects/imagefilters/SkComposeImageFilter.cpp',
217     'skia/src/effects/SkDashPathEffect.cpp',
218     'skia/src/encode/SkEncoder.cpp',
219     'skia/src/encode/SkImageEncoder.cpp',
220     'skia/src/image/SkImage.cpp',
221     'skia/src/image/SkImage_Base.cpp',
222     'skia/src/image/SkImage_Lazy.cpp',
223     'skia/src/image/SkImage_Raster.cpp',
224     'skia/src/image/SkRescaleAndReadPixels.cpp',
225     'skia/src/image/SkSurface.cpp',
226     'skia/src/image/SkSurface_Base.cpp',
227     'skia/src/image/SkSurface_Null.cpp',
228     'skia/src/image/SkSurface_Raster.cpp',
229     'skia/src/lazy/SkDiscardableMemoryPool.cpp',
230     'skia/src/pathops/SkAddIntersections.cpp',
231     'skia/src/pathops/SkDConicLineIntersection.cpp',
232     'skia/src/pathops/SkDCubicLineIntersection.cpp',
233     'skia/src/pathops/SkDCubicToQuads.cpp',
234     'skia/src/pathops/SkDLineIntersection.cpp',
235     'skia/src/pathops/SkDQuadLineIntersection.cpp',
236     'skia/src/pathops/SkIntersections.cpp',
237     'skia/src/pathops/SkOpAngle.cpp',
238     'skia/src/pathops/SkOpBuilder.cpp',
239     'skia/src/pathops/SkOpCoincidence.cpp',
240     'skia/src/pathops/SkOpContour.cpp',
241     'skia/src/pathops/SkOpCubicHull.cpp',
242     'skia/src/pathops/SkOpEdgeBuilder.cpp',
243     'skia/src/pathops/SkOpSegment.cpp',
244     'skia/src/pathops/SkOpSpan.cpp',
245     'skia/src/pathops/SkPathOpsAsWinding.cpp',
246     'skia/src/pathops/SkPathOpsCommon.cpp',
247     'skia/src/pathops/SkPathOpsConic.cpp',
248     'skia/src/pathops/SkPathOpsCubic.cpp',
249     'skia/src/pathops/SkPathOpsCurve.cpp',
250     'skia/src/pathops/SkPathOpsLine.cpp',
251     'skia/src/pathops/SkPathOpsOp.cpp',
252     'skia/src/pathops/SkPathOpsQuad.cpp',
253     'skia/src/pathops/SkPathOpsRect.cpp',
254     'skia/src/pathops/SkPathOpsSimplify.cpp',
255     'skia/src/pathops/SkPathOpsTightBounds.cpp',
256     'skia/src/pathops/SkPathOpsTSect.cpp',
257     'skia/src/pathops/SkPathOpsTypes.cpp',
258     'skia/src/pathops/SkPathOpsWinding.cpp',
259     'skia/src/pathops/SkPathWriter.cpp',
260     'skia/src/pathops/SkReduceOrder.cpp',
261     'skia/src/ports/SkDiscardableMemory_none.cpp',
262     'skia/src/ports/SkFontMgr_empty_factory.cpp',
263     'skia/src/ports/SkGlobalInitialization_default.cpp',
264     'skia/src/ports/SkImageGenerator_none.cpp',
265     'skia/src/ports/SkMemory_mozalloc.cpp',
266     'skia/src/ports/SkOSFile_stdio.cpp',
267     'skia/src/sfnt/SkOTTable_name.cpp',
268     'skia/src/sfnt/SkOTUtils.cpp',
269     'skia/src/shaders/gradients/SkGradientShader.cpp',
270     'skia/src/shaders/gradients/SkGradientShaderBase.cpp',
271     'skia/src/shaders/gradients/SkLinearGradient.cpp',
272     'skia/src/shaders/gradients/SkRadialGradient.cpp',
273     'skia/src/shaders/gradients/SkSweepGradient.cpp',
274     'skia/src/shaders/gradients/SkTwoPointConicalGradient.cpp',
275     'skia/src/shaders/SkBitmapProcShader.cpp',
276     'skia/src/shaders/SkColorFilterShader.cpp',
277     'skia/src/shaders/SkColorShader.cpp',
278     'skia/src/shaders/SkComposeShader.cpp',
279     'skia/src/shaders/SkCoordClampShader.cpp',
280     'skia/src/shaders/SkEmptyShader.cpp',
281     'skia/src/shaders/SkGainmapShader.cpp',
282     'skia/src/shaders/SkImageShader.cpp',
283     'skia/src/shaders/SkLocalMatrixShader.cpp',
284     'skia/src/shaders/SkPerlinNoiseShader.cpp',
285     'skia/src/shaders/SkPictureShader.cpp',
286     'skia/src/shaders/SkShader.cpp',
287     'skia/src/shaders/SkTransformShader.cpp',
288     'skia/src/sksl/analysis/SkSLCanExitWithoutReturningValue.cpp',
289     'skia/src/sksl/analysis/SkSLCheckProgramStructure.cpp',
290     'skia/src/sksl/analysis/SkSLFinalizationChecks.cpp',
291     'skia/src/sksl/analysis/SkSLGetLoopControlFlowInfo.cpp',
292     'skia/src/sksl/analysis/SkSLGetLoopUnrollInfo.cpp',
293     'skia/src/sksl/analysis/SkSLGetReturnComplexity.cpp',
294     'skia/src/sksl/analysis/SkSLHasSideEffects.cpp',
295     'skia/src/sksl/analysis/SkSLIsConstantExpression.cpp',
296     'skia/src/sksl/analysis/SkSLIsDynamicallyUniformExpression.cpp',
297     'skia/src/sksl/analysis/SkSLIsSameExpressionTree.cpp',
298     'skia/src/sksl/analysis/SkSLIsTrivialExpression.cpp',
299     'skia/src/sksl/analysis/SkSLProgramUsage.cpp',
300     'skia/src/sksl/analysis/SkSLSwitchCaseContainsExit.cpp',
301     'skia/src/sksl/analysis/SkSLSymbolTableStackBuilder.cpp',
302     'skia/src/sksl/codegen/SkSLRasterPipelineBuilder.cpp',
303     'skia/src/sksl/codegen/SkSLRasterPipelineCodeGenerator.cpp',
304     'skia/src/sksl/codegen/SkSLVMCodeGenerator.cpp',
305     'skia/src/sksl/dsl/DSLBlock.cpp',
306     'skia/src/sksl/dsl/DSLCase.cpp',
307     'skia/src/sksl/dsl/DSLCore.cpp',
308     'skia/src/sksl/dsl/DSLExpression.cpp',
309     'skia/src/sksl/dsl/DSLFunction.cpp',
310     'skia/src/sksl/dsl/DSLLayout.cpp',
311     'skia/src/sksl/dsl/DSLStatement.cpp',
312     'skia/src/sksl/dsl/DSLType.cpp',
313     'skia/src/sksl/dsl/DSLVar.cpp',
314     'skia/src/sksl/dsl/priv/DSLWriter.cpp',
315     'skia/src/sksl/ir/SkSLBinaryExpression.cpp',
316     'skia/src/sksl/ir/SkSLBlock.cpp',
317     'skia/src/sksl/ir/SkSLChildCall.cpp',
318     'skia/src/sksl/ir/SkSLConstructor.cpp',
319     'skia/src/sksl/ir/SkSLConstructorArray.cpp',
320     'skia/src/sksl/ir/SkSLConstructorArrayCast.cpp',
321     'skia/src/sksl/ir/SkSLConstructorCompound.cpp',
322     'skia/src/sksl/ir/SkSLConstructorCompoundCast.cpp',
323     'skia/src/sksl/ir/SkSLConstructorDiagonalMatrix.cpp',
324     'skia/src/sksl/ir/SkSLConstructorMatrixResize.cpp',
325     'skia/src/sksl/ir/SkSLConstructorScalarCast.cpp',
326     'skia/src/sksl/ir/SkSLConstructorSplat.cpp',
327     'skia/src/sksl/ir/SkSLConstructorStruct.cpp',
328     'skia/src/sksl/ir/SkSLDiscardStatement.cpp',
329     'skia/src/sksl/ir/SkSLDoStatement.cpp',
330     'skia/src/sksl/ir/SkSLExpression.cpp',
331     'skia/src/sksl/ir/SkSLExpressionStatement.cpp',
332     'skia/src/sksl/ir/SkSLFieldAccess.cpp',
333     'skia/src/sksl/ir/SkSLForStatement.cpp',
334     'skia/src/sksl/ir/SkSLFunctionCall.cpp',
335     'skia/src/sksl/ir/SkSLFunctionDeclaration.cpp',
336     'skia/src/sksl/ir/SkSLFunctionDefinition.cpp',
337     'skia/src/sksl/ir/SkSLIfStatement.cpp',
338     'skia/src/sksl/ir/SkSLIndexExpression.cpp',
339     'skia/src/sksl/ir/SkSLInterfaceBlock.cpp',
340     'skia/src/sksl/ir/SkSLLayout.cpp',
341     'skia/src/sksl/ir/SkSLLiteral.cpp',
342     'skia/src/sksl/ir/SkSLModifiers.cpp',
343     'skia/src/sksl/ir/SkSLPostfixExpression.cpp',
344     'skia/src/sksl/ir/SkSLPrefixExpression.cpp',
345     'skia/src/sksl/ir/SkSLProgram.cpp',
346     'skia/src/sksl/ir/SkSLSetting.cpp',
347     'skia/src/sksl/ir/SkSLSwitchStatement.cpp',
348     'skia/src/sksl/ir/SkSLSwizzle.cpp',
349     'skia/src/sksl/ir/SkSLSymbolTable.cpp',
350     'skia/src/sksl/ir/SkSLTernaryExpression.cpp',
351     'skia/src/sksl/ir/SkSLType.cpp',
352     'skia/src/sksl/ir/SkSLTypeReference.cpp',
353     'skia/src/sksl/ir/SkSLVarDeclarations.cpp',
354     'skia/src/sksl/ir/SkSLVariable.cpp',
355     'skia/src/sksl/ir/SkSLVariableReference.cpp',
356     'skia/src/sksl/SkSLAnalysis.cpp',
357     'skia/src/sksl/SkSLBuiltinTypes.cpp',
358     'skia/src/sksl/SkSLCompiler.cpp',
359     'skia/src/sksl/SkSLConstantFolder.cpp',
360     'skia/src/sksl/SkSLContext.cpp',
361     'skia/src/sksl/SkSLErrorReporter.cpp',
362     'skia/src/sksl/SkSLInliner.cpp',
363     'skia/src/sksl/SkSLIntrinsicList.cpp',
364     'skia/src/sksl/SkSLMangler.cpp',
365     'skia/src/sksl/SkSLModuleLoader.cpp',
366     'skia/src/sksl/SkSLOperator.cpp',
367     'skia/src/sksl/SkSLOutputStream.cpp',
368     'skia/src/sksl/SkSLParser.cpp',
369     'skia/src/sksl/SkSLPool.cpp',
370     'skia/src/sksl/SkSLPosition.cpp',
371     'skia/src/sksl/SkSLSampleUsage.cpp',
372     'skia/src/sksl/SkSLString.cpp',
373     'skia/src/sksl/SkSLThreadContext.cpp',
374     'skia/src/sksl/SkSLUtil.cpp',
375     'skia/src/sksl/tracing/SkRPDebugTrace.cpp',
376     'skia/src/sksl/tracing/SkSLTraceHook.cpp',
377     'skia/src/sksl/tracing/SkVMDebugTrace.cpp',
378     'skia/src/sksl/tracing/SkVMDebugTracePlayer.cpp',
379     'skia/src/sksl/transform/SkSLAddConstToVarModifiers.cpp',
380     'skia/src/sksl/transform/SkSLEliminateDeadFunctions.cpp',
381     'skia/src/sksl/transform/SkSLEliminateDeadGlobalVariables.cpp',
382     'skia/src/sksl/transform/SkSLEliminateDeadLocalVariables.cpp',
383     'skia/src/sksl/transform/SkSLEliminateEmptyStatements.cpp',
384     'skia/src/sksl/transform/SkSLEliminateUnreachableCode.cpp',
385     'skia/src/sksl/transform/SkSLFindAndDeclareBuiltinFunctions.cpp',
386     'skia/src/sksl/transform/SkSLFindAndDeclareBuiltinVariables.cpp',
387     'skia/src/sksl/transform/SkSLRenamePrivateSymbols.cpp',
388     'skia/src/sksl/transform/SkSLReplaceConstVarsWithLiterals.cpp',
389     'skia/src/sksl/transform/SkSLRewriteIndexedSwizzle.cpp',
390     'skia/src/text/GlyphRun.cpp',
391     'skia/src/text/StrikeForGPU.cpp',
392     'skia/src/utils/mac/SkCTFont.cpp',
393     'skia/src/utils/SkBase64.cpp',
394     'skia/src/utils/SkCharToGlyphCache.cpp',
395     'skia/src/utils/SkClipStackUtils.cpp',
396     'skia/src/utils/SkCustomTypeface.cpp',
397     'skia/src/utils/SkDashPath.cpp',
398     'skia/src/utils/SkEventTracer.cpp',
399     'skia/src/utils/SkFloatToDecimal.cpp',
400     'skia/src/utils/SkGaussianColorFilter.cpp',
401     'skia/src/utils/SkMatrix22.cpp',
402     'skia/src/utils/SkOrderedFontMgr.cpp',
403     'skia/src/utils/SkOSPath.cpp',
404     'skia/src/utils/SkPatchUtils.cpp',
405     'skia/src/utils/SkPolyUtils.cpp',
406     'skia/src/utils/SkShaderUtils.cpp',
407     'skia/src/utils/SkShadowTessellator.cpp',
408     'skia/src/utils/SkShadowUtils.cpp',
409     'skia/src/utils/SkTextUtils.cpp',
410     'skia/src/utils/SkVMVisualizer.cpp',
411     'skia/src/utils/win/SkAutoCoInitialize.cpp',
412     'skia/src/utils/win/SkDWrite.cpp',
413     'skia/src/utils/win/SkDWriteFontFileStream.cpp',
414     'skia/src/utils/win/SkDWriteGeometrySink.cpp',
415     'skia/src/utils/win/SkHRESULT.cpp',
416     'skia/src/utils/win/SkIStream.cpp',
418 SOURCES += [
419     'skia/modules/skcms/skcms.cc',
420     'skia/src/core/SkBitmapProcState.cpp',
421     'skia/src/core/SkBitmapProcState_matrixProcs.cpp',
422     'skia/src/core/SkBlitRow_D32.cpp',
423     'skia/src/core/SkBlitter.cpp',
424     'skia/src/core/SkBlitter_A8.cpp',
425     'skia/src/core/SkBlitter_ARGB32.cpp',
426     'skia/src/core/SkBlitter_Sprite.cpp',
427     'skia/src/core/SkColorSpace.cpp',
428     'skia/src/core/SkColorSpaceXformSteps.cpp',
429     'skia/src/core/SkCpu.cpp',
430     'skia/src/core/SkMatrix.cpp',
431     'skia/src/core/SkOpts.cpp',
432     'skia/src/core/SkOpts_erms.cpp',
433     'skia/src/core/SkPath.cpp',
434     'skia/src/core/SkPictureData.cpp',
435     'skia/src/core/SkRecorder.cpp',
436     'skia/src/core/SkRTree.cpp',
437     'skia/src/core/SkScan_Antihair.cpp',
438     'skia/src/core/SkScan_AntiPath.cpp',
439     'skia/src/core/SkSpriteBlitter_ARGB32.cpp',
440     'skia/src/core/SkVertices.cpp',
441     'skia/src/core/SkXfermode.cpp',
442     'skia/src/core/SkXfermodeInterpretation.cpp',
443     'skia/src/pathops/SkPathOpsDebug.cpp',
444     'skia/src/sksl/SkSLLexer.cpp',
445     'skia/src/utils/SkParse.cpp',
446     'skia/src/utils/SkParsePath.cpp',
448 SOURCES['skia/modules/skcms/skcms.cc'].flags += skia_opt_flags
449 SOURCES['skia/src/core/SkBitmapProcState.cpp'].flags += skia_opt_flags
450 SOURCES['skia/src/core/SkBitmapProcState_matrixProcs.cpp'].flags += skia_opt_flags
451 SOURCES['skia/src/core/SkBlitRow_D32.cpp'].flags += skia_opt_flags
452 SOURCES['skia/src/core/SkBlitter.cpp'].flags += skia_opt_flags
453 SOURCES['skia/src/core/SkBlitter_A8.cpp'].flags += skia_opt_flags
454 SOURCES['skia/src/core/SkBlitter_ARGB32.cpp'].flags += skia_opt_flags
455 SOURCES['skia/src/core/SkBlitter_Sprite.cpp'].flags += skia_opt_flags
456 SOURCES['skia/src/core/SkMatrix.cpp'].flags += skia_opt_flags
457 SOURCES['skia/src/core/SkOpts.cpp'].flags += skia_opt_flags
458 SOURCES['skia/src/core/SkOpts_erms.cpp'].flags += skia_opt_flags
459 SOURCES['skia/src/core/SkSpriteBlitter_ARGB32.cpp'].flags += skia_opt_flags
460 if CONFIG['MOZ_ENABLE_SKIA_PDF']:
461     UNIFIED_SOURCES += [
462         'skia/src/pdf/SkClusterator.cpp',
463         'skia/src/pdf/SkDeflate.cpp',
464         'skia/src/pdf/SkJpegInfo.cpp',
465         'skia/src/pdf/SkKeyedImage.cpp',
466         'skia/src/pdf/SkPDFBitmap.cpp',
467         'skia/src/pdf/SkPDFDocument.cpp',
468         'skia/src/pdf/SkPDFFormXObject.cpp',
469         'skia/src/pdf/SkPDFGradientShader.cpp',
470         'skia/src/pdf/SkPDFGraphicStackState.cpp',
471         'skia/src/pdf/SkPDFGraphicState.cpp',
472         'skia/src/pdf/SkPDFMakeCIDGlyphWidthsArray.cpp',
473         'skia/src/pdf/SkPDFMakeToUnicodeCmap.cpp',
474         'skia/src/pdf/SkPDFMetadata.cpp',
475         'skia/src/pdf/SkPDFResourceDict.cpp',
476         'skia/src/pdf/SkPDFShader.cpp',
477         'skia/src/pdf/SkPDFSubsetFont.cpp',
478         'skia/src/pdf/SkPDFTag.cpp',
479         'skia/src/pdf/SkPDFTypes.cpp',
480         'skia/src/pdf/SkPDFUtils.cpp',
481     ]
482     SOURCES += [
483         'skia/src/pdf/SkPDFDevice.cpp',
484         'skia/src/pdf/SkPDFFont.cpp',
485         'skia/src/pdf/SkPDFType1Font.cpp',
486     ]
487 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
488     UNIFIED_SOURCES += [
489         'skia/src/ports/SkDebug_android.cpp',
490         'skia/src/ports/SkOSFile_posix.cpp',
491         'skia/src/ports/SkOSLibrary_posix.cpp',
492     ]
493     SOURCES += [
494         'skia/src/ports/SkFontHost_cairo.cpp',
495         'skia/src/ports/SkFontHost_FreeType_common.cpp',
496     ]
497 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('cocoa', 'uikit'):
498     UNIFIED_SOURCES += [
499         'skia/src/ports/SkDebug_stdio.cpp',
500         'skia/src/ports/SkFontMgr_mac_ct.cpp',
501         'skia/src/ports/SkOSFile_posix.cpp',
502         'skia/src/ports/SkOSLibrary_posix.cpp',
503         'skia/src/ports/SkScalerContext_mac_ct.cpp',
504         'skia/src/ports/SkTypeface_mac_ct.cpp',
505     ]
506 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
507     UNIFIED_SOURCES += [
508         'skia/src/ports/SkDebug_stdio.cpp',
509         'skia/src/ports/SkOSFile_posix.cpp',
510         'skia/src/ports/SkOSLibrary_posix.cpp',
511     ]
512     SOURCES += [
513         'skia/src/ports/SkFontHost_cairo.cpp',
514         'skia/src/ports/SkFontHost_FreeType_common.cpp',
515     ]
516 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
517     SOURCES += [
518         'skia/src/ports/SkDebug_win.cpp',
519         'skia/src/ports/SkFontHost_win.cpp',
520         'skia/src/ports/SkFontMgr_win_dw.cpp',
521         'skia/src/ports/SkOSFile_win.cpp',
522         'skia/src/ports/SkOSLibrary_win.cpp',
523         'skia/src/ports/SkScalerContext_win_dw.cpp',
524         'skia/src/ports/SkTypeface_win_dw.cpp',
525     ]
526 if CONFIG['INTEL_ARCHITECTURE']:
527     SOURCES += [
528         'skia/src/opts/SkOpts_avx.cpp',
529         'skia/src/opts/SkOpts_hsw.cpp',
530         'skia/src/opts/SkOpts_skx.cpp',
531         'skia/src/opts/SkOpts_sse42.cpp',
532         'skia/src/opts/SkOpts_ssse3.cpp',
533     ]
534     SOURCES['skia/src/opts/SkOpts_avx.cpp'].flags += skia_opt_flags
535     SOURCES['skia/src/opts/SkOpts_hsw.cpp'].flags += skia_opt_flags
536     SOURCES['skia/src/opts/SkOpts_skx.cpp'].flags += skia_opt_flags
537     SOURCES['skia/src/opts/SkOpts_sse42.cpp'].flags += skia_opt_flags
538     SOURCES['skia/src/opts/SkOpts_ssse3.cpp'].flags += skia_opt_flags
539 elif CONFIG['TARGET_CPU'] == 'aarch64':
540     SOURCES += [
541         'skia/src/opts/SkOpts_crc32.cpp',
542     ]
543     SOURCES['skia/src/opts/SkOpts_crc32.cpp'].flags += skia_opt_flags
546 # We allow warnings for third-party code that can be updated from upstream.
547 AllowCompilerWarnings()
549 FINAL_LIBRARY = 'gkmedias'
550 LOCAL_INCLUDES += [
551     'skia',
554 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
555     DEFINES['UNICODE'] = True
556     DEFINES['_UNICODE'] = True
557     UNIFIED_SOURCES += [
558         'skia/src/fonts/SkFontMgr_indirect.cpp',
559         'skia/src/fonts/SkRemotableFontMgr.cpp',
560     ]
562 # We should autogenerate these SSE related flags.
564 if CONFIG['INTEL_ARCHITECTURE']:
565     SOURCES['skia/src/opts/SkOpts_ssse3.cpp'].flags += ['-Dskvx=skvx_ssse3', '-mssse3']
566     SOURCES['skia/src/opts/SkOpts_sse42.cpp'].flags += ['-Dskvx=skvx_sse42', '-msse4.2']
567     SOURCES['skia/src/opts/SkOpts_avx.cpp'].flags += ['-Dskvx=skvx_avx', '-mavx']
568     SOURCES['skia/src/opts/SkOpts_hsw.cpp'].flags += ['-Dskvx=skvx_hsw', '-mavx2', '-mf16c', '-mfma']
569     if not CONFIG["MOZ_CODE_COVERAGE"]:
570         SOURCES['skia/src/opts/SkOpts_skx.cpp'].flags += ['-Dskvx=skvx_skx', '-mavx512f', '-mavx512dq', '-mavx512cd', '-mavx512bw', '-mavx512vl']
571 elif CONFIG['TARGET_CPU'] == 'aarch64' and CONFIG['CC_TYPE'] in ('clang', 'gcc'):
572     SOURCES['skia/src/opts/SkOpts_crc32.cpp'].flags += ['-Dskvx=skvx_crc32', '-march=armv8-a+crc']
574 DEFINES['MOZ_SKIA'] = True
576 DEFINES['SKIA_IMPLEMENTATION'] = 1
578 DEFINES['SK_PDF_USE_HARFBUZZ_SUBSETTING'] = 1
580 if CONFIG['MOZ_TREE_FREETYPE']:
581     DEFINES['SK_CAN_USE_DLOPEN'] = 0
583 # Suppress warnings in third-party code.
584 CXXFLAGS += [
585     '-Wno-deprecated-declarations',
586     '-Wno-overloaded-virtual',
587     '-Wno-sign-compare',
588     '-Wno-unreachable-code',
589     '-Wno-unused-function',
591 if CONFIG['CC_TYPE'] == 'gcc':
592     CXXFLAGS += [
593         '-Wno-logical-op',
594         '-Wno-maybe-uninitialized',
595     ]
596 if CONFIG['CC_TYPE'] in ('clang', 'clang-cl'):
597     CXXFLAGS += [
598         '-Wno-implicit-fallthrough',
599         '-Wno-inconsistent-missing-override',
600         '-Wno-macro-redefined',
601         '-Wno-unused-private-field',
602     ]
604 if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('gtk', 'android'):
605     LOCAL_INCLUDES += [
606         "/gfx/cairo/cairo/src",
607     ]
608     CXXFLAGS += CONFIG['CAIRO_FT_CFLAGS']
610 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gtk':
611     CXXFLAGS += CONFIG['MOZ_PANGO_CFLAGS']
613 if CONFIG['TARGET_CPU'] in ('mips32', 'mips64'):
614     # The skia code uses `mips` as a variable, but it's a builtin preprocessor
615     # macro on mips that expands to `1`.
616     DEFINES['mips'] = False
618 # Work around bug 1841199.
619 if CONFIG['TARGET_CPU'] in ('mips32', 'mips64', 'ppc64'):
620     DEFINES['musttail'] = 'nomusttail'