mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
628 lines
22 KiB
Python
628 lines
22 KiB
Python
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# 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/.
|
|
|
|
EXPORTS.skia += [
|
|
'include/config/SkUserConfig.h',
|
|
'include/core/Sk64.h',
|
|
'include/core/SkAdvancedTypefaceMetrics.h',
|
|
'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',
|
|
'include/core/SkColorTable.h',
|
|
'include/core/SkComposeShader.h',
|
|
'include/core/SkData.h',
|
|
'include/core/SkDeque.h',
|
|
'include/core/SkDevice.h',
|
|
'include/core/SkDeviceProperties.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/SkFontLCDConfig.h',
|
|
'include/core/SkGeometry.h',
|
|
'include/core/SkGraphics.h',
|
|
'include/core/SkInstCnt.h',
|
|
'include/core/SkLineClipper.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/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/SkStrokeRec.h',
|
|
'include/core/SkTArray.h',
|
|
'include/core/SkTDArray.h',
|
|
'include/core/SkTDict.h',
|
|
'include/core/SkTDStack.h',
|
|
'include/core/SkTemplates.h',
|
|
'include/core/SkThread.h',
|
|
'include/core/SkThread_platform.h',
|
|
'include/core/SkTime.h',
|
|
'include/core/SkTInternalLList.h',
|
|
'include/core/SkTLazy.h',
|
|
'include/core/SkTrace.h',
|
|
'include/core/SkTRegistry.h',
|
|
'include/core/SkTScopedPtr.h',
|
|
'include/core/SkTSearch.h',
|
|
'include/core/SkTypeface.h',
|
|
'include/core/SkTypes.h',
|
|
'include/core/SkUnitMapper.h',
|
|
'include/core/SkUnPreMultiply.h',
|
|
'include/core/SkUtils.h',
|
|
'include/core/SkWeakRefCnt.h',
|
|
'include/core/SkWriter32.h',
|
|
'include/core/SkXfermode.h',
|
|
'include/effects/SkBlurDrawLooper.h',
|
|
'include/effects/SkBlurMaskFilter.h',
|
|
'include/effects/SkDashPathEffect.h',
|
|
'include/effects/SkGradientShader.h',
|
|
'include/effects/SkLayerDrawLooper.h',
|
|
'include/effects/SkLayerRasterizer.h',
|
|
'include/effects/SkMorphologyImageFilter.h',
|
|
'include/gpu/gl/GrGLConfig.h',
|
|
'include/gpu/gl/GrGLFunctions.h',
|
|
'include/gpu/gl/GrGLInterface.h',
|
|
'include/gpu/gl/SkANGLEGLContext.h',
|
|
'include/gpu/gl/SkDebugGLContext.h',
|
|
'include/gpu/gl/SkMesaGLContext.h',
|
|
'include/gpu/gl/SkNativeGLContext.h',
|
|
'include/gpu/gl/SkNullGLContext.h',
|
|
'include/gpu/GrAARectRenderer.h',
|
|
'include/gpu/GrBackendEffectFactory.h',
|
|
'include/gpu/GrClipData.h',
|
|
'include/gpu/GrColor.h',
|
|
'include/gpu/GrConfig.h',
|
|
'include/gpu/GrContext.h',
|
|
'include/gpu/GrContextFactory.h',
|
|
'include/gpu/GrEffect.h',
|
|
'include/gpu/GrEffectStage.h',
|
|
'include/gpu/GrEffectUnitTest.h',
|
|
'include/gpu/GrFontScaler.h',
|
|
'include/gpu/GrGlyph.h',
|
|
'include/gpu/GrKey.h',
|
|
'include/gpu/GrNoncopyable.h',
|
|
'include/gpu/GrPaint.h',
|
|
'include/gpu/GrPathRendererChain.h',
|
|
'include/gpu/GrPoint.h',
|
|
'include/gpu/GrRect.h',
|
|
'include/gpu/GrRefCnt.h',
|
|
'include/gpu/GrRenderTarget.h',
|
|
'include/gpu/GrResource.h',
|
|
'include/gpu/GrSurface.h',
|
|
'include/gpu/GrTextContext.h',
|
|
'include/gpu/GrTexture.h',
|
|
'include/gpu/GrTextureAccess.h',
|
|
'include/gpu/GrTypes.h',
|
|
'include/gpu/GrTypesPriv.h',
|
|
'include/gpu/GrUserConfig.h',
|
|
'include/gpu/SkGpuDevice.h',
|
|
'include/gpu/SkGr.h',
|
|
'include/gpu/SkGrPixelRef.h',
|
|
'include/gpu/SkGrTexturePixelRef.h',
|
|
'include/lazy/SkBitmapFactory.h',
|
|
'include/utils/SkDeferredCanvas.h',
|
|
'include/utils/SkRandom.h',
|
|
'include/views/SkTextBox.h',
|
|
'src/core/SkTypefaceCache.h',
|
|
]
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
EXPORTS.skia += [
|
|
'include/ports/SkTypeface_mac.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'src/ports/SkThread_pthread.cpp',
|
|
'src/ports/SkTime_Unix.cpp',
|
|
'src/utils/mac/SkStream_mac.cpp',
|
|
'src/utils/SkThreadUtils_pthread.cpp',
|
|
'src/utils/SkThreadUtils_pthread_mach.cpp',
|
|
]
|
|
# left out of UNIFIED_SOURCES for now to avoid having to patch skia. Should revisit eventually.
|
|
SOURCES += [
|
|
'src/ports/SkFontHost_mac.cpp',
|
|
]
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
EXPORTS.skia += [
|
|
'include/config/sk_stdint.h',
|
|
'include/ports/SkTypeface_win.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'src/ports/SkThread_win.cpp',
|
|
'src/ports/SkTime_win.cpp',
|
|
'src/utils/SkThreadUtils_win.cpp',
|
|
]
|
|
# left out of UNIFIED_SOURCES for now to avoid having to patch skia. Should revisit eventually.
|
|
SOURCES += [
|
|
'src/ports/SkFontHost_sandbox_none.cpp',
|
|
'src/ports/SkFontHost_win.cpp',
|
|
]
|
|
DEFINES['SKIA_IMPLEMENTATION'] = 1
|
|
DEFINES['GR_IMPLEMENTATION'] = 1
|
|
elif CONFIG['MOZ_WIDGET_GTK']:
|
|
EXPORTS.skia += [
|
|
'include/ports/SkTypeface_cairo.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'src/ports/SkThread_pthread.cpp',
|
|
'src/ports/SkTime_Unix.cpp',
|
|
'src/utils/SkOSFile.cpp',
|
|
'src/utils/SkThreadUtils_pthread.cpp',
|
|
]
|
|
# left out of UNIFIED_SOURCES for now to avoid having to patch skia. Should revisit eventually.
|
|
SOURCES += [
|
|
'src/ports/SkFontHost_cairo.cpp',
|
|
'src/ports/SkFontHost_FreeType_common.cpp',
|
|
]
|
|
if CONFIG['OS_TARGET'] in ('Linux', 'FreeBSD', 'NetBSD'):
|
|
UNIFIED_SOURCES += [
|
|
'src/utils/SkThreadUtils_pthread_linux.cpp',
|
|
]
|
|
else:
|
|
UNIFIED_SOURCES += [
|
|
'src/utils/SkThreadUtils_pthread_other.cpp',
|
|
]
|
|
elif CONFIG['MOZ_WIDGET_TOOLKIT'] == 'qt':
|
|
UNIFIED_SOURCES += [
|
|
'src/utils/SkOSFile.cpp',
|
|
]
|
|
# left out of UNIFIED_SOURCES for now to avoid having to patch skia. Should revisit eventually.
|
|
SOURCES += [
|
|
'src/ports/SkFontHost_cairo.cpp',
|
|
'src/ports/SkFontHost_FreeType_common.cpp',
|
|
]
|
|
if CONFIG['OS_TARGET'] == 'Linux':
|
|
EXPORTS.skia += [
|
|
'include/ports/SkTypeface_cairo.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'src/ports/SkThread_pthread.cpp',
|
|
'src/ports/SkTime_Unix.cpp',
|
|
'src/utils/SkThreadUtils_pthread.cpp',
|
|
'src/utils/SkThreadUtils_pthread_linux.cpp',
|
|
]
|
|
DEFINES['SK_USE_POSIX_THREADS'] = 1
|
|
# Separate 'if' from above, since the else below applies to all != 'android'
|
|
# toolkits.
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gonk'):
|
|
EXPORTS.skia += [
|
|
'include/ports/SkTypeface_cairo.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'src/images/SkImageRef_ashmem.cpp',
|
|
'src/ports/SkDebug_android.cpp',
|
|
'src/ports/SkThread_pthread.cpp',
|
|
'src/ports/SkTime_Unix.cpp',
|
|
'src/utils/android/ashmem.cpp',
|
|
'src/utils/SkOSFile.cpp',
|
|
'src/utils/SkThreadUtils_pthread.cpp',
|
|
'src/utils/SkThreadUtils_pthread_other.cpp',
|
|
]
|
|
# left out of UNIFIED_SOURCES for now to avoid having to patch skia. Should revisit eventually.
|
|
SOURCES += [
|
|
'src/ports/SkFontHost_android_old.cpp',
|
|
'src/ports/SkFontHost_cairo.cpp',
|
|
'src/ports/SkFontHost_FreeType.cpp',
|
|
'src/ports/SkFontHost_FreeType_common.cpp',
|
|
]
|
|
DEFINES['SK_FONTHOST_CAIRO_STANDALONE'] = 0
|
|
else:
|
|
UNIFIED_SOURCES += [
|
|
'src/ports/SkDebug_stdio.cpp',
|
|
]
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE']:
|
|
# We need to build SSE2-enabled files separately so that we're able
|
|
# to pass -msse2 for them. We won't be able to unify them with the rest,
|
|
# but we should at least be able to unify them with each other.
|
|
SOURCES += [
|
|
'src/opts/opts_check_SSE2.cpp',
|
|
'src/opts/SkBitmapProcState_opts_SSE2.cpp',
|
|
'src/opts/SkBlitRect_opts_SSE2.cpp',
|
|
'src/opts/SkBlitRow_opts_SSE2.cpp',
|
|
'src/opts/SkUtils_opts_SSE2.cpp',
|
|
]
|
|
if CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSSE3']:
|
|
SOURCES += [
|
|
'src/opts/SkBitmapProcState_opts_SSSE3.cpp',
|
|
]
|
|
elif CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_CC']:
|
|
UNIFIED_SOURCES += [
|
|
'src/opts/opts_check_arm.cpp',
|
|
'src/opts/SkBlitRow_opts_arm.cpp',
|
|
]
|
|
SOURCES += [
|
|
'src/opts/SkBitmapProcState_opts_arm.cpp',
|
|
]
|
|
else:
|
|
UNIFIED_SOURCES += [
|
|
'src/opts/SkBlitRow_opts_none.cpp',
|
|
'src/opts/SkUtils_opts_none.cpp',
|
|
]
|
|
SOURCES += [
|
|
'src/opts/SkBitmapProcState_opts_none.cpp',
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_SKIA_GPU']:
|
|
UNIFIED_SOURCES += [
|
|
'src/gpu/effects/GrConfigConversionEffect.cpp',
|
|
'src/gpu/effects/GrConvolutionEffect.cpp',
|
|
'src/gpu/effects/GrSimpleTextureEffect.cpp',
|
|
'src/gpu/effects/GrSingleTextureEffect.cpp',
|
|
'src/gpu/effects/GrTextureDomainEffect.cpp',
|
|
'src/gpu/effects/GrTextureStripAtlas.cpp',
|
|
'src/gpu/gl/GrGLBufferImpl.cpp',
|
|
'src/gpu/gl/GrGLCaps.cpp',
|
|
'src/gpu/gl/GrGLContext.cpp',
|
|
'src/gpu/gl/GrGLCreateNativeInterface_none.cpp',
|
|
'src/gpu/gl/GrGLCreateNullInterface.cpp',
|
|
'src/gpu/gl/GrGLDefaultInterface_native.cpp',
|
|
'src/gpu/gl/GrGLEffect.cpp',
|
|
'src/gpu/gl/GrGLEffectMatrix.cpp',
|
|
'src/gpu/gl/GrGLExtensions.cpp',
|
|
'src/gpu/gl/GrGLIndexBuffer.cpp',
|
|
'src/gpu/gl/GrGLInterface.cpp',
|
|
'src/gpu/gl/GrGLNoOpInterface.cpp',
|
|
'src/gpu/gl/GrGLPath.cpp',
|
|
'src/gpu/gl/GrGLProgram.cpp',
|
|
'src/gpu/gl/GrGLProgramDesc.cpp',
|
|
'src/gpu/gl/GrGLRenderTarget.cpp',
|
|
'src/gpu/gl/GrGLShaderBuilder.cpp',
|
|
'src/gpu/gl/GrGLSL.cpp',
|
|
'src/gpu/gl/GrGLStencilBuffer.cpp',
|
|
'src/gpu/gl/GrGLTexture.cpp',
|
|
'src/gpu/gl/GrGLUniformManager.cpp',
|
|
'src/gpu/gl/GrGLUtil.cpp',
|
|
'src/gpu/gl/GrGLVertexArray.cpp',
|
|
'src/gpu/gl/GrGLVertexBuffer.cpp',
|
|
'src/gpu/gl/GrGpuGL.cpp',
|
|
'src/gpu/gl/GrGpuGL_program.cpp',
|
|
'src/gpu/gl/SkGLContextHelper.cpp',
|
|
'src/gpu/gl/SkNullGLContext.cpp',
|
|
'src/gpu/GrAAConvexPathRenderer.cpp',
|
|
'src/gpu/GrAAHairLinePathRenderer.cpp',
|
|
'src/gpu/GrAARectRenderer.cpp',
|
|
'src/gpu/GrAddPathRenderers_default.cpp',
|
|
'src/gpu/GrAllocPool.cpp',
|
|
'src/gpu/GrAtlas.cpp',
|
|
'src/gpu/GrBufferAllocPool.cpp',
|
|
'src/gpu/GrCacheID.cpp',
|
|
'src/gpu/GrClipData.cpp',
|
|
'src/gpu/GrClipMaskCache.cpp',
|
|
'src/gpu/GrClipMaskManager.cpp',
|
|
'src/gpu/GrContext.cpp',
|
|
'src/gpu/GrDefaultPathRenderer.cpp',
|
|
'src/gpu/GrDrawState.cpp',
|
|
'src/gpu/GrDrawTarget.cpp',
|
|
'src/gpu/GrEffect.cpp',
|
|
'src/gpu/GrGeometryBuffer.cpp',
|
|
'src/gpu/GrGpu.cpp',
|
|
'src/gpu/GrGpuFactory.cpp',
|
|
'src/gpu/GrInOrderDrawBuffer.cpp',
|
|
'src/gpu/GrMemory.cpp',
|
|
'src/gpu/GrMemoryPool.cpp',
|
|
'src/gpu/GrOvalRenderer.cpp',
|
|
'src/gpu/GrPath.cpp',
|
|
'src/gpu/GrPathRenderer.cpp',
|
|
'src/gpu/GrPathRendererChain.cpp',
|
|
'src/gpu/GrPathUtils.cpp',
|
|
'src/gpu/GrRectanizer.cpp',
|
|
'src/gpu/GrReducedClip.cpp',
|
|
'src/gpu/GrRenderTarget.cpp',
|
|
'src/gpu/GrResource.cpp',
|
|
'src/gpu/GrResourceCache.cpp',
|
|
'src/gpu/GrSoftwarePathRenderer.cpp',
|
|
'src/gpu/GrStencil.cpp',
|
|
'src/gpu/GrStencilAndCoverPathRenderer.cpp',
|
|
'src/gpu/GrStencilBuffer.cpp',
|
|
'src/gpu/GrSurface.cpp',
|
|
'src/gpu/GrSWMaskHelper.cpp',
|
|
'src/gpu/GrTextContext.cpp',
|
|
'src/gpu/GrTextStrike.cpp',
|
|
'src/gpu/GrTexture.cpp',
|
|
'src/gpu/GrTextureAccess.cpp',
|
|
'src/gpu/SkGpuDevice.cpp',
|
|
'src/gpu/SkGr.cpp',
|
|
'src/gpu/SkGrFontScaler.cpp',
|
|
'src/gpu/SkGrPixelRef.cpp',
|
|
'src/gpu/SkGrTexturePixelRef.cpp',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'src/core/Sk64.cpp',
|
|
'src/core/SkAAClip.cpp',
|
|
'src/core/SkAdvancedTypefaceMetrics.cpp',
|
|
'src/core/SkAlphaRuns.cpp',
|
|
'src/core/SkAnnotation.cpp',
|
|
'src/core/SkBBoxHierarchy.cpp',
|
|
'src/core/SkBBoxHierarchyRecord.cpp',
|
|
'src/core/SkBBoxRecord.cpp',
|
|
'src/core/SkBitmap.cpp',
|
|
'src/core/SkBitmap_scroll.cpp',
|
|
'src/core/SkBitmapHeap.cpp',
|
|
'src/core/SkBitmapProcShader.cpp',
|
|
'src/core/SkBitmapProcState.cpp',
|
|
'src/core/SkBitmapSampler.cpp',
|
|
'src/core/SkBlitMask_D32.cpp',
|
|
'src/core/SkBlitRow_D16.cpp',
|
|
'src/core/SkBlitRow_D32.cpp',
|
|
'src/core/SkBlitRow_D4444.cpp',
|
|
'src/core/SkBlitter.cpp',
|
|
'src/core/SkBuffer.cpp',
|
|
'src/core/SkCanvas.cpp',
|
|
'src/core/SkChunkAlloc.cpp',
|
|
'src/core/SkClipStack.cpp',
|
|
'src/core/SkColor.cpp',
|
|
'src/core/SkColorFilter.cpp',
|
|
'src/core/SkColorTable.cpp',
|
|
'src/core/SkComposeShader.cpp',
|
|
'src/core/SkConfig8888.cpp',
|
|
'src/core/SkCordic.cpp',
|
|
'src/core/SkCubicClipper.cpp',
|
|
'src/core/SkData.cpp',
|
|
'src/core/SkDebug.cpp',
|
|
'src/core/SkDeque.cpp',
|
|
'src/core/SkDevice.cpp',
|
|
'src/core/SkDeviceProfile.cpp',
|
|
'src/core/SkDither.cpp',
|
|
'src/core/SkDraw.cpp',
|
|
'src/core/SkEdge.cpp',
|
|
'src/core/SkEdgeBuilder.cpp',
|
|
'src/core/SkEdgeClipper.cpp',
|
|
'src/core/SkFilterProc.cpp',
|
|
'src/core/SkFlattenable.cpp',
|
|
'src/core/SkFlattenableBuffers.cpp',
|
|
'src/core/SkFloat.cpp',
|
|
'src/core/SkFloatBits.cpp',
|
|
'src/core/SkFontDescriptor.cpp',
|
|
'src/core/SkFontHost.cpp',
|
|
'src/core/SkFontStream.cpp',
|
|
'src/core/SkGeometry.cpp',
|
|
'src/core/SkGlyphCache.cpp',
|
|
'src/core/SkGraphics.cpp',
|
|
'src/core/SkImageFilter.cpp',
|
|
'src/core/SkInstCnt.cpp',
|
|
'src/core/SkLineClipper.cpp',
|
|
'src/core/SkMallocPixelRef.cpp',
|
|
'src/core/SkMask.cpp',
|
|
'src/core/SkMaskFilter.cpp',
|
|
'src/core/SkMaskGamma.cpp',
|
|
'src/core/SkMath.cpp',
|
|
'src/core/SkMatrix.cpp',
|
|
'src/core/SkMetaData.cpp',
|
|
'src/core/SkOrderedReadBuffer.cpp',
|
|
'src/core/SkOrderedWriteBuffer.cpp',
|
|
'src/core/SkPackBits.cpp',
|
|
'src/core/SkPaint.cpp',
|
|
'src/core/SkPaintPriv.cpp',
|
|
'src/core/SkPath.cpp',
|
|
'src/core/SkPathEffect.cpp',
|
|
'src/core/SkPathHeap.cpp',
|
|
'src/core/SkPathMeasure.cpp',
|
|
'src/core/SkPicture.cpp',
|
|
'src/core/SkPictureFlat.cpp',
|
|
'src/core/SkPicturePlayback.cpp',
|
|
'src/core/SkPictureRecord.cpp',
|
|
'src/core/SkPictureStateTree.cpp',
|
|
'src/core/SkPixelRef.cpp',
|
|
'src/core/SkPoint.cpp',
|
|
'src/core/SkProcSpriteBlitter.cpp',
|
|
'src/core/SkPtrRecorder.cpp',
|
|
'src/core/SkQuadClipper.cpp',
|
|
'src/core/SkRasterClip.cpp',
|
|
'src/core/SkRasterizer.cpp',
|
|
'src/core/SkRect.cpp',
|
|
'src/core/SkRefCnt.cpp',
|
|
'src/core/SkRefDict.cpp',
|
|
'src/core/SkRegion.cpp',
|
|
'src/core/SkRegion_path.cpp',
|
|
'src/core/SkRegion_rects.cpp',
|
|
'src/core/SkRRect.cpp',
|
|
'src/core/SkRTree.cpp',
|
|
'src/core/SkScalar.cpp',
|
|
'src/core/SkScalerContext.cpp',
|
|
'src/core/SkScan.cpp',
|
|
'src/core/SkShader.cpp',
|
|
'src/core/SkSpriteBlitter_ARGB32.cpp',
|
|
'src/core/SkSpriteBlitter_RGB16.cpp',
|
|
'src/core/SkStream.cpp',
|
|
'src/core/SkString.cpp',
|
|
'src/core/SkStroke.cpp',
|
|
'src/core/SkStrokeRec.cpp',
|
|
'src/core/SkStrokerPriv.cpp',
|
|
'src/core/SkTileGrid.cpp',
|
|
'src/core/SkTileGridPicture.cpp',
|
|
'src/core/SkTLS.cpp',
|
|
'src/core/SkTSearch.cpp',
|
|
'src/core/SkTypeface.cpp',
|
|
'src/core/SkTypefaceCache.cpp',
|
|
'src/core/SkUnPreMultiply.cpp',
|
|
'src/core/SkUtils.cpp',
|
|
'src/core/SkWriter32.cpp',
|
|
'src/core/SkXfermode.cpp',
|
|
'src/effects/gradients/SkBitmapCache.cpp',
|
|
'src/effects/gradients/SkClampRange.cpp',
|
|
'src/effects/gradients/SkGradientShader.cpp',
|
|
'src/effects/gradients/SkGradientTileProc.cpp',
|
|
'src/effects/gradients/SkLinearGradient.cpp',
|
|
'src/effects/gradients/SkRadialGradient.cpp',
|
|
'src/effects/gradients/SkSweepGradient.cpp',
|
|
'src/effects/Sk1DPathEffect.cpp',
|
|
'src/effects/Sk2DPathEffect.cpp',
|
|
'src/effects/SkAvoidXfermode.cpp',
|
|
'src/effects/SkBicubicImageFilter.cpp',
|
|
'src/effects/SkBitmapSource.cpp',
|
|
'src/effects/SkBlendImageFilter.cpp',
|
|
'src/effects/SkBlurDrawLooper.cpp',
|
|
'src/effects/SkBlurImageFilter.cpp',
|
|
'src/effects/SkBlurMask.cpp',
|
|
'src/effects/SkBlurMaskFilter.cpp',
|
|
'src/effects/SkColorFilterImageFilter.cpp',
|
|
'src/effects/SkColorFilters.cpp',
|
|
'src/effects/SkColorMatrix.cpp',
|
|
'src/effects/SkColorMatrixFilter.cpp',
|
|
'src/effects/SkCornerPathEffect.cpp',
|
|
'src/effects/SkDashPathEffect.cpp',
|
|
'src/effects/SkDiscretePathEffect.cpp',
|
|
'src/effects/SkDisplacementMapEffect.cpp',
|
|
'src/effects/SkEmbossMask.cpp',
|
|
'src/effects/SkEmbossMaskFilter.cpp',
|
|
'src/effects/SkImageFilterUtils.cpp',
|
|
'src/effects/SkLayerDrawLooper.cpp',
|
|
'src/effects/SkLayerRasterizer.cpp',
|
|
'src/effects/SkLightingImageFilter.cpp',
|
|
'src/effects/SkMagnifierImageFilter.cpp',
|
|
'src/effects/SkMatrixConvolutionImageFilter.cpp',
|
|
'src/effects/SkMergeImageFilter.cpp',
|
|
'src/effects/SkMorphologyImageFilter.cpp',
|
|
'src/effects/SkOffsetImageFilter.cpp',
|
|
'src/effects/SkPixelXorXfermode.cpp',
|
|
'src/effects/SkStippleMaskFilter.cpp',
|
|
'src/effects/SkTableColorFilter.cpp',
|
|
'src/effects/SkTableMaskFilter.cpp',
|
|
'src/effects/SkTestImageFilters.cpp',
|
|
'src/image/SkDataPixelRef.cpp',
|
|
'src/image/SkImage.cpp',
|
|
'src/image/SkImage_Codec.cpp',
|
|
'src/image/SkImage_Picture.cpp',
|
|
'src/image/SkImage_Raster.cpp',
|
|
'src/image/SkImagePriv.cpp',
|
|
'src/image/SkSurface.cpp',
|
|
'src/image/SkSurface_Picture.cpp',
|
|
'src/image/SkSurface_Raster.cpp',
|
|
'src/images/SkImageDecoder.cpp',
|
|
'src/images/SkImageDecoder_Factory.cpp',
|
|
'src/images/SkImageRef.cpp',
|
|
'src/images/SkImageRef_GlobalPool.cpp',
|
|
'src/images/SkImageRefPool.cpp',
|
|
'src/images/SkImages.cpp',
|
|
'src/lazy/SkBitmapFactory.cpp',
|
|
'src/lazy/SkLazyPixelRef.cpp',
|
|
'src/pipe/SkGPipeRead.cpp',
|
|
'src/pipe/SkGPipeWrite.cpp',
|
|
'src/ports/SkGlobalInitialization_default.cpp',
|
|
'src/ports/SkMemory_malloc.cpp',
|
|
'src/ports/SkOSFile_stdio.cpp',
|
|
'src/sfnt/SkOTUtils.cpp',
|
|
'src/utils/SkBase64.cpp',
|
|
'src/utils/SkBitmapTransformer.cpp',
|
|
'src/utils/SkBitSet.cpp',
|
|
'src/utils/SkCountdown.cpp',
|
|
'src/utils/SkDeferredCanvas.cpp',
|
|
'src/utils/SkPictureUtils.cpp',
|
|
'src/utils/SkRTConf.cpp',
|
|
'src/utils/SkThreadPool.cpp',
|
|
]
|
|
|
|
# left out of UNIFIED_SOURCES for now to avoid having to patch skia. Should revisit eventually.
|
|
SOURCES += [
|
|
'src/core/SkBitmapProcState_matrixProcs.cpp',
|
|
'src/core/SkBlitter_4444.cpp',
|
|
'src/core/SkBlitter_A1.cpp',
|
|
'src/core/SkBlitter_A8.cpp',
|
|
'src/core/SkBlitter_ARGB32.cpp',
|
|
'src/core/SkBlitter_RGB16.cpp',
|
|
'src/core/SkBlitter_Sprite.cpp',
|
|
'src/core/SkScan_Antihair.cpp',
|
|
'src/core/SkScan_AntiPath.cpp',
|
|
'src/core/SkScan_Hairline.cpp',
|
|
'src/core/SkScan_Path.cpp',
|
|
'src/effects/gradients/SkTwoPointConicalGradient.cpp',
|
|
'src/effects/gradients/SkTwoPointRadialGradient.cpp',
|
|
]
|
|
|
|
# On Windows, SkCondVar needs to be built separately because it relies on
|
|
# windows.h providing such functions as InitializeConditionVariable.
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
|
SOURCES += [
|
|
'src/utils/SkCondVar.cpp',
|
|
]
|
|
else:
|
|
UNIFIED_SOURCES += [
|
|
'src/utils/SkCondVar.cpp',
|
|
]
|
|
|
|
|
|
# left out of UNIFIED_SOURCES for now; that's not C++ anyway, nothing else to unify it with
|
|
if not CONFIG['INTEL_ARCHITECTURE'] and CONFIG['CPU_ARCH'] == 'arm' and CONFIG['GNU_CC']:
|
|
SOURCES += [
|
|
'src/opts/memset.arm.S',
|
|
]
|
|
|
|
MSVC_ENABLE_PGO = True
|
|
|
|
FINAL_LIBRARY = 'gkmedias'
|
|
LOCAL_INCLUDES += [
|
|
'include/config',
|
|
'include/core',
|
|
'include/effects',
|
|
'include/gpu',
|
|
'include/images',
|
|
'include/lazy',
|
|
'include/pipe',
|
|
'include/ports',
|
|
'include/utils',
|
|
'include/utils/mac',
|
|
'include/utils/win',
|
|
'include/views',
|
|
'src/core',
|
|
'src/gpu',
|
|
'src/gpu/effects',
|
|
'src/gpu/gl',
|
|
'src/image',
|
|
'src/lazy',
|
|
'src/sfnt',
|
|
'src/utils',
|
|
'src/utils/android',
|
|
]
|
|
|
|
|
|
DEFINES['SK_A32_SHIFT'] = 24
|
|
DEFINES['SK_R32_SHIFT'] = 16
|
|
DEFINES['SK_G32_SHIFT'] = 8
|
|
DEFINES['SK_B32_SHIFT'] = 0
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] in ('android', 'gtk2', 'gtk3', 'gonk', 'cocoa'):
|
|
DEFINES['SK_USE_POSIX_THREADS'] = 1
|
|
|
|
if CONFIG['INTEL_ARCHITECTURE'] and CONFIG['HAVE_TOOLCHAIN_SUPPORT_MSSSE3']:
|
|
DEFINES['SK_BUILD_SSSE3'] = 1
|