1 LOCAL_PATH:= $(call my-dir) 2 include $(CLEAR_VARS) 3 4 LOCAL_ARM_MODE := arm 5 6 LOCAL_SRC_FILES := \ 7 jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \ 8 jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \ 9 jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \ 10 jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \ 11 jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \ 12 jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \ 13 jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \ 14 jquant2.c jutils.c jmemmgr.c armv6_idct.S 15 16 # use ashmem as libjpeg decoder's backing store 17 LOCAL_CFLAGS += -DUSE_ANDROID_ASHMEM 18 LOCAL_SRC_FILES += \ 19 jmem-ashmem.c 20 21 # the original android memory manager. 22 # use sdcard as libjpeg decoder's backing store 23 #LOCAL_SRC_FILES += \ 24 # jmem-android.c 25 26 LOCAL_CFLAGS += -DAVOID_TABLES 27 LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays 28 #LOCAL_CFLAGS += -march=armv6j 29 30 # enable tile based decode 31 LOCAL_CFLAGS += -DANDROID_TILE_BASED_DECODE 32 33 # enable armv6 idct assembly 34 LOCAL_CFLAGS += -DANDROID_ARMV6_IDCT 35 36 LOCAL_MODULE:= libjpeg 37 38 LOCAL_SHARED_LIBRARIES := \ 39 libcutils 40 41 include $(BUILD_SHARED_LIBRARY) 42