1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE := libpdfium 6 7 LOCAL_ARM_MODE := arm 8 LOCAL_NDK_STL_VARIANT := gnustl_static 9 10 LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays -fexceptions 11 LOCAL_CFLAGS += -Wno-non-virtual-dtor -Wall 12 LOCAL_CFLAGS += -DFOXIT_CHROME_BUILD 13 14 LOCAL_STATIC_LIBRARIES := libpdfiumcore 15 16 # TODO: figure out why turning on exceptions requires manually linking libdl 17 LOCAL_SHARED_LIBRARIES := libdl libft2 18 19 LOCAL_SRC_FILES := \ 20 src/fpdfdoc.cpp \ 21 src/fpdfeditimg.cpp \ 22 src/fpdfeditpage.cpp \ 23 src/fpdfppo.cpp \ 24 src/fpdfsave.cpp \ 25 src/fpdftext.cpp \ 26 src/fpdfview.cpp \ 27 src/fpdf_dataavail.cpp \ 28 src/fpdf_ext.cpp \ 29 src/fpdf_flatten.cpp \ 30 src/fpdf_progressive.cpp \ 31 src/fpdf_searchex.cpp \ 32 src/fpdf_transformpage.cpp \ 33 src/fsdk_rendercontext.cpp 34 35 LOCAL_C_INCLUDES := \ 36 external/pdfium/core/include 37 38 include $(BUILD_SHARED_LIBRARY) 39