1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_MODULE:= libpdfiumfpdfapi
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 -Wno-missing-field-initializers
17LOCAL_CLANG_CFLAGS += -Wno-sign-compare
18
19LOCAL_SRC_FILES := \
20    src/fpdfapi/fpdf_basic_module.cpp \
21    src/fpdfapi/fpdf_cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp \
22    src/fpdfapi/fpdf_cmaps/CNS1/B5pc-H_0.cpp \
23    src/fpdfapi/fpdf_cmaps/CNS1/B5pc-V_0.cpp \
24    src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-H_0.cpp \
25    src/fpdfapi/fpdf_cmaps/CNS1/CNS-EUC-V_0.cpp \
26    src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-H_0.cpp \
27    src/fpdfapi/fpdf_cmaps/CNS1/ETen-B5-V_0.cpp \
28    src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-H_0.cpp \
29    src/fpdfapi/fpdf_cmaps/CNS1/ETenms-B5-V_0.cpp \
30    src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-H_5.cpp \
31    src/fpdfapi/fpdf_cmaps/CNS1/HKscs-B5-V_5.cpp \
32    src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-H_3.cpp \
33    src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UCS2-V_3.cpp \
34    src/fpdfapi/fpdf_cmaps/CNS1/UniCNS-UTF16-H_0.cpp \
35    src/fpdfapi/fpdf_cmaps/CNS1/cmaps_cns1.cpp \
36    src/fpdfapi/fpdf_cmaps/GB1/Adobe-GB1-UCS2_5.cpp \
37    src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-H_0.cpp \
38    src/fpdfapi/fpdf_cmaps/GB1/GB-EUC-V_0.cpp \
39    src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-H_2.cpp \
40    src/fpdfapi/fpdf_cmaps/GB1/GBK-EUC-V_2.cpp \
41    src/fpdfapi/fpdf_cmaps/GB1/GBK2K-H_5.cpp \
42    src/fpdfapi/fpdf_cmaps/GB1/GBK2K-V_5.cpp \
43    src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-H_2.cpp \
44    src/fpdfapi/fpdf_cmaps/GB1/GBKp-EUC-V_2.cpp \
45    src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-H_0.cpp \
46    src/fpdfapi/fpdf_cmaps/GB1/GBpc-EUC-V_0.cpp \
47    src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-H_4.cpp \
48    src/fpdfapi/fpdf_cmaps/GB1/UniGB-UCS2-V_4.cpp \
49    src/fpdfapi/fpdf_cmaps/GB1/cmaps_gb1.cpp \
50    src/fpdfapi/fpdf_cmaps/Japan1/83pv-RKSJ-H_1.cpp \
51    src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-H_2.cpp \
52    src/fpdfapi/fpdf_cmaps/Japan1/90ms-RKSJ-V_2.cpp \
53    src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-H_2.cpp \
54    src/fpdfapi/fpdf_cmaps/Japan1/90msp-RKSJ-V_2.cpp \
55    src/fpdfapi/fpdf_cmaps/Japan1/90pv-RKSJ-H_1.cpp \
56    src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-H_1.cpp \
57    src/fpdfapi/fpdf_cmaps/Japan1/Add-RKSJ-V_1.cpp \
58    src/fpdfapi/fpdf_cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp \
59    src/fpdfapi/fpdf_cmaps/Japan1/EUC-H_1.cpp \
60    src/fpdfapi/fpdf_cmaps/Japan1/EUC-V_1.cpp \
61    src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-H_2.cpp \
62    src/fpdfapi/fpdf_cmaps/Japan1/Ext-RKSJ-V_2.cpp \
63    src/fpdfapi/fpdf_cmaps/Japan1/H_1.cpp \
64    src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp \
65    src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp \
66    src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-H_4.cpp \
67    src/fpdfapi/fpdf_cmaps/Japan1/UniJIS-UCS2-V_4.cpp \
68    src/fpdfapi/fpdf_cmaps/Japan1/V_1.cpp \
69    src/fpdfapi/fpdf_cmaps/Japan1/cmaps_japan1.cpp \
70    src/fpdfapi/fpdf_cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp \
71    src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-H_0.cpp \
72    src/fpdfapi/fpdf_cmaps/Korea1/KSC-EUC-V_0.cpp \
73    src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-H_1.cpp \
74    src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-HW-V_1.cpp \
75    src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-H_1.cpp \
76    src/fpdfapi/fpdf_cmaps/Korea1/KSCms-UHC-V_1.cpp \
77    src/fpdfapi/fpdf_cmaps/Korea1/KSCpc-EUC-H_0.cpp \
78    src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-H_1.cpp \
79    src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UCS2-V_1.cpp \
80    src/fpdfapi/fpdf_cmaps/Korea1/UniKS-UTF16-H_0.cpp \
81    src/fpdfapi/fpdf_cmaps/Korea1/cmaps_korea1.cpp \
82    src/fpdfapi/fpdf_cmaps/fpdf_cmaps.cpp \
83    src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp \
84    src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp \
85    src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp \
86    src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp \
87    src/fpdfapi/fpdf_font/fpdf_font.cpp \
88    src/fpdfapi/fpdf_font/fpdf_font_charset.cpp \
89    src/fpdfapi/fpdf_font/fpdf_font_cid.cpp \
90    src/fpdfapi/fpdf_font/ttgsubtable.cpp \
91    src/fpdfapi/fpdf_page/fpdf_page.cpp \
92    src/fpdfapi/fpdf_page/fpdf_page_colors.cpp \
93    src/fpdfapi/fpdf_page/fpdf_page_doc.cpp \
94    src/fpdfapi/fpdf_page/fpdf_page_func.cpp \
95    src/fpdfapi/fpdf_page/fpdf_page_graph_state.cpp \
96    src/fpdfapi/fpdf_page/fpdf_page_image.cpp \
97    src/fpdfapi/fpdf_page/fpdf_page_parser.cpp \
98    src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp \
99    src/fpdfapi/fpdf_page/fpdf_page_path.cpp \
100    src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp \
101    src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp \
102    src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp \
103    src/fpdfapi/fpdf_parser/fpdf_parser_encrypt.cpp \
104    src/fpdfapi/fpdf_parser/fpdf_parser_fdf.cpp \
105    src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp \
106    src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp \
107    src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp \
108    src/fpdfapi/fpdf_render/fpdf_render.cpp \
109    src/fpdfapi/fpdf_render/fpdf_render_cache.cpp \
110    src/fpdfapi/fpdf_render/fpdf_render_image.cpp \
111    src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp \
112    src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp \
113    src/fpdfapi/fpdf_render/fpdf_render_text.cpp
114
115LOCAL_C_INCLUDES := \
116    external/pdfium \
117    external/freetype/include \
118    external/freetype/include/freetype
119
120include $(BUILD_STATIC_LIBRARY)
121