diff options
author | The Android Open Source Project <initial-contribution@android.com> | 2009-02-19 10:57:31 -0800 |
---|---|---|
committer | The Android Open Source Project <initial-contribution@android.com> | 2009-02-19 10:57:31 -0800 |
commit | 3f1a2840ec02c62cd19a80fef696accc9474c9d3 (patch) | |
tree | 17c8c744b078bbdefd9c1b5c49b8aaec4a26e2d9 /Android.mk | |
parent | a89f6ab5ed3893035d5bf509e6ba6a985efe64e4 (diff) | |
download | external_skia-3f1a2840ec02c62cd19a80fef696accc9474c9d3.zip external_skia-3f1a2840ec02c62cd19a80fef696accc9474c9d3.tar.gz external_skia-3f1a2840ec02c62cd19a80fef696accc9474c9d3.tar.bz2 |
auto import from //branches/cupcake/...@132276
Diffstat (limited to 'Android.mk')
-rw-r--r-- | Android.mk | 258 |
1 files changed, 258 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk new file mode 100644 index 0000000..0b7e1ab --- /dev/null +++ b/Android.mk @@ -0,0 +1,258 @@ +LOCAL_PATH:= $(call my-dir) + +############################################################# +# build the corecg library +# + +include $(CLEAR_VARS) + +LOCAL_ARM_MODE := arm + +LOCAL_SRC_FILES:= \ + src/core/Sk64.cpp \ + src/core/SkBuffer.cpp \ + src/core/SkChunkAlloc.cpp \ + src/core/SkCordic.cpp \ + src/core/SkDebug.cpp \ + src/core/SkDebug_stdio.cpp \ + src/core/SkFloatBits.cpp \ + src/core/SkMath.cpp \ + src/core/SkMatrix.cpp \ + src/core/SkMemory_stdlib.cpp \ + src/core/SkPoint.cpp \ + src/core/SkRect.cpp \ + src/core/SkRegion.cpp \ + src/core/SkString.cpp \ + src/core/SkUtils.cpp \ + +LOCAL_SHARED_LIBRARIES := \ + libcutils \ + libutils + +LOCAL_C_INCLUDES += \ + $(LOCAL_PATH)/include/core + +#LOCAL_CFLAGS+= +#LOCAL_LDFLAGS:= + +LOCAL_MODULE:= libcorecg + +LOCAL_CFLAGS += -fstrict-aliasing + +ifeq ($(TARGET_ARCH),arm) + LOCAL_CFLAGS += -fomit-frame-pointer +endif + +include $(BUILD_SHARED_LIBRARY) + +############################################################# +# build the main sgl library +# + +include $(CLEAR_VARS) + +LOCAL_ARM_MODE := arm + +LOCAL_SRC_FILES:= \ + src/effects/Sk1DPathEffect.cpp \ + src/effects/Sk2DPathEffect.cpp \ + src/effects/SkAvoidXfermode.cpp \ + src/effects/SkBlurDrawLooper.cpp \ + src/effects/SkBlurMask.cpp \ + src/effects/SkBlurMaskFilter.cpp \ + src/effects/SkColorFilters.cpp \ + src/effects/SkColorMatrixFilter.cpp \ + src/effects/SkCornerPathEffect.cpp \ + src/effects/SkDashPathEffect.cpp \ + src/effects/SkDiscretePathEffect.cpp \ + src/effects/SkEmbossMask.cpp \ + src/effects/SkEmbossMaskFilter.cpp \ + src/effects/SkGradientShader.cpp \ + src/effects/SkLayerDrawLooper.cpp \ + src/effects/SkLayerRasterizer.cpp \ + src/effects/SkPaintFlagsDrawFilter.cpp \ + src/effects/SkPixelXorXfermode.cpp \ + src/effects/SkTransparentShader.cpp \ + src/images/bmpdecoderhelper.cpp \ + src/images/SkFDStream.cpp \ + src/images/SkFlipPixelRef.cpp \ + src/images/SkImageDecoder.cpp \ + src/images/SkImageDecoder_libbmp.cpp \ + src/images/SkImageDecoder_libgif.cpp \ + src/images/SkImageDecoder_libjpeg.cpp \ + src/images/SkImageDecoder_libpng.cpp \ + src/images/SkImageDecoder_libico.cpp \ + src/images/SkImageDecoder_wbmp.cpp \ + src/images/SkImageEncoder.cpp \ + src/images/SkImageRef.cpp \ + src/images/SkImageRef_GlobalPool.cpp \ + src/images/SkImageRefPool.cpp \ + src/images/SkMovie.cpp \ + src/images/SkMovie_gif.cpp \ + src/images/SkPageFlipper.cpp \ + src/images/SkScaledBitmapSampler.cpp \ + src/images/SkCreateRLEPixelRef.cpp \ + src/images/SkImageDecoder_Factory.cpp \ + src/images/SkImageEncoder_Factory.cpp \ + src/ports/SkFontHost_android.cpp \ + src/ports/SkFontHost_gamma.cpp \ + src/ports/SkFontHost_FreeType.cpp \ + src/ports/SkGlobals_global.cpp \ + src/ports/SkImageRef_ashmem.cpp \ + src/ports/SkOSFile_stdio.cpp \ + src/ports/SkTime_Unix.cpp \ + src/ports/SkXMLPullParser_expat.cpp \ + src/core/SkAlphaRuns.cpp \ + src/core/SkBitmap.cpp \ + src/core/SkBitmap_scroll.cpp \ + src/core/SkBitmapProcShader.cpp \ + src/core/SkBitmapProcState.cpp \ + src/core/SkBitmapProcState_matrixProcs.cpp \ + src/core/SkBitmapSampler.cpp \ + src/core/SkBitmapShader.cpp \ + src/core/SkBlitRow_D16.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/SkCanvas.cpp \ + src/core/SkColor.cpp \ + src/core/SkColorFilter.cpp \ + src/core/SkColorTable.cpp \ + src/core/SkComposeShader.cpp \ + src/core/SkDeque.cpp \ + src/core/SkDevice.cpp \ + src/core/SkDither.cpp \ + src/core/SkDraw.cpp \ + src/core/SkEdge.cpp \ + src/core/SkFilterProc.cpp \ + src/core/SkFlattenable.cpp \ + src/core/SkGeometry.cpp \ + src/core/SkGlobals.cpp \ + src/core/SkGlyphCache.cpp \ + src/core/SkGraphics.cpp \ + src/core/SkMMapStream.cpp \ + src/core/SkMask.cpp \ + src/core/SkMaskFilter.cpp \ + src/core/SkPackBits.cpp \ + src/core/SkPaint.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/SkPixelRef.cpp \ + src/core/SkProcSpriteBlitter.cpp \ + src/core/SkPtrRecorder.cpp \ + src/core/SkQuadClipper.cpp \ + src/core/SkRasterizer.cpp \ + src/core/SkRefCnt.cpp \ + src/core/SkRegion_path.cpp \ + src/core/SkScalerContext.cpp \ + src/core/SkScan.cpp \ + 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/SkSpriteBlitter_ARGB32.cpp \ + src/core/SkSpriteBlitter_RGB16.cpp \ + src/core/SkStream.cpp \ + src/core/SkStroke.cpp \ + src/core/SkStrokerPriv.cpp \ + src/core/SkTSearch.cpp \ + src/core/SkTypeface.cpp \ + src/core/SkUnPreMultiply.cpp \ + src/core/SkXfermode.cpp \ + src/core/SkWriter32.cpp \ + src/utils/SkCamera.cpp \ + src/utils/SkDumpCanvas.cpp \ + src/utils/SkInterpolator.cpp \ + src/utils/SkNinePatch.cpp \ + src/utils/SkProxyCanvas.cpp + +LOCAL_SHARED_LIBRARIES := \ + libcutils \ + libutils \ + libcorecg \ + libexpat \ + libz + +LOCAL_STATIC_LIBRARIES := \ + libft2 \ + libpng \ + libgif \ + libjpeg + +LOCAL_C_INCLUDES += \ + $(LOCAL_PATH)/src/core \ + $(LOCAL_PATH)/include/core \ + $(LOCAL_PATH)/include/effects \ + $(LOCAL_PATH)/include/images \ + $(LOCAL_PATH)/include/utils \ + $(LOCAL_PATH)/include/xml \ + external/freetype/include \ + external/zlib \ + external/libpng \ + external/giflib \ + external/expat/lib \ + external/jpeg + +LOCAL_CFLAGS += -fpic -fstrict-aliasing + +ifeq ($(NO_FALLBACK_FONT),true) + LOCAL_CFLAGS += -DNO_FALLBACK_FONT +endif + +LOCAL_LDLIBS += -lpthread + +LOCAL_MODULE:= libsgl + +include $(BUILD_SHARED_LIBRARY) + +############################################################# +# Build the skia-opengl glue library +# + +include $(CLEAR_VARS) + +LOCAL_PRELINK_MODULE := false + +LOCAL_ARM_MODE := arm + +LOCAL_SRC_FILES:= \ + src/gl/SkGL.cpp \ + src/gl/SkGLCanvas.cpp \ + src/gl/SkGLDevice.cpp \ + src/gl/SkGLDevice_SWLayer.cpp \ + src/gl/SkGLTextCache.cpp \ + src/gl/SkTextureCache.cpp + +LOCAL_SHARED_LIBRARIES := \ + libcutils \ + libutils \ + libsgl \ + libcorecg \ + libGLESv1_CM + +LOCAL_C_INCLUDES += \ + $(LOCAL_PATH)/src/core \ + $(LOCAL_PATH)/src/gl \ + $(LOCAL_PATH)/include/core \ + $(LOCAL_PATH)/include/effects \ + $(LOCAL_PATH)/include/utils + +LOCAL_CFLAGS += -fpic -fstrict-aliasing + +LOCAL_LDLIBS += -lpthread + +LOCAL_MODULE:= libskiagl + +include $(BUILD_SHARED_LIBRARY) |