1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE := libpdfium 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 12LOCAL_CFLAGS += -DFOXIT_CHROME_BUILD 13 14LOCAL_STATIC_LIBRARIES := libpdfiumcore 15 16# TODO: figure out why turning on exceptions requires manually linking libdl 17LOCAL_SHARED_LIBRARIES := libdl libft2 18 19LOCAL_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 35LOCAL_C_INCLUDES := \ 36 external/pdfium/core/include 37 38include $(BUILD_SHARED_LIBRARY) 39