1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE:= libpdfiumfpdftext 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 -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. 16 LOCAL_CFLAGS += -Wno-sign-compare -Wno-unused-parameter 17 LOCAL_CLANG_CFLAGS += -Wno-sign-compare 18 19 LOCAL_SRC_FILES := \ 20 core/fpdftext/cpdf_linkextract.cpp \ 21 core/fpdftext/cpdf_textpage.cpp \ 22 core/fpdftext/cpdf_textpagefind.cpp \ 23 core/fpdftext/unicodenormalizationdata.cpp \ 24 25 LOCAL_C_INCLUDES := \ 26 external/pdfium \ 27 external/freetype/include \ 28 external/freetype/include/freetype 29 30 include $(BUILD_STATIC_LIBRARY) 31