1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE := libpdfiumopenjpeg 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-sign-compare -Wno-unused-parameter 16 17LOCAL_SRC_FILES := \ 18 libopenjpeg20/bio.c \ 19 libopenjpeg20/cio.c \ 20 libopenjpeg20/dwt.c \ 21 libopenjpeg20/event.c \ 22 libopenjpeg20/function_list.c \ 23 libopenjpeg20/image.c \ 24 libopenjpeg20/invert.c \ 25 libopenjpeg20/j2k.c \ 26 libopenjpeg20/jp2.c \ 27 libopenjpeg20/mct.c \ 28 libopenjpeg20/mqc.c \ 29 libopenjpeg20/openjpeg.c \ 30 libopenjpeg20/opj_clock.c \ 31 libopenjpeg20/pi.c \ 32 libopenjpeg20/raw.c \ 33 libopenjpeg20/t1.c \ 34 libopenjpeg20/t2.c \ 35 libopenjpeg20/tcd.c \ 36 libopenjpeg20/tgt.c 37 38LOCAL_C_INCLUDES := \ 39 external/pdfium 40 41include $(BUILD_STATIC_LIBRARY) 42