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    core/fxcodec/codec/fx_codec.cpp \
23    core/fxcodec/codec/fx_codec_fax.cpp \
24    core/fxcodec/codec/fx_codec_flate.cpp \
25    core/fxcodec/codec/fx_codec_icc.cpp \
26    core/fxcodec/codec/fx_codec_jbig.cpp \
27    core/fxcodec/codec/fx_codec_jpeg.cpp \
28    core/fxcodec/codec/fx_codec_jpx_opj.cpp \
29    core/fxcodec/jbig2/JBig2_ArithDecoder.cpp \
30    core/fxcodec/jbig2/JBig2_ArithIntDecoder.cpp \
31    core/fxcodec/jbig2/JBig2_BitStream.cpp \
32    core/fxcodec/jbig2/JBig2_Context.cpp \
33    core/fxcodec/jbig2/JBig2_GrdProc.cpp \
34    core/fxcodec/jbig2/JBig2_GrrdProc.cpp \
35    core/fxcodec/jbig2/JBig2_GsidProc.cpp \
36    core/fxcodec/jbig2/JBig2_HtrdProc.cpp \
37    core/fxcodec/jbig2/JBig2_HuffmanDecoder.cpp \
38    core/fxcodec/jbig2/JBig2_HuffmanTable.cpp \
39    core/fxcodec/jbig2/JBig2_HuffmanTable_Standard.cpp \
40    core/fxcodec/jbig2/JBig2_Image.cpp \
41    core/fxcodec/jbig2/JBig2_PatternDict.cpp \
42    core/fxcodec/jbig2/JBig2_PddProc.cpp \
43    core/fxcodec/jbig2/JBig2_SddProc.cpp \
44    core/fxcodec/jbig2/JBig2_Segment.cpp \
45    core/fxcodec/jbig2/JBig2_SymbolDict.cpp \
46    core/fxcodec/jbig2/JBig2_TrdProc.cpp \
47
48LOCAL_C_INCLUDES := \
49    external/pdfium \
50    external/freetype/include \
51    external/freetype/include/freetype
52
53include $(BUILD_STATIC_LIBRARY)
54