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    core/fpdfdoc/cline.cpp \
21    core/fpdfdoc/clines.cpp \
22    core/fpdfdoc/cpdf_aaction.cpp \
23    core/fpdfdoc/cpdf_action.cpp \
24    core/fpdfdoc/cpdf_actionfields.cpp \
25    core/fpdfdoc/cpdf_annot.cpp \
26    core/fpdfdoc/cpdf_annotlist.cpp \
27    core/fpdfdoc/cpdf_apsettings.cpp \
28    core/fpdfdoc/cpdf_bookmark.cpp \
29    core/fpdfdoc/cpdf_bookmarktree.cpp \
30    core/fpdfdoc/cpdf_defaultappearance.cpp \
31    core/fpdfdoc/cpdf_dest.cpp \
32    core/fpdfdoc/cpdf_docjsactions.cpp \
33    core/fpdfdoc/cpdf_filespec.cpp \
34    core/fpdfdoc/cpdf_formcontrol.cpp \
35    core/fpdfdoc/cpdf_formfield.cpp \
36    core/fpdfdoc/cpdf_iconfit.cpp \
37    core/fpdfdoc/cpdf_interform.cpp \
38    core/fpdfdoc/cpdf_link.cpp \
39    core/fpdfdoc/cpdf_linklist.cpp \
40    core/fpdfdoc/cpdf_metadata.cpp \
41    core/fpdfdoc/cpdf_nametree.cpp \
42    core/fpdfdoc/cpdf_numbertree.cpp \
43    core/fpdfdoc/cpdf_occontext.cpp \
44    core/fpdfdoc/cpdf_pagelabel.cpp \
45    core/fpdfdoc/cpdf_variabletext.cpp \
46    core/fpdfdoc/cpdf_viewerpreferences.cpp \
47    core/fpdfdoc/cpvt_color.cpp \
48    core/fpdfdoc/cpvt_fontmap.cpp \
49    core/fpdfdoc/cpvt_generateap.cpp \
50    core/fpdfdoc/cpvt_sectioninfo.cpp \
51    core/fpdfdoc/cpvt_wordinfo.cpp \
52    core/fpdfdoc/csection.cpp \
53    core/fpdfdoc/ctypeset.cpp \
54    core/fpdfdoc/doc_tagged.cpp \
55
56LOCAL_C_INCLUDES := \
57    external/pdfium \
58    external/freetype/include \
59    external/freetype/include/freetype
60
61include $(BUILD_STATIC_LIBRARY)
62