1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE:= libpdfiumfpdfdoc 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-unused-parameter 17LOCAL_CLANG_CFLAGS += -Wno-sign-compare 18 19LOCAL_SRC_FILES := \ 20 src/fpdfdoc/doc_action.cpp \ 21 src/fpdfdoc/doc_annot.cpp \ 22 src/fpdfdoc/doc_ap.cpp \ 23 src/fpdfdoc/doc_basic.cpp \ 24 src/fpdfdoc/doc_bookmark.cpp \ 25 src/fpdfdoc/doc_form.cpp \ 26 src/fpdfdoc/doc_formcontrol.cpp \ 27 src/fpdfdoc/doc_formfield.cpp \ 28 src/fpdfdoc/doc_link.cpp \ 29 src/fpdfdoc/doc_metadata.cpp \ 30 src/fpdfdoc/doc_ocg.cpp \ 31 src/fpdfdoc/doc_tagged.cpp \ 32 src/fpdfdoc/doc_utils.cpp \ 33 src/fpdfdoc/doc_viewerPreferences.cpp \ 34 src/fpdfdoc/doc_vt.cpp \ 35 src/fpdfdoc/doc_vtmodule.cpp 36 37LOCAL_C_INCLUDES := \ 38 external/pdfium \ 39 external/freetype/include \ 40 external/freetype/include/freetype 41 42include $(BUILD_STATIC_LIBRARY) 43