1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE := libpdfiumjpeg 6 7LOCAL_ARM_MODE := arm 8LOCAL_NDK_STL_VARIANT := gnustl_static 9 10LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays -fexceptions 11LOCAL_CFLAGS += -Wno-non-virtual-dtor -Wall 12 13# Mask some warnings. These are benign, but we probably want to fix them 14# upstream at some point. 15LOCAL_CFLAGS += -Wno-shift-negative-value -Wno-unused-parameter 16 17LOCAL_SRC_FILES := \ 18 libjpeg/fpdfapi_jcapimin.c \ 19 libjpeg/fpdfapi_jcapistd.c \ 20 libjpeg/fpdfapi_jccoefct.c \ 21 libjpeg/fpdfapi_jccolor.c \ 22 libjpeg/fpdfapi_jcdctmgr.c \ 23 libjpeg/fpdfapi_jchuff.c \ 24 libjpeg/fpdfapi_jcinit.c \ 25 libjpeg/fpdfapi_jcmainct.c \ 26 libjpeg/fpdfapi_jcmarker.c \ 27 libjpeg/fpdfapi_jcmaster.c \ 28 libjpeg/fpdfapi_jcomapi.c \ 29 libjpeg/fpdfapi_jcparam.c \ 30 libjpeg/fpdfapi_jcphuff.c \ 31 libjpeg/fpdfapi_jcprepct.c \ 32 libjpeg/fpdfapi_jcsample.c \ 33 libjpeg/fpdfapi_jctrans.c \ 34 libjpeg/fpdfapi_jdapimin.c \ 35 libjpeg/fpdfapi_jdapistd.c \ 36 libjpeg/fpdfapi_jdcoefct.c \ 37 libjpeg/fpdfapi_jdcolor.c \ 38 libjpeg/fpdfapi_jddctmgr.c \ 39 libjpeg/fpdfapi_jdhuff.c \ 40 libjpeg/fpdfapi_jdinput.c \ 41 libjpeg/fpdfapi_jdmainct.c \ 42 libjpeg/fpdfapi_jdmarker.c \ 43 libjpeg/fpdfapi_jdmaster.c \ 44 libjpeg/fpdfapi_jdmerge.c \ 45 libjpeg/fpdfapi_jdphuff.c \ 46 libjpeg/fpdfapi_jdpostct.c \ 47 libjpeg/fpdfapi_jdsample.c \ 48 libjpeg/fpdfapi_jdtrans.c \ 49 libjpeg/fpdfapi_jerror.c \ 50 libjpeg/fpdfapi_jfdctfst.c \ 51 libjpeg/fpdfapi_jfdctint.c \ 52 libjpeg/fpdfapi_jidctfst.c \ 53 libjpeg/fpdfapi_jidctint.c \ 54 libjpeg/fpdfapi_jidctred.c \ 55 libjpeg/fpdfapi_jmemmgr.c \ 56 libjpeg/fpdfapi_jmemnobs.c \ 57 libjpeg/fpdfapi_jutils.c 58 59LOCAL_C_INCLUDES := \ 60 external/pdfium 61 62include $(BUILD_STATIC_LIBRARY) 63