1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_ARM_MODE := arm 5 6LOCAL_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 17LOCAL_CFLAGS += -DUSE_ANDROID_ASHMEM 18LOCAL_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 26LOCAL_CFLAGS += -DAVOID_TABLES 27LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays 28#LOCAL_CFLAGS += -march=armv6j 29 30# enable tile based decode 31LOCAL_CFLAGS += -DANDROID_TILE_BASED_DECODE 32 33ifeq ($(TARGET_ARCH_VARIANT),x86-atom) 34LOCAL_CFLAGS += -DANDROID_INTELSSE2_IDCT 35LOCAL_SRC_FILES += jidctintelsse.c 36else 37# enable armv6 idct assembly 38LOCAL_CFLAGS += -DANDROID_ARMV6_IDCT 39endif 40 41LOCAL_MODULE:= libjpeg 42 43LOCAL_SHARED_LIBRARIES := \ 44 libcutils 45 46include $(BUILD_SHARED_LIBRARY) 47