skia2/gyp/core.gyp

336 lines
12 KiB
Plaintext
Raw Normal View History

# Core Skia library code.
{
'targets': [
{
'target_name': 'core',
'type': 'static_library',
'msvs_guid': 'B7760B5E-BFA8-486B-ACFD-49E3A6DE8E76',
'sources': [
'../src/core/ARGB32_Clamp_Bilinear_BitmapShader.h',
'../src/core/Sk64.cpp',
'../src/core/SkAAClip.cpp',
'../src/core/SkAdvancedTypefaceMetrics.cpp',
'../src/core/SkAlphaRuns.cpp',
'../src/core/SkAntiRun.h',
'../src/core/SkBitmap.cpp',
'../src/core/SkBitmapProcShader.cpp',
'../src/core/SkBitmapProcShader.h',
'../src/core/SkBitmapProcState.cpp',
'../src/core/SkBitmapProcState.h',
'../src/core/SkBitmapProcState_matrix.h',
'../src/core/SkBitmapProcState_matrixProcs.cpp',
'../src/core/SkBitmapProcState_sample.h',
'../src/core/SkBitmapSampler.cpp',
'../src/core/SkBitmapSampler.h',
'../src/core/SkBitmapSamplerTemplate.h',
'../src/core/SkBitmapShader16BilerpTemplate.h',
'../src/core/SkBitmapShaderTemplate.h',
'../src/core/SkBitmap_scroll.cpp',
'../src/core/SkBlitBWMaskTemplate.h',
'../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/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/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/SkConcaveToTriangles.cpp',
'../src/core/SkConcaveToTriangles.h',
'../src/core/SkConfig8888.cpp',
'../src/core/SkConfig8888.h',
'../src/core/SkCordic.cpp',
'../src/core/SkCordic.h',
'../src/core/SkCoreBlitters.h',
'../src/core/SkCubicClipper.cpp',
'../src/core/SkCubicClipper.h',
'../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/SkDrawProcs.h',
'../src/core/SkEdgeBuilder.cpp',
'../src/core/SkEdgeClipper.cpp',
'../src/core/SkEdge.cpp',
'../src/core/SkEdge.h',
'../src/core/SkFP.h',
'../src/core/SkFilterProc.cpp',
'../src/core/SkFilterProc.h',
'../src/core/SkFlattenable.cpp',
'../src/core/SkFloat.cpp',
'../src/core/SkFloat.h',
'../src/core/SkFloatBits.cpp',
'../src/core/SkFontHost.cpp',
'../src/core/SkGeometry.cpp',
'../src/core/SkGlyphCache.cpp',
'../src/core/SkGlyphCache.h',
'../src/core/SkGraphics.cpp',
'../src/core/SkLineClipper.cpp',
'../src/core/SkMallocPixelRef.cpp',
'../src/core/SkMask.cpp',
'../src/core/SkMaskFilter.cpp',
'../src/core/SkMath.cpp',
'../src/core/SkMatrix.cpp',
'../src/core/SkMetaData.cpp',
'../src/core/SkMMapStream.cpp',
'../src/core/SkOrderedReadBuffer.cpp',
'../src/core/SkOrderedWriteBuffer.cpp',
'../src/core/SkPackBits.cpp',
'../src/core/SkPaint.cpp',
'../src/core/SkPath.cpp',
'../src/core/SkPathEffect.cpp',
'../src/core/SkPathHeap.cpp',
'../src/core/SkPathHeap.h',
'../src/core/SkPathMeasure.cpp',
'../src/core/SkPicture.cpp',
'../src/core/SkPictureFlat.cpp',
'../src/core/SkPictureFlat.h',
'../src/core/SkPicturePlayback.cpp',
'../src/core/SkPicturePlayback.h',
'../src/core/SkPictureRecord.cpp',
'../src/core/SkPictureRecord.h',
'../src/core/SkPixelRef.cpp',
'../src/core/SkPoint.cpp',
'../src/core/SkProcSpriteBlitter.cpp',
'../src/core/SkPtrRecorder.cpp',
'../src/core/SkQuadClipper.cpp',
'../src/core/SkQuadClipper.h',
'../src/core/SkRasterClip.cpp',
'../src/core/SkRasterizer.cpp',
'../src/core/SkRect.cpp',
'../src/core/SkRefDict.cpp',
'../src/core/SkRegion.cpp',
'../src/core/SkRegionPriv.h',
'../src/core/SkRegion_path.cpp',
'../src/core/SkScalar.cpp',
'../src/core/SkScalerContext.cpp',
'../src/core/SkScan.cpp',
'../src/core/SkScanPriv.h',
'../src/core/SkScan_AntiPath.cpp',
'../src/core/SkScan_Antihair.cpp',
'../src/core/SkScan_Hairline.cpp',
'../src/core/SkScan_Path.cpp',
'../src/core/SkShader.cpp',
'../src/core/SkShape.cpp',
'../src/core/SkSpriteBlitter_ARGB32.cpp',
'../src/core/SkSpriteBlitter_RGB16.cpp',
'../src/core/SkSinTable.h',
'../src/core/SkSpriteBlitter.h',
'../src/core/SkSpriteBlitterTemplate.h',
'../src/core/SkStream.cpp',
'../src/core/SkString.cpp',
'../src/core/SkStroke.h',
'../src/core/SkStroke.cpp',
'../src/core/SkStrokerPriv.cpp',
'../src/core/SkStrokerPriv.h',
'../src/core/SkTextFormatParams.h',
'../src/core/SkTLS.cpp',
'../src/core/SkTSearch.cpp',
'../src/core/SkTSort.h',
'../src/core/SkTemplatesPriv.h',
'../src/core/SkTypeface.cpp',
'../src/core/SkTypefaceCache.cpp',
'../src/core/SkTypefaceCache.h',
'../src/core/SkUnPreMultiply.cpp',
'../src/core/SkUtils.cpp',
'../src/core/SkWriter32.cpp',
'../src/core/SkXfermode.cpp',
'../include/core/Sk64.h',
'../include/core/SkAdvancedTypefaceMetrics.h',
'../include/core/SkAutoKern.h',
'../include/core/SkBitmap.h',
'../include/core/SkBlitRow.h',
'../include/core/SkBlitter.h',
'../include/core/SkBounder.h',
'../include/core/SkBuffer.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/SkComposeShader.h',
'../include/core/SkData.h',
'../include/core/SkDeque.h',
'../include/core/SkDescriptor.h',
'../include/core/SkDevice.h',
'../include/core/SkDither.h',
'../include/core/SkDraw.h',
'../include/core/SkDrawFilter.h',
'../include/core/SkDrawLooper.h',
'../include/core/SkEndian.h',
'../include/core/SkFDot6.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',
'../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/SkMMapStream.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/SkPerspIter.h',
'../include/core/SkPicture.h',
'../include/core/SkPixelRef.h',
'../include/core/SkPoint.h',
'../include/core/SkPtrRecorder.h',
'../include/core/SkRandom.h',
'../include/core/SkRasterizer.h',
'../include/core/SkReader32.h',
'../include/core/SkRect.h',
'../include/core/SkRefCnt.h',
'../include/core/SkRefDict.h',
'../include/core/SkRegion.h',
'../include/core/SkScalar.h',
'../include/core/SkScalarCompare.h',
'../include/core/SkScalerContext.h',
'../include/core/SkScan.h',
'../include/core/SkShader.h',
'../include/core/SkStream.h',
'../include/core/SkString.h',
'../include/core/SkTArray.h',
'../include/core/SkTDArray.h',
'../include/core/SkTDStack.h',
'../include/core/SkTDict.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/SkTLazy.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',
arm: First step towards dynamic NEON support. This patch adds minimal support for dynamic ARM NEON support, i.e. the ability to probe the CPU at runtime for NEON and provide alternate code paths when it is available. - Add include/core/SkUtilsArm.h, which declares a few helper macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy function 'sk_cpu_arm_has_neon()' which returns true if the target CPU supports the ARM NEON instruction set. Note that the header is in include/core/ because it will have to be included from NEON-specific code under src/code/ It would probably be more logical to put it under include/opts/ instead, but this would require moving all the NEON-specific stuff under src/code/ into src/opts/, which is not trivial due to the way the code is currently architected. - Add src/core/SkUtilsArm.cpp which implements 'sk_cpu_arm_has_neon' for ARM-based Linux systems, only when SK_NEON_ARM_IS_DYNAMIC is true. (For other cases, 'sk_cpu_arm_has_neon' is an inline function that returns a constant 'true' or 'false' value). There is no user-level accessible CPUID instruction on ARM, so do all CPU feature probing by parsing /proc/cpuinfo. This is Linux-specific. For Debug build types, the CPU probing result is printed to the Android log (or Linux command-line) for easier debugging. - Create a new 'opts_neon' target (static library) which shall contain all the NEON-specific code paths for the library. This is necessary because -mfpu=neon impacts also non-scalar code. Just like with -mssse3 on x86, we can't build the rest of the library with this flag. Note that for now, we only include memset16_neon and memset32_neon in this library. - Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC properly. Compared to a 'xoom' build, the only difference is the use of NEON-optimized memset16/32 functions. Later patches will move more NEON-specific code paths to 'opts_neon'. Review URL: https://codereview.appspot.com/6247058 git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-05-30 13:54:41 +00:00
'../include/core/SkUtilsArm.h',
'../include/core/SkWeakRefCnt.h',
'../include/core/SkWriter32.h',
'../include/core/SkXfermode.h',
],
'include_dirs': [
'../include/config',
'../include/core',
'../include/ports',
'../include/xml',
'../src/core',
],
'msvs_disabled_warnings': [4244, 4267,4345, 4390, 4554, 4800],
'conditions': [
[ 'skia_os in ["linux", "freebsd", "openbsd", "solaris"]', {
'cflags': [
'-Wno-unused',
'-Wno-unused-function',
],
'link_settings': {
'libraries': [
'-lfreetype',
'-lpthread',
],
},
}],
[ 'skia_os == "mac"', {
'include_dirs': [
'../include/utils/mac',
'../third_party/freetype/include/**',
],
'sources': [
'../include/utils/mac/SkCGUtils.h',
],
'link_settings': {
'libraries': [
'$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework',
],
},
}],
[ 'skia_os == "ios"', {
'include_dirs': [
'../include/utils/ios',
],
'sources': [
'../include/utils/mac/SkCGUtils.h',
],
'link_settings': {
'libraries': [
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreFoundation.framework',
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreGraphics.framework',
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/CoreText.framework',
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework',
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/Foundation.framework',
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework',
'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/OpenGLES.framework',
],
},
}],
[ 'skia_os == "win"', {
'include_dirs': [
'config/win',
],
'sources!': [
'../include/core/SkMMapStream.h',
'../src/core/SkMMapStream.cpp',
],
}],
[ 'skia_os == "android"', {
'dependencies': [
'android_system.gyp:ft2',
],
arm: First step towards dynamic NEON support. This patch adds minimal support for dynamic ARM NEON support, i.e. the ability to probe the CPU at runtime for NEON and provide alternate code paths when it is available. - Add include/core/SkUtilsArm.h, which declares a few helper macros (e.g. SK_NEON_ARM_IS_DYNAMIC), plus the handy function 'sk_cpu_arm_has_neon()' which returns true if the target CPU supports the ARM NEON instruction set. Note that the header is in include/core/ because it will have to be included from NEON-specific code under src/code/ It would probably be more logical to put it under include/opts/ instead, but this would require moving all the NEON-specific stuff under src/code/ into src/opts/, which is not trivial due to the way the code is currently architected. - Add src/core/SkUtilsArm.cpp which implements 'sk_cpu_arm_has_neon' for ARM-based Linux systems, only when SK_NEON_ARM_IS_DYNAMIC is true. (For other cases, 'sk_cpu_arm_has_neon' is an inline function that returns a constant 'true' or 'false' value). There is no user-level accessible CPUID instruction on ARM, so do all CPU feature probing by parsing /proc/cpuinfo. This is Linux-specific. For Debug build types, the CPU probing result is printed to the Android log (or Linux command-line) for easier debugging. - Create a new 'opts_neon' target (static library) which shall contain all the NEON-specific code paths for the library. This is necessary because -mfpu=neon impacts also non-scalar code. Just like with -mssse3 on x86, we can't build the rest of the library with this flag. Note that for now, we only include memset16_neon and memset32_neon in this library. - Modify opts_check_arm.cpp to implement SK_ARM_NEON_IS_DYNAMIC properly. Compared to a 'xoom' build, the only difference is the use of NEON-optimized memset16/32 functions. Later patches will move more NEON-specific code paths to 'opts_neon'. Review URL: https://codereview.appspot.com/6247058 git-svn-id: http://skia.googlecode.com/svn/trunk@4069 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-05-30 13:54:41 +00:00
}],
[ 'skia_os == "android" and skia_target_arch == "arm" and armv7 == 1', {
# The code in SkUtilsArm.cpp can be used on an ARM-based Linux system, not only Android.
'sources': [
'../src/core/SkUtilsArm.cpp',
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'config',
'../include/config',
'../include/core',
'ext',
],
},
'dependencies': [
'opts.gyp:opts'
],
},
],
}
# Local Variables:
# tab-width:2
# indent-tabs-mode:nil
# End:
# vim: set expandtab tabstop=2 shiftwidth=2: