1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE:= libpdfiumfxcodec 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 -DOPJ_STATIC \ 12 -DV8_DEPRECATION_WARNINGS -D_CRT_SECURE_NO_WARNINGS 13 14# Mask some warnings. These are benign, but we probably want to fix them 15# upstream at some point. 16LOCAL_CFLAGS += -Wno-sign-compare -Wno-pointer-to-int-cast -Wno-unused-parameter 17LOCAL_CLANG_CFLAGS += -Wno-sign-compare 18 19LOCAL_SHARED_LIBRARIES := libz 20 21LOCAL_SRC_FILES := \ 22 src/fxcodec/codec/fx_codec.cpp \ 23 src/fxcodec/codec/fx_codec_fax.cpp \ 24 src/fxcodec/codec/fx_codec_flate.cpp \ 25 src/fxcodec/codec/fx_codec_icc.cpp \ 26 src/fxcodec/codec/fx_codec_jbig.cpp \ 27 src/fxcodec/codec/fx_codec_jpeg.cpp \ 28 src/fxcodec/codec/fx_codec_jpx_opj.cpp \ 29 src/fxcodec/jbig2/JBig2_ArithDecoder.cpp \ 30 src/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp \ 31 src/fxcodec/jbig2/JBig2_BitStream.cpp \ 32 src/fxcodec/jbig2/JBig2_Context.cpp \ 33 src/fxcodec/jbig2/JBig2_GrdProc.cpp \ 34 src/fxcodec/jbig2/JBig2_GrrdProc.cpp \ 35 src/fxcodec/jbig2/JBig2_GsidProc.cpp \ 36 src/fxcodec/jbig2/JBig2_HtrdProc.cpp \ 37 src/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp \ 38 src/fxcodec/jbig2/JBig2_HuffmanTable.cpp \ 39 src/fxcodec/jbig2/JBig2_Image.cpp \ 40 src/fxcodec/jbig2/JBig2_PatternDict.cpp \ 41 src/fxcodec/jbig2/JBig2_PddProc.cpp \ 42 src/fxcodec/jbig2/JBig2_SddProc.cpp \ 43 src/fxcodec/jbig2/JBig2_Segment.cpp \ 44 src/fxcodec/jbig2/JBig2_SymbolDict.cpp \ 45 src/fxcodec/jbig2/JBig2_TrdProc.cpp 46 47LOCAL_C_INCLUDES := \ 48 external/pdfium \ 49 external/freetype/include \ 50 external/freetype/include/freetype 51 52include $(BUILD_STATIC_LIBRARY) 53