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
|
|
|
|
|
|
|
|
MODULE = skia
|
|
|
|
LIBRARY_NAME = skia
|
|
|
|
LIBXUL_LIBRARY = 1
|
|
|
|
EXPORT_LIBRARY = 1
|
|
|
|
|
|
|
|
EXPORTS_NAMESPACES = skia
|
|
|
|
|
|
|
|
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-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-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)
|
|
|
|
|
|
|
|
EXPORTS_skia = \
|
|
|
|
include/core/Sk64.h \
|
2012-05-18 11:47:02 -07:00
|
|
|
include/core/SkAdvancedTypefaceMetrics.h \
|
2011-10-28 00:05:35 -07:00
|
|
|
include/core/SkBitmap.h \
|
|
|
|
include/core/SkBlitRow.h \
|
|
|
|
include/core/SkBounder.h \
|
|
|
|
include/core/SkCanvas.h \
|
|
|
|
include/core/SkChunkAlloc.h \
|
|
|
|
include/core/SkClipStack.h \
|
|
|
|
include/core/SkColor.h \
|
|
|
|
include/core/SkColorFilter.h \
|
|
|
|
include/core/SkColorPriv.h \
|
|
|
|
include/core/SkColorShader.h \
|
2012-08-23 11:34:29 -07:00
|
|
|
include/core/SkColorTable.h \
|
2011-10-28 00:05:35 -07:00
|
|
|
include/core/SkComposeShader.h \
|
|
|
|
include/core/SkData.h \
|
|
|
|
include/core/SkDeque.h \
|
|
|
|
include/core/SkDevice.h \
|
|
|
|
include/core/SkDither.h \
|
|
|
|
include/core/SkDraw.h \
|
|
|
|
include/core/SkDrawFilter.h \
|
|
|
|
include/core/SkDrawLooper.h \
|
|
|
|
include/core/SkEmptyShader.h \
|
|
|
|
include/core/SkEndian.h \
|
|
|
|
include/core/SkFixed.h \
|
|
|
|
include/core/SkFlattenable.h \
|
|
|
|
include/core/SkFloatBits.h \
|
|
|
|
include/core/SkFloatingPoint.h \
|
|
|
|
include/core/SkFontHost.h \
|
|
|
|
include/core/SkGeometry.h \
|
|
|
|
include/core/SkGraphics.h \
|
2012-08-23 11:34:29 -07:00
|
|
|
include/core/SkInstCnt.h \
|
2011-10-28 00:05:35 -07:00
|
|
|
include/core/SkLineClipper.h \
|
|
|
|
include/core/SkMMapStream.h \
|
|
|
|
include/core/SkMallocPixelRef.h \
|
|
|
|
include/core/SkMask.h \
|
|
|
|
include/core/SkMaskFilter.h \
|
|
|
|
include/core/SkMath.h \
|
|
|
|
include/core/SkMatrix.h \
|
|
|
|
include/core/SkMetaData.h \
|
|
|
|
include/core/SkOSFile.h \
|
|
|
|
include/core/SkPackBits.h \
|
|
|
|
include/core/SkPaint.h \
|
|
|
|
include/core/SkPath.h \
|
|
|
|
include/core/SkPathEffect.h \
|
|
|
|
include/core/SkPathMeasure.h \
|
|
|
|
include/core/SkPicture.h \
|
|
|
|
include/core/SkPixelRef.h \
|
|
|
|
include/core/SkPoint.h \
|
|
|
|
include/core/SkPostConfig.h \
|
|
|
|
include/core/SkPreConfig.h \
|
|
|
|
include/core/SkRandom.h \
|
|
|
|
include/core/SkRasterizer.h \
|
|
|
|
include/core/SkReader32.h \
|
|
|
|
include/core/SkRect.h \
|
|
|
|
include/core/SkRefCnt.h \
|
|
|
|
include/core/SkRegion.h \
|
|
|
|
include/core/SkScalar.h \
|
|
|
|
include/core/SkScalarCompare.h \
|
|
|
|
include/core/SkShader.h \
|
|
|
|
include/core/SkSize.h \
|
|
|
|
include/core/SkStream.h \
|
|
|
|
include/core/SkString.h \
|
|
|
|
include/core/SkTDArray.h \
|
|
|
|
include/core/SkTDStack.h \
|
|
|
|
include/core/SkTDict.h \
|
|
|
|
include/core/SkTLazy.h \
|
|
|
|
include/core/SkTRegistry.h \
|
|
|
|
include/core/SkTScopedPtr.h \
|
|
|
|
include/core/SkTSearch.h \
|
|
|
|
include/core/SkTemplates.h \
|
|
|
|
include/core/SkThread.h \
|
|
|
|
include/core/SkThread_platform.h \
|
|
|
|
include/core/SkTime.h \
|
|
|
|
include/core/SkTrace.h \
|
|
|
|
include/core/SkTypeface.h \
|
|
|
|
include/core/SkTypes.h \
|
|
|
|
include/core/SkUnPreMultiply.h \
|
|
|
|
include/core/SkUnitMapper.h \
|
|
|
|
include/core/SkUtils.h \
|
2012-05-18 11:47:02 -07:00
|
|
|
include/core/SkWeakRefCnt.h \
|
2011-10-28 00:05:35 -07:00
|
|
|
include/core/SkWriter32.h \
|
|
|
|
include/core/SkXfermode.h \
|
|
|
|
include/config/SkUserConfig.h \
|
2012-05-18 11:47:02 -07:00
|
|
|
include/effects/SkDashPathEffect.h \
|
2011-10-28 00:05:35 -07:00
|
|
|
include/effects/SkGradientShader.h \
|
|
|
|
include/effects/SkBlurDrawLooper.h \
|
|
|
|
include/effects/SkBlurMaskFilter.h \
|
|
|
|
include/effects/SkLayerDrawLooper.h \
|
|
|
|
include/effects/SkLayerRasterizer.h \
|
2012-05-18 11:47:02 -07:00
|
|
|
include/effects/SkMorphologyImageFilter.h \
|
|
|
|
include/utils/SkDeferredCanvas.h \
|
|
|
|
include/views/SkTextBox.h \
|
2011-10-28 00:05:35 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
DEFINES += -DUSE_SKIA
|
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
Sk64.cpp \
|
|
|
|
SkAAClip.cpp \
|
|
|
|
SkAdvancedTypefaceMetrics.cpp \
|
|
|
|
SkAlphaRuns.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 \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
EXPORTS_skia += \
|
|
|
|
include/ports/SkTypeface_mac.h \
|
|
|
|
$(NULL)
|
|
|
|
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 \
|
2012-05-18 11:52:40 -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)
|
|
|
|
|
|
|
|
DEFINES += -DSK_BUILD_FOR_ANDROID_NDK
|
|
|
|
OS_CXXFLAGS += $(CAIRO_FT_CFLAGS)
|
2012-03-28 15:27:01 -07:00
|
|
|
else
|
|
|
|
CPPSRCS += \
|
|
|
|
SkDebug_stdio.cpp \
|
2012-05-18 11:47:02 -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 += \
|
|
|
|
SkFontHost_FreeType.cpp \
|
2012-08-23 11:34:29 -07:00
|
|
|
SkFontHost_FreeType_common.cpp \
|
2012-01-25 16:54:31 -08: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)
|
|
|
|
|
|
|
|
OS_CXXFLAGS += $(MOZ_PANGO_CFLAGS)
|
|
|
|
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
|
|
|
|
|
2011-11-17 20:00:37 -08:00
|
|
|
ifeq (windows,$(MOZ_WIDGET_TOOLKIT))
|
|
|
|
EXPORTS_skia += \
|
|
|
|
include/config/sk_stdint.h \
|
|
|
|
include/ports/SkTypeface_win.h \
|
|
|
|
$(NULL)
|
|
|
|
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)
|
2012-08-23 11:34:29 -07:00
|
|
|
ifdef _MSC_VER
|
|
|
|
HAVE_COMPILER_FLAG_MSSSE3=1
|
|
|
|
endif
|
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
|
|
|
|
|
|
|
ifdef GNU_CC
|
|
|
|
CXXFLAGS := $(filter-out -pedantic,$(CXXFLAGS))
|
|
|
|
CFLAGS := $(filter-out -pedantic,$(CFLAGS))
|
|
|
|
endif
|
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
|