1
2###############################################################################
3#
4# THIS FILE IS AUTOGENERATED BY GYP_TO_ANDROID.PY. DO NOT EDIT.
5#
6# For bugs, please contact scroggo@google.com or djsollen@google.com
7#
8###############################################################################
9
10BASE_PATH := $(call my-dir)
11LOCAL_PATH:= $(call my-dir)
12
13###############################################################################
14#
15# PROBLEMS WITH SKIA DEBUGGING?? READ THIS...
16#
17# The debug build results in changes to the Skia headers. This means that those
18# using libskia must also be built with the debug version of the Skia headers.
19# There are a few scenarios where this comes into play:
20#
21# (1) You're building debug code that depends on libskia.
22#   (a) If libskia is built in release, then define SK_RELEASE when building
23#       your sources.
24#   (b) If libskia is built with debugging (see step 2), then no changes are
25#       needed since your sources and libskia have been built with SK_DEBUG.
26# (2) You're building libskia in debug mode.
27#   (a) RECOMMENDED: You can build the entire system in debug mode. Do this by
28#       updating your build/core/config.mk to include -DSK_DEBUG on the line
29#       that defines COMMON_GLOBAL_CFLAGS
30#   (b) You can update all the users of libskia to define SK_DEBUG when they are
31#       building their sources.
32#
33# NOTE: If neither SK_DEBUG or SK_RELEASE are defined then Skia checks NDEBUG to
34#       determine which build type to use.
35###############################################################################
36
37include $(CLEAR_VARS)
38LOCAL_FDO_SUPPORT := true
39ifneq ($(strip $(TARGET_FDO_CFLAGS)),)
40	# This should be the last -Oxxx specified in LOCAL_CFLAGS
41	LOCAL_CFLAGS += -O2
42endif
43
44LOCAL_ARM_MODE := thumb
45ifeq ($(TARGET_ARCH),arm)
46	ifeq ($(ARCH_ARM_HAVE_VFP),true)
47		LOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE
48	endif
49else
50	LOCAL_CFLAGS += -DANDROID_LARGE_MEMORY_DEVICE
51endif
52
53# used for testing
54#LOCAL_CFLAGS += -g -O0
55
56ifeq ($(NO_FALLBACK_FONT),true)
57	LOCAL_CFLAGS += -DNO_FALLBACK_FONT
58endif
59
60LOCAL_CFLAGS += \
61	-fPIC \
62	-Wno-unused-parameter \
63	-U_FORTIFY_SOURCE \
64	-D_FORTIFY_SOURCE=1 \
65	-DSKIA_IMPLEMENTATION=1 \
66	-Wno-clobbered
67
68LOCAL_CPPFLAGS := \
69	-std=c++11 \
70	-Wno-invalid-offsetof
71
72LOCAL_SRC_FILES := \
73	src/codec/SkCodec.cpp \
74	src/codec/SkCodec_libbmp.cpp \
75	src/codec/SkCodec_libgif.cpp \
76	src/codec/SkCodec_libico.cpp \
77	src/codec/SkCodec_libpng.cpp \
78	src/codec/SkCodec_wbmp.cpp \
79	src/codec/SkGifInterlaceIter.cpp \
80	src/codec/SkJpegCodec.cpp \
81	src/codec/SkJpegDecoderMgr.cpp \
82	src/codec/SkJpegUtility.cpp \
83	src/codec/SkMaskSwizzler.cpp \
84	src/codec/SkMasks.cpp \
85	src/codec/SkSwizzler.cpp \
86	src/c/sk_paint.cpp \
87	src/c/sk_surface.cpp \
88	src/core/SkAAClip.cpp \
89	src/core/SkAnnotation.cpp \
90	src/core/SkAdvancedTypefaceMetrics.cpp \
91	src/core/SkAlphaRuns.cpp \
92	src/core/SkBBHFactory.cpp \
93	src/core/SkBitmap.cpp \
94	src/core/SkBitmapCache.cpp \
95	src/core/SkBitmapDevice.cpp \
96	src/core/SkBitmapFilter.cpp \
97	src/core/SkBitmapHeap.cpp \
98	src/core/SkBitmapProcShader.cpp \
99	src/core/SkBitmapProcState.cpp \
100	src/core/SkBitmapProcState_matrixProcs.cpp \
101	src/core/SkBitmapScaler.cpp \
102	src/core/SkBitmap_scroll.cpp \
103	src/core/SkBlitMask_D32.cpp \
104	src/core/SkBlitRow_D16.cpp \
105	src/core/SkBlitRow_D32.cpp \
106	src/core/SkBlitter.cpp \
107	src/core/SkBlitter_A8.cpp \
108	src/core/SkBlitter_ARGB32.cpp \
109	src/core/SkBlitter_RGB16.cpp \
110	src/core/SkBlitter_Sprite.cpp \
111	src/core/SkBuffer.cpp \
112	src/core/SkCachedData.cpp \
113	src/core/SkCanvas.cpp \
114	src/core/SkChunkAlloc.cpp \
115	src/core/SkClipStack.cpp \
116	src/core/SkColor.cpp \
117	src/core/SkColorFilter.cpp \
118	src/core/SkColorTable.cpp \
119	src/core/SkComposeShader.cpp \
120	src/core/SkConfig8888.cpp \
121	src/core/SkConvolver.cpp \
122	src/core/SkCubicClipper.cpp \
123	src/core/SkData.cpp \
124	src/core/SkDataTable.cpp \
125	src/core/SkDebug.cpp \
126	src/core/SkDeque.cpp \
127	src/core/SkDevice.cpp \
128	src/core/SkDeviceLooper.cpp \
129	src/core/SkDeviceProfile.cpp \
130	src/lazy/SkDiscardableMemoryPool.cpp \
131	src/lazy/SkDiscardablePixelRef.cpp \
132	src/core/SkDistanceFieldGen.cpp \
133	src/core/SkDither.cpp \
134	src/core/SkDraw.cpp \
135	src/core/SkDrawable.cpp \
136	src/core/SkDrawLooper.cpp \
137	src/core/SkEdgeBuilder.cpp \
138	src/core/SkEdgeClipper.cpp \
139	src/core/SkEdge.cpp \
140	src/core/SkError.cpp \
141	src/core/SkFilterProc.cpp \
142	src/core/SkFilterShader.cpp \
143	src/core/SkFlattenable.cpp \
144	src/core/SkFlattenableSerialization.cpp \
145	src/core/SkFloatBits.cpp \
146	src/core/SkFont.cpp \
147	src/core/SkFontHost.cpp \
148	src/core/SkFontMgr.cpp \
149	src/core/SkFontStyle.cpp \
150	src/core/SkFontDescriptor.cpp \
151	src/core/SkFontStream.cpp \
152	src/core/SkGeometry.cpp \
153	src/core/SkGlyphCache.cpp \
154	src/core/SkGraphics.cpp \
155	src/core/SkHalf.cpp \
156	src/core/SkInstCnt.cpp \
157	src/core/SkImageFilter.cpp \
158	src/core/SkImageInfo.cpp \
159	src/core/SkImageGenerator.cpp \
160	src/core/SkLayerInfo.cpp \
161	src/core/SkLocalMatrixShader.cpp \
162	src/core/SkLineClipper.cpp \
163	src/core/SkMallocPixelRef.cpp \
164	src/core/SkMask.cpp \
165	src/core/SkMaskCache.cpp \
166	src/core/SkMaskFilter.cpp \
167	src/core/SkMaskGamma.cpp \
168	src/core/SkMath.cpp \
169	src/core/SkMatrix.cpp \
170	src/core/SkMatrixImageFilter.cpp \
171	src/core/SkMetaData.cpp \
172	src/core/SkMipMap.cpp \
173	src/core/SkMultiPictureDraw.cpp \
174	src/core/SkPackBits.cpp \
175	src/core/SkPaint.cpp \
176	src/core/SkPaintPriv.cpp \
177	src/core/SkPath.cpp \
178	src/core/SkPathEffect.cpp \
179	src/core/SkPathMeasure.cpp \
180	src/core/SkPathRef.cpp \
181	src/core/SkPicture.cpp \
182	src/core/SkPictureContentInfo.cpp \
183	src/core/SkPictureData.cpp \
184	src/core/SkPictureFlat.cpp \
185	src/core/SkPicturePlayback.cpp \
186	src/core/SkPictureRecord.cpp \
187	src/core/SkPictureRecorder.cpp \
188	src/core/SkPictureShader.cpp \
189	src/core/SkPixelRef.cpp \
190	src/core/SkPoint.cpp \
191	src/core/SkPtrRecorder.cpp \
192	src/core/SkQuadClipper.cpp \
193	src/core/SkRasterClip.cpp \
194	src/core/SkRasterizer.cpp \
195	src/core/SkReadBuffer.cpp \
196	src/core/SkRecord.cpp \
197	src/core/SkRecordDraw.cpp \
198	src/core/SkRecordOpts.cpp \
199	src/core/SkRecorder.cpp \
200	src/core/SkRect.cpp \
201	src/core/SkRefDict.cpp \
202	src/core/SkRegion.cpp \
203	src/core/SkRegion_path.cpp \
204	src/core/SkResourceCache.cpp \
205	src/core/SkRRect.cpp \
206	src/core/SkRTree.cpp \
207	src/core/SkRWBuffer.cpp \
208	src/core/SkScalar.cpp \
209	src/core/SkScalerContext.cpp \
210	src/core/SkScan.cpp \
211	src/core/SkScan_AntiPath.cpp \
212	src/core/SkScan_Antihair.cpp \
213	src/core/SkScan_Hairline.cpp \
214	src/core/SkScan_Path.cpp \
215	src/core/SkShader.cpp \
216	src/core/SkSpriteBlitter_ARGB32.cpp \
217	src/core/SkSpriteBlitter_RGB16.cpp \
218	src/core/SkStream.cpp \
219	src/core/SkString.cpp \
220	src/core/SkStringUtils.cpp \
221	src/core/SkStroke.cpp \
222	src/core/SkStrokeRec.cpp \
223	src/core/SkStrokerPriv.cpp \
224	src/core/SkTaskGroup.cpp \
225	src/core/SkTextBlob.cpp \
226	src/core/SkTime.cpp \
227	src/core/SkTLS.cpp \
228	src/core/SkTSearch.cpp \
229	src/core/SkTypeface.cpp \
230	src/core/SkTypefaceCache.cpp \
231	src/core/SkUnPreMultiply.cpp \
232	src/core/SkUtils.cpp \
233	src/core/SkValidatingReadBuffer.cpp \
234	src/core/SkVarAlloc.cpp \
235	src/core/SkVertState.cpp \
236	src/core/SkWriteBuffer.cpp \
237	src/core/SkWriter32.cpp \
238	src/core/SkXfermode.cpp \
239	src/core/SkXfermodeInterpretation.cpp \
240	src/core/SkYUVPlanesCache.cpp \
241	src/doc/SkDocument.cpp \
242	src/image/SkImage.cpp \
243	src/image/SkImage_Raster.cpp \
244	src/image/SkSurface.cpp \
245	src/image/SkSurface_Raster.cpp \
246	src/pipe/SkGPipeRead.cpp \
247	src/pipe/SkGPipeWrite.cpp \
248	src/lazy/SkCachingPixelRef.cpp \
249	src/pathops/SkAddIntersections.cpp \
250	src/pathops/SkDConicLineIntersection.cpp \
251	src/pathops/SkDCubicLineIntersection.cpp \
252	src/pathops/SkDCubicToQuads.cpp \
253	src/pathops/SkDLineIntersection.cpp \
254	src/pathops/SkDQuadLineIntersection.cpp \
255	src/pathops/SkIntersections.cpp \
256	src/pathops/SkOpAngle.cpp \
257	src/pathops/SkOpBuilder.cpp \
258	src/pathops/SkOpCoincidence.cpp \
259	src/pathops/SkOpContour.cpp \
260	src/pathops/SkOpCubicHull.cpp \
261	src/pathops/SkOpEdgeBuilder.cpp \
262	src/pathops/SkOpSegment.cpp \
263	src/pathops/SkOpSpan.cpp \
264	src/pathops/SkPathOpsCommon.cpp \
265	src/pathops/SkPathOpsConic.cpp \
266	src/pathops/SkPathOpsCubic.cpp \
267	src/pathops/SkPathOpsCurve.cpp \
268	src/pathops/SkPathOpsDebug.cpp \
269	src/pathops/SkPathOpsLine.cpp \
270	src/pathops/SkPathOpsOp.cpp \
271	src/pathops/SkPathOpsPoint.cpp \
272	src/pathops/SkPathOpsQuad.cpp \
273	src/pathops/SkPathOpsRect.cpp \
274	src/pathops/SkPathOpsSimplify.cpp \
275	src/pathops/SkPathOpsTSect.cpp \
276	src/pathops/SkPathOpsTightBounds.cpp \
277	src/pathops/SkPathOpsTypes.cpp \
278	src/pathops/SkPathOpsWinding.cpp \
279	src/pathops/SkPathWriter.cpp \
280	src/pathops/SkReduceOrder.cpp \
281	src/effects/Sk1DPathEffect.cpp \
282	src/effects/Sk2DPathEffect.cpp \
283	src/effects/SkAlphaThresholdFilter.cpp \
284	src/effects/SkArcToPathEffect.cpp \
285	src/effects/SkArithmeticMode.cpp \
286	src/effects/SkArithmeticMode_gpu.cpp \
287	src/effects/SkBitmapSource.cpp \
288	src/effects/SkBlurDrawLooper.cpp \
289	src/effects/SkBlurMask.cpp \
290	src/effects/SkBlurImageFilter.cpp \
291	src/effects/SkBlurMaskFilter.cpp \
292	src/effects/SkColorCubeFilter.cpp \
293	src/effects/SkColorFilters.cpp \
294	src/effects/SkColorFilterImageFilter.cpp \
295	src/effects/SkColorMatrix.cpp \
296	src/effects/SkColorMatrixFilter.cpp \
297	src/effects/SkComposeImageFilter.cpp \
298	src/effects/SkCornerPathEffect.cpp \
299	src/effects/SkDashPathEffect.cpp \
300	src/effects/SkDiscretePathEffect.cpp \
301	src/effects/SkDisplacementMapEffect.cpp \
302	src/effects/SkDropShadowImageFilter.cpp \
303	src/effects/SkEmbossMask.cpp \
304	src/effects/SkEmbossMaskFilter.cpp \
305	src/effects/SkGpuBlurUtils.cpp \
306	src/effects/SkLayerDrawLooper.cpp \
307	src/effects/SkLayerRasterizer.cpp \
308	src/effects/SkLerpXfermode.cpp \
309	src/effects/SkLightingImageFilter.cpp \
310	src/effects/SkLumaColorFilter.cpp \
311	src/effects/SkMagnifierImageFilter.cpp \
312	src/effects/SkMatrixConvolutionImageFilter.cpp \
313	src/effects/SkMergeImageFilter.cpp \
314	src/effects/SkMorphologyImageFilter.cpp \
315	src/effects/SkOffsetImageFilter.cpp \
316	src/effects/SkPaintFlagsDrawFilter.cpp \
317	src/effects/SkPerlinNoiseShader.cpp \
318	src/effects/SkPictureImageFilter.cpp \
319	src/effects/SkPixelXorXfermode.cpp \
320	src/effects/SkRectShaderImageFilter.cpp \
321	src/effects/SkTableColorFilter.cpp \
322	src/effects/SkTableMaskFilter.cpp \
323	src/effects/SkTestImageFilters.cpp \
324	src/effects/SkTileImageFilter.cpp \
325	src/effects/SkTransparentShader.cpp \
326	src/effects/SkXfermodeImageFilter.cpp \
327	src/effects/gradients/SkClampRange.cpp \
328	src/effects/gradients/SkGradientBitmapCache.cpp \
329	src/effects/gradients/SkGradientShader.cpp \
330	src/effects/gradients/SkLinearGradient.cpp \
331	src/effects/gradients/SkRadialGradient.cpp \
332	src/effects/gradients/SkTwoPointConicalGradient.cpp \
333	src/effects/gradients/SkTwoPointConicalGradient_gpu.cpp \
334	src/effects/gradients/SkSweepGradient.cpp \
335	src/images/bmpdecoderhelper.cpp \
336	src/images/SkDecodingImageGenerator.cpp \
337	src/images/SkForceLinking.cpp \
338	src/images/SkImageDecoder.cpp \
339	src/images/SkImageDecoder_FactoryDefault.cpp \
340	src/images/SkImageDecoder_FactoryRegistrar.cpp \
341	src/images/SkImageDecoder_wbmp.cpp \
342	src/images/SkImageDecoder_libbmp.cpp \
343	src/images/SkImageDecoder_libgif.cpp \
344	src/images/SkImageDecoder_libico.cpp \
345	src/images/SkImageDecoder_libwebp.cpp \
346	src/images/SkImageDecoder_libjpeg.cpp \
347	src/images/SkImageDecoder_libpng.cpp \
348	src/images/SkImageEncoder.cpp \
349	src/images/SkImageEncoder_Factory.cpp \
350	src/images/SkImageEncoder_argb.cpp \
351	src/images/SkJpegUtility.cpp \
352	src/images/SkMovie.cpp \
353	src/images/SkMovie_gif.cpp \
354	src/images/SkPageFlipper.cpp \
355	src/images/SkScaledBitmapSampler.cpp \
356	src/ports/SkImageGenerator_skia.cpp \
357	src/doc/SkDocument_PDF.cpp \
358	src/pdf/SkJpegInfo.cpp \
359	src/pdf/SkPDFBitmap.cpp \
360	src/pdf/SkPDFCanon.cpp \
361	src/pdf/SkPDFDevice.cpp \
362	src/pdf/SkPDFFont.cpp \
363	src/pdf/SkPDFFormXObject.cpp \
364	src/pdf/SkPDFGraphicState.cpp \
365	src/pdf/SkPDFResourceDict.cpp \
366	src/pdf/SkPDFShader.cpp \
367	src/pdf/SkPDFStream.cpp \
368	src/pdf/SkPDFTypes.cpp \
369	src/pdf/SkPDFUtils.cpp \
370	src/core/SkForceCPlusPlusLinking.cpp \
371	src/fonts/SkFontMgr_indirect.cpp \
372	src/fonts/SkRemotableFontMgr.cpp \
373	src/ports/SkGlobalInitialization_default.cpp \
374	src/ports/SkMemory_malloc.cpp \
375	src/ports/SkOSFile_posix.cpp \
376	src/ports/SkOSFile_stdio.cpp \
377	src/ports/SkDiscardableMemory_none.cpp \
378	src/ports/SkTime_Unix.cpp \
379	src/ports/SkTLS_pthread.cpp \
380	src/ports/SkFontHost_FreeType.cpp \
381	src/ports/SkFontHost_FreeType_common.cpp \
382	src/ports/SkDebug_android.cpp \
383	src/ports/SkFontConfigParser_android.cpp \
384	src/ports/SkFontMgr_android.cpp \
385	src/sfnt/SkOTTable_name.cpp \
386	src/sfnt/SkOTUtils.cpp \
387	src/utils/SkCondVar.cpp \
388	src/utils/SkBase64.cpp \
389	src/utils/SkBitmapHasher.cpp \
390	src/utils/SkBitSet.cpp \
391	src/utils/SkBoundaryPatch.cpp \
392	src/utils/SkFrontBufferedStream.cpp \
393	src/utils/SkCamera.cpp \
394	src/utils/SkCanvasStack.cpp \
395	src/utils/SkCanvasStateUtils.cpp \
396	src/utils/SkCubicInterval.cpp \
397	src/utils/SkCullPoints.cpp \
398	src/utils/SkDashPath.cpp \
399	src/utils/SkDeferredCanvas.cpp \
400	src/utils/SkDumpCanvas.cpp \
401	src/utils/SkEventTracer.cpp \
402	src/utils/SkInterpolator.cpp \
403	src/utils/SkLayer.cpp \
404	src/utils/SkMatrix22.cpp \
405	src/utils/SkMatrix44.cpp \
406	src/utils/SkMD5.cpp \
407	src/utils/SkMeshUtils.cpp \
408	src/utils/SkNinePatch.cpp \
409	src/utils/SkNWayCanvas.cpp \
410	src/utils/SkNullCanvas.cpp \
411	src/utils/SkOSFile.cpp \
412	src/utils/SkPaintFilterCanvas.cpp \
413	src/utils/SkParse.cpp \
414	src/utils/SkParseColor.cpp \
415	src/utils/SkParsePath.cpp \
416	src/utils/SkPictureUtils.cpp \
417	src/utils/SkPatchGrid.cpp \
418	src/utils/SkPatchUtils.cpp \
419	src/utils/SkSHA1.cpp \
420	src/utils/SkRTConf.cpp \
421	src/utils/SkTextBox.cpp \
422	src/utils/SkTextureCompressor.cpp \
423	src/utils/SkTextureCompressor_ASTC.cpp \
424	src/utils/SkTextureCompressor_R11EAC.cpp \
425	src/utils/SkTextureCompressor_LATC.cpp \
426	src/utils/SkThreadUtils_pthread.cpp \
427	src/utils/SkThreadUtils_pthread_other.cpp \
428	src/fonts/SkGScalerContext.cpp \
429	src/fonts/SkTestScalerContext.cpp \
430	src/gpu/GrAAHairLinePathRenderer.cpp \
431	src/gpu/GrAAConvexPathRenderer.cpp \
432	src/gpu/GrAAConvexTessellator.cpp \
433	src/gpu/GrAADistanceFieldPathRenderer.cpp \
434	src/gpu/GrAARectRenderer.cpp \
435	src/gpu/GrAddPathRenderers_default.cpp \
436	src/gpu/GrAtlas.cpp \
437	src/gpu/GrAtlasTextContext.cpp \
438	src/gpu/GrBatch.cpp \
439	src/gpu/GrBatchAtlas.cpp \
440	src/gpu/GrBatchFontCache.cpp \
441	src/gpu/GrBatchTarget.cpp \
442	src/gpu/GrBatchTest.cpp \
443	src/gpu/GrBlend.cpp \
444	src/gpu/GrBufferAllocPool.cpp \
445	src/gpu/GrClip.cpp \
446	src/gpu/GrClipMaskCache.cpp \
447	src/gpu/GrClipMaskManager.cpp \
448	src/gpu/GrContext.cpp \
449	src/gpu/GrCommandBuilder.cpp \
450	src/gpu/GrCoordTransform.cpp \
451	src/gpu/GrDashLinePathRenderer.cpp \
452	src/gpu/GrDefaultGeoProcFactory.cpp \
453	src/gpu/GrDefaultPathRenderer.cpp \
454	src/gpu/GrDrawTarget.cpp \
455	src/gpu/GrFontScaler.cpp \
456	src/gpu/GrGpu.cpp \
457	src/gpu/GrGpuResource.cpp \
458	src/gpu/GrGpuFactory.cpp \
459	src/gpu/GrInvariantOutput.cpp \
460	src/gpu/GrInOrderCommandBuilder.cpp \
461	src/gpu/GrInOrderDrawBuffer.cpp \
462	src/gpu/GrLayerCache.cpp \
463	src/gpu/GrLayerHoister.cpp \
464	src/gpu/GrMemoryPool.cpp \
465	src/gpu/GrOvalRenderer.cpp \
466	src/gpu/GrPaint.cpp \
467	src/gpu/GrPath.cpp \
468	src/gpu/GrPathProcessor.cpp \
469	src/gpu/GrPathRange.cpp \
470	src/gpu/GrPathRendererChain.cpp \
471	src/gpu/GrPathRenderer.cpp \
472	src/gpu/GrPathRendering.cpp \
473	src/gpu/GrPathUtils.cpp \
474	src/gpu/GrPipeline.cpp \
475	src/gpu/GrPipelineBuilder.cpp \
476	src/gpu/GrPrimitiveProcessor.cpp \
477	src/gpu/GrProgramElement.cpp \
478	src/gpu/GrProcessor.cpp \
479	src/gpu/GrProcOptInfo.cpp \
480	src/gpu/GrGpuResourceRef.cpp \
481	src/gpu/GrRecordReplaceDraw.cpp \
482	src/gpu/GrRectanizer_pow2.cpp \
483	src/gpu/GrRectanizer_skyline.cpp \
484	src/gpu/GrRectBatch.cpp \
485	src/gpu/GrRenderTarget.cpp \
486	src/gpu/GrReducedClip.cpp \
487	src/gpu/GrReorderCommandBuilder.cpp \
488	src/gpu/GrResourceCache.cpp \
489	src/gpu/GrResourceProvider.cpp \
490	src/gpu/GrStencil.cpp \
491	src/gpu/GrStencilAndCoverPathRenderer.cpp \
492	src/gpu/GrStencilAndCoverTextContext.cpp \
493	src/gpu/GrStencilAttachment.cpp \
494	src/gpu/GrStrokeInfo.cpp \
495	src/gpu/GrTargetCommands.cpp \
496	src/gpu/GrTraceMarker.cpp \
497	src/gpu/GrTessellatingPathRenderer.cpp \
498	src/gpu/GrTestUtils.cpp \
499	src/gpu/GrSWMaskHelper.cpp \
500	src/gpu/GrSoftwarePathRenderer.cpp \
501	src/gpu/GrSurface.cpp \
502	src/gpu/GrTextBlobCache.cpp \
503	src/gpu/GrTextContext.cpp \
504	src/gpu/GrTexture.cpp \
505	src/gpu/GrTextureProvider.cpp \
506	src/gpu/GrTextureAccess.cpp \
507	src/gpu/GrXferProcessor.cpp \
508	src/gpu/effects/GrConfigConversionEffect.cpp \
509	src/gpu/effects/GrConstColorProcessor.cpp \
510	src/gpu/effects/GrCoverageSetOpXP.cpp \
511	src/gpu/effects/GrCustomXfermode.cpp \
512	src/gpu/effects/GrBezierEffect.cpp \
513	src/gpu/effects/GrConvolutionEffect.cpp \
514	src/gpu/effects/GrConvexPolyEffect.cpp \
515	src/gpu/effects/GrBicubicEffect.cpp \
516	src/gpu/effects/GrBitmapTextGeoProc.cpp \
517	src/gpu/effects/GrDashingEffect.cpp \
518	src/gpu/effects/GrDisableColorXP.cpp \
519	src/gpu/effects/GrDistanceFieldGeoProc.cpp \
520	src/gpu/effects/GrDitherEffect.cpp \
521	src/gpu/effects/GrMatrixConvolutionEffect.cpp \
522	src/gpu/effects/GrOvalEffect.cpp \
523	src/gpu/effects/GrPorterDuffXferProcessor.cpp \
524	src/gpu/effects/GrRRectEffect.cpp \
525	src/gpu/effects/GrSimpleTextureEffect.cpp \
526	src/gpu/effects/GrSingleTextureEffect.cpp \
527	src/gpu/effects/GrTextureDomain.cpp \
528	src/gpu/effects/GrTextureStripAtlas.cpp \
529	src/gpu/effects/GrYUVtoRGBEffect.cpp \
530	src/gpu/gl/GrGLAssembleInterface.cpp \
531	src/gpu/gl/GrGLBufferImpl.cpp \
532	src/gpu/gl/GrGLCaps.cpp \
533	src/gpu/gl/GrGLContext.cpp \
534	src/gpu/gl/GrGLGeometryProcessor.cpp \
535	src/gpu/gl/GrGLGpu.cpp \
536	src/gpu/gl/GrGLGpuProgramCache.cpp \
537	src/gpu/gl/GrGLExtensions.cpp \
538	src/gpu/gl/GrGLIndexBuffer.cpp \
539	src/gpu/gl/GrGLInterface.cpp \
540	src/gpu/gl/GrGLNameAllocator.cpp \
541	src/gpu/gl/GrGLNoOpInterface.cpp \
542	src/gpu/gl/GrGLPath.cpp \
543	src/gpu/gl/GrGLPathProcessor.cpp \
544	src/gpu/gl/GrGLPathRange.cpp \
545	src/gpu/gl/GrGLPathRendering.cpp \
546	src/gpu/gl/GrGLPrimitiveProcessor.cpp \
547	src/gpu/gl/GrGLProgram.cpp \
548	src/gpu/gl/GrGLProgramDesc.cpp \
549	src/gpu/gl/GrGLProgramDataManager.cpp \
550	src/gpu/gl/GrGLRenderTarget.cpp \
551	src/gpu/gl/GrGLSL.cpp \
552	src/gpu/gl/GrGLStencilAttachment.cpp \
553	src/gpu/gl/GrGLTexture.cpp \
554	src/gpu/gl/GrGLUtil.cpp \
555	src/gpu/gl/GrGLVertexArray.cpp \
556	src/gpu/gl/GrGLVertexBuffer.cpp \
557	src/gpu/gl/GrGLXferProcessor.cpp \
558	src/gpu/gl/builders/GrGLProgramBuilder.cpp \
559	src/gpu/gl/builders/GrGLShaderBuilder.cpp \
560	src/gpu/gl/builders/GrGLShaderStringBuilder.cpp \
561	src/gpu/gl/builders/GrGLSLPrettyPrint.cpp \
562	src/gpu/gl/builders/GrGLVertexShaderBuilder.cpp \
563	src/gpu/gl/builders/GrGLFragmentShaderBuilder.cpp \
564	src/gpu/gl/builders/GrGLGeometryShaderBuilder.cpp \
565	src/gpu/SkGpuDevice.cpp \
566	src/gpu/SkGr.cpp \
567	src/gpu/SkGrPixelRef.cpp \
568	src/gpu/SkGrTexturePixelRef.cpp \
569	src/image/SkImage_Gpu.cpp \
570	src/image/SkSurface_Gpu.cpp \
571	src/gpu/gl/SkGLContext.cpp \
572	src/gpu/gl/GrGLDefaultInterface_native.cpp \
573	src/gpu/gl/android/GrGLCreateNativeInterface_android.cpp \
574	src/gpu/gl/egl/SkCreatePlatformGLContext_egl.cpp \
575	src/gpu/gl/debug/GrGLCreateDebugInterface.cpp \
576	src/gpu/gl/debug/GrBufferObj.cpp \
577	src/gpu/gl/debug/GrTextureObj.cpp \
578	src/gpu/gl/debug/GrTextureUnitObj.cpp \
579	src/gpu/gl/debug/GrFrameBufferObj.cpp \
580	src/gpu/gl/debug/GrShaderObj.cpp \
581	src/gpu/gl/debug/GrProgramObj.cpp \
582	src/gpu/gl/debug/GrDebugGL.cpp \
583	src/gpu/gl/debug/SkDebugGLContext.cpp \
584	src/gpu/gl/GrGLCreateNullInterface.cpp \
585	src/gpu/gl/SkNullGLContext.cpp \
586	third_party/etc1/etc1.cpp \
587	third_party/ktx/ktx.cpp \
588	src/core/SkFlate.cpp
589
590LOCAL_SHARED_LIBRARIES := \
591	liblog \
592	libGLESv2 \
593	libEGL \
594	libz \
595	libjpeg \
596	libpng \
597	libicuuc \
598	libicui18n \
599	libexpat \
600	libft2
601
602LOCAL_STATIC_LIBRARIES := \
603	libgif \
604	libwebp-decode \
605	libwebp-encode \
606	libsfntly
607
608LOCAL_C_INCLUDES := \
609	external/jpeg \
610	external/libpng \
611	$(LOCAL_PATH)/include/codec \
612	$(LOCAL_PATH)/src/codec \
613	$(LOCAL_PATH)/src/core \
614	$(LOCAL_PATH)/include/c \
615	$(LOCAL_PATH)/include/config \
616	$(LOCAL_PATH)/include/core \
617	$(LOCAL_PATH)/include/pathops \
618	$(LOCAL_PATH)/include/pipe \
619	external/giflib \
620	$(LOCAL_PATH)/include/ports \
621	$(LOCAL_PATH)/include/utils \
622	$(LOCAL_PATH)/include/images \
623	$(LOCAL_PATH)/src/sfnt \
624	$(LOCAL_PATH)/src/image \
625	$(LOCAL_PATH)/src/opts \
626	$(LOCAL_PATH)/src/utils \
627	$(LOCAL_PATH)/include/gpu \
628	$(LOCAL_PATH)/src/gpu \
629	$(LOCAL_PATH)/include/effects \
630	$(LOCAL_PATH)/src/effects \
631	$(LOCAL_PATH)/src/lazy \
632	$(LOCAL_PATH)/third_party/etc1 \
633	$(LOCAL_PATH)/third_party/ktx \
634	external/webp/include \
635	external/expat/lib \
636	external/freetype/include \
637	$(LOCAL_PATH)/include/utils/win \
638	$(LOCAL_PATH)/src/ports \
639	$(LOCAL_PATH)/src/pdf \
640	external/sfntly/cpp/src \
641	external/zlib
642
643LOCAL_EXPORT_C_INCLUDE_DIRS := \
644	$(LOCAL_PATH)/include/codec \
645	$(LOCAL_PATH)/include/c \
646	$(LOCAL_PATH)/include/config \
647	$(LOCAL_PATH)/include/core \
648	$(LOCAL_PATH)/include/pathops \
649	$(LOCAL_PATH)/include/pipe \
650	$(LOCAL_PATH)/include/effects \
651	$(LOCAL_PATH)/include/images \
652	$(LOCAL_PATH)/include/ports \
653	$(LOCAL_PATH)/include/utils \
654	$(LOCAL_PATH)/src/utils
655
656LOCAL_MODULE := \
657	libskia
658
659LOCAL_SRC_FILES_arm += \
660	src/core/SkUtilsArm.cpp \
661	src/opts/SkBitmapProcState_opts_arm.cpp \
662	src/opts/SkBlitMask_opts_arm.cpp \
663	src/opts/SkBlitRow_opts_arm.cpp \
664	src/opts/SkBlurImage_opts_arm.cpp \
665	src/opts/SkMorphology_opts_arm.cpp \
666	src/opts/SkTextureCompression_opts_arm.cpp \
667	src/opts/SkUtils_opts_arm.cpp \
668	src/opts/SkXfermode_opts_arm.cpp
669
670ifeq ($(ARCH_ARM_HAVE_NEON), true)
671LOCAL_SRC_FILES_arm += \
672	src/opts/SkBitmapProcState_arm_neon.cpp \
673	src/opts/SkBitmapProcState_matrixProcs_neon.cpp \
674	src/opts/SkBlitMask_opts_arm_neon.cpp \
675	src/opts/SkBlitRow_opts_arm_neon.cpp \
676	src/opts/SkBlurImage_opts_neon.cpp \
677	src/opts/SkMorphology_opts_neon.cpp \
678	src/opts/SkTextureCompression_opts_neon.cpp \
679	src/opts/SkUtils_opts_arm_neon.cpp \
680	src/opts/SkXfermode_opts_arm_neon.cpp
681
682LOCAL_CFLAGS_arm += \
683	-DSK_ARM_HAS_NEON
684
685endif
686
687LOCAL_CFLAGS_x86 += \
688	-msse2 \
689	-mfpmath=sse
690
691LOCAL_SRC_FILES_x86 += \
692	src/opts/SkBitmapFilter_opts_SSE2.cpp \
693	src/opts/SkBitmapProcState_opts_SSE2.cpp \
694	src/opts/SkBlitRow_opts_SSE2.cpp \
695	src/opts/SkBlurImage_opts_SSE2.cpp \
696	src/opts/SkMorphology_opts_SSE2.cpp \
697	src/opts/SkTextureCompression_opts_none.cpp \
698	src/opts/SkUtils_opts_SSE2.cpp \
699	src/opts/SkXfermode_opts_SSE2.cpp \
700	src/opts/opts_check_x86.cpp \
701	src/opts/SkBitmapProcState_opts_SSSE3.cpp \
702	src/opts/SkBlurImage_opts_SSE4.cpp \
703	src/opts/SkBlitRow_opts_SSE4.cpp
704
705LOCAL_SRC_FILES_x86_64 += \
706	src/opts/SkBitmapFilter_opts_SSE2.cpp \
707	src/opts/SkBitmapProcState_opts_SSE2.cpp \
708	src/opts/SkBlitRow_opts_SSE2.cpp \
709	src/opts/SkBlurImage_opts_SSE2.cpp \
710	src/opts/SkMorphology_opts_SSE2.cpp \
711	src/opts/SkTextureCompression_opts_none.cpp \
712	src/opts/SkUtils_opts_SSE2.cpp \
713	src/opts/SkXfermode_opts_SSE2.cpp \
714	src/opts/opts_check_x86.cpp \
715	src/opts/SkBitmapProcState_opts_SSSE3.cpp \
716	src/opts/SkBlurImage_opts_SSE4.cpp \
717	src/opts/SkBlitRow_opts_SSE4.cpp
718
719LOCAL_CFLAGS_mips += \
720	-EL
721
722LOCAL_SRC_FILES_mips += \
723	src/opts/SkBitmapProcState_opts_none.cpp \
724	src/opts/SkBlitMask_opts_none.cpp \
725	src/opts/SkBlitRow_opts_none.cpp \
726	src/opts/SkBlurImage_opts_none.cpp \
727	src/opts/SkMorphology_opts_none.cpp \
728	src/opts/SkTextureCompression_opts_none.cpp \
729	src/opts/SkUtils_opts_none.cpp \
730	src/opts/SkXfermode_opts_none.cpp
731
732LOCAL_SRC_FILES_mips64 += \
733	src/opts/SkBitmapProcState_opts_none.cpp \
734	src/opts/SkBlitMask_opts_none.cpp \
735	src/opts/SkBlitRow_opts_none.cpp \
736	src/opts/SkBlurImage_opts_none.cpp \
737	src/opts/SkMorphology_opts_none.cpp \
738	src/opts/SkTextureCompression_opts_none.cpp \
739	src/opts/SkUtils_opts_none.cpp \
740	src/opts/SkXfermode_opts_none.cpp
741
742LOCAL_SRC_FILES_arm64 += \
743	src/opts/SkBitmapProcState_arm_neon.cpp \
744	src/opts/SkBitmapProcState_matrixProcs_neon.cpp \
745	src/opts/SkBitmapProcState_opts_arm.cpp \
746	src/opts/SkBlitMask_opts_arm.cpp \
747	src/opts/SkBlitMask_opts_arm_neon.cpp \
748	src/opts/SkBlitRow_opts_arm.cpp \
749	src/opts/SkBlitRow_opts_arm_neon.cpp \
750	src/opts/SkBlurImage_opts_arm.cpp \
751	src/opts/SkBlurImage_opts_neon.cpp \
752	src/opts/SkMorphology_opts_arm.cpp \
753	src/opts/SkMorphology_opts_neon.cpp \
754	src/opts/SkTextureCompression_opts_none.cpp \
755	src/opts/SkUtils_opts_none.cpp \
756	src/opts/SkXfermode_opts_arm.cpp \
757	src/opts/SkXfermode_opts_arm_neon.cpp
758
759include $(BUILD_SHARED_LIBRARY)
760
761#############################################################
762# Build the skia tools
763#
764
765# benchmark (timings)
766include $(BASE_PATH)/bench/Android.mk
767
768# diamond-master (one test to rule them all)
769include $(BASE_PATH)/dm/Android.mk
770