2011-10-28 00:05:35 -07:00
|
|
|
#
|
2012-05-29 08:52:43 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-10-28 00:05:35 -07:00
|
|
|
|
2012-08-04 11:26:44 -07:00
|
|
|
DEPTH = @DEPTH@
|
2011-10-28 00:05:35 -07:00
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
|
|
|
LIBRARY_NAME = skia
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
|
|
|
|
DEFINES += -DSK_A32_SHIFT=24 -DSK_R32_SHIFT=16 -DSK_G32_SHIFT=8 -DSK_B32_SHIFT=0
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += \
|
|
|
|
-I$(srcdir)/include/core \
|
|
|
|
-I$(srcdir)/include/config \
|
2012-08-23 11:34:29 -07:00
|
|
|
-I$(srcdir)/include/gpu \
|
|
|
|
-I$(srcdir)/include/pipe \
|
2011-10-28 00:05:35 -07:00
|
|
|
-I$(srcdir)/include/ports \
|
|
|
|
-I$(srcdir)/include/images \
|
2012-05-18 11:47:02 -07:00
|
|
|
-I$(srcdir)/include/utils \
|
2011-10-28 00:05:35 -07:00
|
|
|
-I$(srcdir)/include/utils/mac \
|
2011-11-17 20:00:37 -08:00
|
|
|
-I$(srcdir)/include/utils/win \
|
2011-10-28 00:05:35 -07:00
|
|
|
-I$(srcdir)/include/views \
|
|
|
|
-I$(srcdir)/include/effects \
|
2012-08-23 11:34:29 -07:00
|
|
|
-I$(srcdir)/src/core \
|
|
|
|
-I$(srcdir)/src/image \
|
|
|
|
-I$(srcdir)/src/gpu \
|
2012-10-16 13:21:54 -07:00
|
|
|
-I$(srcdir)/src/gpu/effects \
|
|
|
|
-I$(srcdir)/src/gpu/gl \
|
2012-06-13 21:27:53 -07:00
|
|
|
-I$(srcdir)/src/utils \
|
|
|
|
-I$(srcdir)/src/sfnt \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
VPATH += \
|
|
|
|
$(srcdir)/src/core \
|
2012-10-16 13:21:54 -07:00
|
|
|
$(srcdir)/src/gpu \
|
|
|
|
$(srcdir)/src/gpu/effects \
|
|
|
|
$(srcdir)/src/gpu/gl \
|
2012-08-23 11:34:29 -07:00
|
|
|
$(srcdir)/src/image \
|
|
|
|
$(srcdir)/src/images \
|
|
|
|
$(srcdir)/src/pipe \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(srcdir)/src/ports \
|
|
|
|
$(srcdir)/src/opts \
|
|
|
|
$(srcdir)/src/effects \
|
2012-08-23 11:34:29 -07:00
|
|
|
$(srcdir)/src/effects/gradients \
|
2012-01-25 16:54:31 -08:00
|
|
|
$(srcdir)/src/utils \
|
2012-05-18 11:47:02 -07:00
|
|
|
$(srcdir)/src/utils/mac \
|
2012-06-13 21:27:53 -07:00
|
|
|
$(srcdir)/src/sfnt \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2012-10-16 13:21:54 -07:00
|
|
|
GPU_CPPSRCS = \
|
|
|
|
GrAAConvexPathRenderer.cpp \
|
|
|
|
GrAAHairLinePathRenderer.cpp \
|
|
|
|
GrAARectRenderer.cpp \
|
|
|
|
GrAddPathRenderers_default.cpp \
|
|
|
|
GrAllocPool.cpp \
|
|
|
|
GrAtlas.cpp \
|
|
|
|
GrBufferAllocPool.cpp \
|
|
|
|
GrCacheID.cpp \
|
|
|
|
GrClipData.cpp \
|
|
|
|
GrClipMaskCache.cpp \
|
|
|
|
GrClipMaskManager.cpp \
|
|
|
|
GrContext.cpp \
|
|
|
|
GrCustomStage.cpp \
|
|
|
|
GrDefaultPathRenderer.cpp \
|
|
|
|
GrDrawTarget.cpp \
|
|
|
|
GrGeometryBuffer.cpp \
|
|
|
|
GrGpu.cpp \
|
|
|
|
GrGpuFactory.cpp \
|
|
|
|
GrInOrderDrawBuffer.cpp \
|
|
|
|
GrMatrix.cpp \
|
|
|
|
GrMemory.cpp \
|
|
|
|
GrMemoryPool.cpp \
|
|
|
|
GrPath.cpp \
|
|
|
|
GrPathRendererChain.cpp \
|
|
|
|
GrPathRenderer.cpp \
|
|
|
|
GrPathUtils.cpp \
|
|
|
|
GrRectanizer.cpp \
|
|
|
|
GrRenderTarget.cpp \
|
|
|
|
GrResourceCache.cpp \
|
|
|
|
GrResource.cpp \
|
|
|
|
GrSoftwarePathRenderer.cpp \
|
|
|
|
GrStencilAndCoverPathRenderer.cpp \
|
|
|
|
GrStencilBuffer.cpp \
|
|
|
|
GrStencil.cpp \
|
|
|
|
GrSurface.cpp \
|
|
|
|
GrSWMaskHelper.cpp \
|
|
|
|
GrTextContext.cpp \
|
|
|
|
GrTextStrike.cpp \
|
|
|
|
GrTextureAccess.cpp \
|
|
|
|
GrTexture.cpp \
|
|
|
|
SkGpuCanvas.cpp \
|
|
|
|
SkGpuDevice.cpp \
|
|
|
|
SkGr.cpp \
|
|
|
|
SkGrFontScaler.cpp \
|
|
|
|
SkGrPixelRef.cpp \
|
|
|
|
SkGrTexturePixelRef.cpp \
|
|
|
|
GrColorTableEffect.cpp \
|
|
|
|
GrConfigConversionEffect.cpp \
|
|
|
|
GrConvolutionEffect.cpp \
|
|
|
|
GrSingleTextureEffect.cpp \
|
|
|
|
GrTextureDomainEffect.cpp \
|
|
|
|
GrTextureStripAtlas.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
GPU_GL_CPPSRCS = \
|
|
|
|
GrGLCaps.cpp \
|
|
|
|
GrGLContextInfo.cpp \
|
|
|
|
GrGLCreateNativeInterface_none.cpp \
|
|
|
|
GrGLCreateNullInterface.cpp \
|
|
|
|
GrGLDefaultInterface_native.cpp \
|
|
|
|
GrGLIndexBuffer.cpp \
|
|
|
|
GrGLInterface.cpp \
|
|
|
|
GrGLPath.cpp \
|
|
|
|
GrGLProgram.cpp \
|
|
|
|
GrGLProgramStage.cpp \
|
|
|
|
GrGLRenderTarget.cpp \
|
|
|
|
GrGLShaderBuilder.cpp \
|
|
|
|
GrGLSL.cpp \
|
|
|
|
GrGLStencilBuffer.cpp \
|
|
|
|
GrGLTexture.cpp \
|
|
|
|
GrGLUniformManager.cpp \
|
|
|
|
GrGLUtil.cpp \
|
|
|
|
GrGLVertexBuffer.cpp \
|
|
|
|
GrGpuGL.cpp \
|
|
|
|
GrGpuGL_program.cpp \
|
|
|
|
SkGLContext.cpp \
|
|
|
|
SkNullGLContext.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2011-10-28 00:05:35 -07:00
|
|
|
CPPSRCS = \
|
|
|
|
Sk64.cpp \
|
|
|
|
SkAAClip.cpp \
|
|
|
|
SkAdvancedTypefaceMetrics.cpp \
|
|
|
|
SkAlphaRuns.cpp \
|
2013-01-15 08:44:36 -08:00
|
|
|
SkAnnotation.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkBBoxRecord.cpp \
|
|
|
|
SkBBoxHierarchyRecord.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBase64.cpp \
|
|
|
|
SkBitSet.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkBitmap.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBitmapCache.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkBitmapHeap.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkBitmapProcShader.cpp \
|
|
|
|
SkBitmapProcState.cpp \
|
|
|
|
SkBitmapProcState_matrixProcs.cpp \
|
|
|
|
SkBitmapSampler.cpp \
|
|
|
|
SkBitmap_scroll.cpp \
|
|
|
|
SkBlitMask_D32.cpp \
|
|
|
|
SkBlitRow_D16.cpp \
|
|
|
|
SkBlitRow_D32.cpp \
|
|
|
|
SkBlitRow_D4444.cpp \
|
|
|
|
SkBlitter.cpp \
|
|
|
|
SkBlitter_4444.cpp \
|
|
|
|
SkBlitter_A1.cpp \
|
|
|
|
SkBlitter_A8.cpp \
|
|
|
|
SkBlitter_ARGB32.cpp \
|
|
|
|
SkBlitter_RGB16.cpp \
|
|
|
|
SkBlitter_Sprite.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBlurDrawLooper.cpp \
|
|
|
|
SkBlurMaskFilter.cpp \
|
|
|
|
SkBlurMask.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkBuffer.cpp \
|
|
|
|
SkCanvas.cpp \
|
|
|
|
SkChunkAlloc.cpp \
|
|
|
|
SkClipStack.cpp \
|
|
|
|
SkColor.cpp \
|
|
|
|
SkColorFilter.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkColorFilters.cpp \
|
|
|
|
SkColorMatrix.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkColorTable.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkClampRange.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkComposeShader.cpp \
|
|
|
|
SkConcaveToTriangles.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkConfig8888.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkCordic.cpp \
|
|
|
|
SkCubicClipper.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkDashPathEffect.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkData.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkDataPixelRef.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkDebug.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkDeferredCanvas.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkDeque.cpp \
|
|
|
|
SkDevice.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkDeviceProfile.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkDither.cpp \
|
|
|
|
SkDraw.cpp \
|
|
|
|
SkEdge.cpp \
|
|
|
|
SkEdgeBuilder.cpp \
|
|
|
|
SkEdgeClipper.cpp \
|
|
|
|
SkFilterProc.cpp \
|
|
|
|
SkFlattenable.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkFlattenableBuffers.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkFloat.cpp \
|
|
|
|
SkFloatBits.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkFontDescriptor.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkFontHost.cpp \
|
|
|
|
SkGeometry.cpp \
|
|
|
|
SkGlyphCache.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkGradientShader.cpp \
|
2012-09-24 14:29:09 -07:00
|
|
|
SkGradientTileProc.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkGraphics.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkGPipeRead.cpp \
|
|
|
|
SkGPipeWrite.cpp \
|
|
|
|
SkImage.cpp \
|
|
|
|
SkImage_Codec.cpp \
|
|
|
|
SkImage_Picture.cpp \
|
|
|
|
SkImage_Raster.cpp \
|
|
|
|
SkImageDecoder.cpp \
|
|
|
|
SkImageDecoder_Factory.cpp \
|
|
|
|
SkImageFilter.cpp \
|
|
|
|
SkImagePriv.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkLayerDrawLooper.cpp \
|
|
|
|
SkLayerRasterizer.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkLinearGradient.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkLineClipper.cpp \
|
|
|
|
SkMallocPixelRef.cpp \
|
|
|
|
SkMask.cpp \
|
|
|
|
SkMaskFilter.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkMaskGamma.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkMath.cpp \
|
|
|
|
SkMatrix.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkMemory_malloc.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkMetaData.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkOrderedReadBuffer.cpp \
|
|
|
|
SkOrderedWriteBuffer.cpp \
|
|
|
|
SkOSFile_stdio.cpp \
|
2012-06-13 21:27:53 -07:00
|
|
|
SkOTUtils.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkPackBits.cpp \
|
|
|
|
SkPaint.cpp \
|
|
|
|
SkPath.cpp \
|
|
|
|
SkPathEffect.cpp \
|
|
|
|
SkPathHeap.cpp \
|
|
|
|
SkPathMeasure.cpp \
|
|
|
|
SkPicture.cpp \
|
|
|
|
SkPictureFlat.cpp \
|
|
|
|
SkPicturePlayback.cpp \
|
|
|
|
SkPictureRecord.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkPictureStateTree.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkPixelRef.cpp \
|
|
|
|
SkPoint.cpp \
|
|
|
|
SkProcSpriteBlitter.cpp \
|
|
|
|
SkPtrRecorder.cpp \
|
|
|
|
SkQuadClipper.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkRTree.cpp \
|
|
|
|
SkRadialGradient.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkRasterClip.cpp \
|
|
|
|
SkRasterizer.cpp \
|
|
|
|
SkRect.cpp \
|
|
|
|
SkRefDict.cpp \
|
|
|
|
SkRegion.cpp \
|
|
|
|
SkRegion_path.cpp \
|
|
|
|
SkRegion_rects.cpp \
|
|
|
|
SkScalar.cpp \
|
|
|
|
SkScalerContext.cpp \
|
|
|
|
SkScan.cpp \
|
|
|
|
SkScan_AntiPath.cpp \
|
|
|
|
SkScan_Antihair.cpp \
|
|
|
|
SkScan_Hairline.cpp \
|
|
|
|
SkScan_Path.cpp \
|
|
|
|
SkShader.cpp \
|
|
|
|
SkSpriteBlitter_ARGB32.cpp \
|
|
|
|
SkSpriteBlitter_RGB16.cpp \
|
|
|
|
SkStream.cpp \
|
|
|
|
SkString.cpp \
|
|
|
|
SkStroke.cpp \
|
|
|
|
SkStrokerPriv.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkSurface.cpp \
|
|
|
|
SkSurface_Raster.cpp \
|
|
|
|
SkSurface_Picture.cpp \
|
|
|
|
SkSweepGradient.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkTLS.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkTSearch.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkTwoPointConicalGradient.cpp \
|
|
|
|
SkTwoPointRadialGradient.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
SkTypeface.cpp \
|
|
|
|
SkTypefaceCache.cpp \
|
|
|
|
SkUnPreMultiply.cpp \
|
|
|
|
SkUtils.cpp \
|
|
|
|
SkWriter32.cpp \
|
|
|
|
SkXfermode.cpp \
|
2013-03-13 16:29:47 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_SKIA_GPU
|
|
|
|
CPPSRCS += \
|
2012-10-16 13:21:54 -07:00
|
|
|
$(GPU_CPPSRCS) \
|
|
|
|
$(GPU_GL_CPPSRCS) \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
2013-03-13 16:29:47 -07:00
|
|
|
endif
|
2011-10-28 00:05:35 -07:00
|
|
|
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
CPPSRCS += \
|
|
|
|
SkFontHost_mac_coretext.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkStream_mac.cpp \
|
2011-11-17 20:00:37 -08:00
|
|
|
SkTime_Unix.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (android,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
CPPSRCS += \
|
2012-03-28 15:27:01 -07:00
|
|
|
SkDebug_android.cpp \
|
2013-05-15 13:14:56 -07:00
|
|
|
SkFontHost_android_old.cpp \
|
|
|
|
SkFontHost_FreeType.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkFontHost_FreeType_common.cpp \
|
2012-05-18 11:52:40 -07:00
|
|
|
SkFontHost_tables.cpp \
|
2011-11-17 20:00:37 -08:00
|
|
|
SkMMapStream.cpp \
|
|
|
|
SkTime_Unix.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkThread_pthread.cpp \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
|
2013-05-15 13:14:56 -07:00
|
|
|
OS_CXXFLAGS += $(CAIRO_FT_CFLAGS)
|
2013-03-26 08:05:19 -07:00
|
|
|
DEFINES += -DSK_USE_POSIX_THREADS=1
|
2012-03-28 15:27:01 -07:00
|
|
|
else
|
|
|
|
CPPSRCS += \
|
|
|
|
SkDebug_stdio.cpp \
|
2013-05-15 13:14:56 -07:00
|
|
|
SkThread_none.cpp \
|
2012-03-28 15:27:01 -07:00
|
|
|
$(NULL)
|
2011-10-28 00:05:35 -07:00
|
|
|
endif
|
|
|
|
|
2012-01-25 16:54:31 -08:00
|
|
|
ifeq (gtk2,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
CPPSRCS += \
|
2013-05-15 13:14:56 -07:00
|
|
|
SkFontHost_FreeType.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkFontHost_FreeType_common.cpp \
|
2013-05-15 13:14:56 -07:00
|
|
|
SkFontHost_linux.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkFontHost_tables.cpp \
|
2012-01-25 16:54:31 -08:00
|
|
|
SkTime_Unix.cpp \
|
|
|
|
SkMMapStream.cpp \
|
|
|
|
SkOSFile.cpp \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-05-15 13:14:56 -07:00
|
|
|
OS_CXXFLAGS += $(MOZ_PANGO_CFLAGS)
|
2012-01-25 16:54:31 -08:00
|
|
|
endif
|
|
|
|
|
2012-03-22 13:24:57 -07:00
|
|
|
ifeq (qt,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
CPPSRCS += \
|
|
|
|
SkFontHost_FreeType.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkFontHost_FreeType_common.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkFontHost_tables.cpp \
|
2012-03-22 13:24:57 -07:00
|
|
|
SkMMapStream.cpp \
|
|
|
|
SkOSFile.cpp \
|
|
|
|
$(NULL)
|
|
|
|
ifeq (Linux,$(OS_TARGET))
|
|
|
|
CPPSRCS += \
|
|
|
|
SkFontHost_linux.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkFontHost_tables.cpp \
|
2012-03-22 13:24:57 -07:00
|
|
|
SkTime_Unix.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
|
|
|
OS_CXXFLAGS += $(MOZ_PANGO_CFLAGS)
|
|
|
|
endif
|
|
|
|
|
2013-03-26 08:05:19 -07:00
|
|
|
ifeq (Linux,$(OS_TARGET))
|
|
|
|
DEFINES += -DSK_USE_POSIX_THREADS=1
|
|
|
|
endif
|
|
|
|
|
2011-11-17 20:00:37 -08:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
CPPSRCS += \
|
|
|
|
SkFontHost_win.cpp \
|
2012-06-13 21:27:53 -07:00
|
|
|
SkFontHost_tables.cpp \
|
2012-01-18 20:48:35 -08:00
|
|
|
SkFontHost_sandbox_none.cpp \
|
2011-11-17 20:00:37 -08:00
|
|
|
SkTime_win.cpp \
|
2011-12-27 01:01:12 -08:00
|
|
|
$(NULL)
|
2013-03-12 03:33:36 -07:00
|
|
|
DEFINES += -DSKIA_IMPLEMENTATION=1 -DGR_IMPLEMENTATION=1
|
2011-12-27 01:01:12 -08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
|
|
|
CPPSRCS += \
|
2011-11-17 20:00:37 -08:00
|
|
|
SkBitmapProcState_opts_SSE2.cpp \
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBlitRect_opts_SSE2.cpp \
|
2011-11-17 20:00:37 -08:00
|
|
|
SkBlitRow_opts_SSE2.cpp \
|
|
|
|
SkUtils_opts_SSE2.cpp \
|
|
|
|
opts_check_SSE2.cpp \
|
|
|
|
$(NULL)
|
2012-09-04 13:19:50 -07:00
|
|
|
ifdef HAVE_TOOLCHAIN_SUPPORT_MSSSE3
|
2012-06-01 15:12:09 -07:00
|
|
|
DEFINES += -DSK_BUILD_SSSE3
|
|
|
|
CPPSRCS += SkBitmapProcState_opts_SSSE3.cpp
|
|
|
|
endif
|
2011-12-27 01:01:12 -08:00
|
|
|
else
|
|
|
|
ifeq ($(CPU_ARCH)_$(GNU_CC),arm_1)
|
|
|
|
CPPSRCS += \
|
|
|
|
SkBitmapProcState_opts_arm.cpp \
|
|
|
|
SkBlitRow_opts_arm.cpp \
|
|
|
|
opts_check_arm.cpp \
|
|
|
|
$(NULL)
|
|
|
|
SSRCS += memset.arm.S
|
|
|
|
else
|
|
|
|
CPPSRCS += \
|
|
|
|
SkBitmapProcState_opts_none.cpp \
|
|
|
|
SkBlitRow_opts_none.cpp \
|
|
|
|
SkUtils_opts_none.cpp \
|
|
|
|
$(NULL)
|
|
|
|
endif
|
2011-11-17 20:00:37 -08:00
|
|
|
endif
|
|
|
|
|
2011-10-28 00:05:35 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
2011-11-30 01:26:15 -08:00
|
|
|
|
|
|
|
ifneq (,$(INTEL_ARCHITECTURE))
|
|
|
|
ifdef GNU_CC
|
|
|
|
SkBitmapProcState_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBitmapProcState_opts_SSSE3.$(OBJ_SUFFIX): CXXFLAGS+=-mssse3
|
2011-11-30 01:26:15 -08:00
|
|
|
SkBlitRow_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2012-05-18 11:47:02 -07:00
|
|
|
SkBlitRect_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
2011-11-30 01:26:15 -08:00
|
|
|
SkUtils_opts_SSE2.$(OBJ_SUFFIX): CXXFLAGS+=-msse2
|
|
|
|
endif
|
|
|
|
endif
|
2012-07-27 11:10:36 -07:00
|
|
|
|
2012-08-23 11:34:29 -07:00
|
|
|
ifeq ($(CPU_ARCH)_$(GNU_CC),arm_1)
|
|
|
|
# The assembly uses the frame pointer register (r7 in Thumb/r11 in
|
|
|
|
# ARM), the compiler doesn't like that.
|
|
|
|
CXXFLAGS := $(filter-out -fno-omit-frame-pointer,$(CXXFLAGS)) -fomit-frame-pointer
|
|
|
|
CFLAGS := $(filter-out -fno-omit-frame-pointer,$(CFLAGS)) -fomit-frame-pointer
|
|
|
|
endif
|