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 core/fpdfapi/cmaps/CNS1/Adobe-CNS1-UCS2_5.cpp \ 21 core/fpdfapi/cmaps/CNS1/B5pc-H_0.cpp \ 22 core/fpdfapi/cmaps/CNS1/B5pc-V_0.cpp \ 23 core/fpdfapi/cmaps/CNS1/CNS-EUC-H_0.cpp \ 24 core/fpdfapi/cmaps/CNS1/CNS-EUC-V_0.cpp \ 25 core/fpdfapi/cmaps/CNS1/ETen-B5-H_0.cpp \ 26 core/fpdfapi/cmaps/CNS1/ETen-B5-V_0.cpp \ 27 core/fpdfapi/cmaps/CNS1/ETenms-B5-H_0.cpp \ 28 core/fpdfapi/cmaps/CNS1/ETenms-B5-V_0.cpp \ 29 core/fpdfapi/cmaps/CNS1/HKscs-B5-H_5.cpp \ 30 core/fpdfapi/cmaps/CNS1/HKscs-B5-V_5.cpp \ 31 core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-H_3.cpp \ 32 core/fpdfapi/cmaps/CNS1/UniCNS-UCS2-V_3.cpp \ 33 core/fpdfapi/cmaps/CNS1/UniCNS-UTF16-H_0.cpp \ 34 core/fpdfapi/cmaps/CNS1/cmaps_cns1.cpp \ 35 core/fpdfapi/cmaps/GB1/Adobe-GB1-UCS2_5.cpp \ 36 core/fpdfapi/cmaps/GB1/GB-EUC-H_0.cpp \ 37 core/fpdfapi/cmaps/GB1/GB-EUC-V_0.cpp \ 38 core/fpdfapi/cmaps/GB1/GBK-EUC-H_2.cpp \ 39 core/fpdfapi/cmaps/GB1/GBK-EUC-V_2.cpp \ 40 core/fpdfapi/cmaps/GB1/GBK2K-H_5.cpp \ 41 core/fpdfapi/cmaps/GB1/GBK2K-V_5.cpp \ 42 core/fpdfapi/cmaps/GB1/GBKp-EUC-H_2.cpp \ 43 core/fpdfapi/cmaps/GB1/GBKp-EUC-V_2.cpp \ 44 core/fpdfapi/cmaps/GB1/GBpc-EUC-H_0.cpp \ 45 core/fpdfapi/cmaps/GB1/GBpc-EUC-V_0.cpp \ 46 core/fpdfapi/cmaps/GB1/UniGB-UCS2-H_4.cpp \ 47 core/fpdfapi/cmaps/GB1/UniGB-UCS2-V_4.cpp \ 48 core/fpdfapi/cmaps/GB1/cmaps_gb1.cpp \ 49 core/fpdfapi/cmaps/Japan1/83pv-RKSJ-H_1.cpp \ 50 core/fpdfapi/cmaps/Japan1/90ms-RKSJ-H_2.cpp \ 51 core/fpdfapi/cmaps/Japan1/90ms-RKSJ-V_2.cpp \ 52 core/fpdfapi/cmaps/Japan1/90msp-RKSJ-H_2.cpp \ 53 core/fpdfapi/cmaps/Japan1/90msp-RKSJ-V_2.cpp \ 54 core/fpdfapi/cmaps/Japan1/90pv-RKSJ-H_1.cpp \ 55 core/fpdfapi/cmaps/Japan1/Add-RKSJ-H_1.cpp \ 56 core/fpdfapi/cmaps/Japan1/Add-RKSJ-V_1.cpp \ 57 core/fpdfapi/cmaps/Japan1/Adobe-Japan1-UCS2_4.cpp \ 58 core/fpdfapi/cmaps/Japan1/EUC-H_1.cpp \ 59 core/fpdfapi/cmaps/Japan1/EUC-V_1.cpp \ 60 core/fpdfapi/cmaps/Japan1/Ext-RKSJ-H_2.cpp \ 61 core/fpdfapi/cmaps/Japan1/Ext-RKSJ-V_2.cpp \ 62 core/fpdfapi/cmaps/Japan1/H_1.cpp \ 63 core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-H_4.cpp \ 64 core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-HW-V_4.cpp \ 65 core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-H_4.cpp \ 66 core/fpdfapi/cmaps/Japan1/UniJIS-UCS2-V_4.cpp \ 67 core/fpdfapi/cmaps/Japan1/V_1.cpp \ 68 core/fpdfapi/cmaps/Japan1/cmaps_japan1.cpp \ 69 core/fpdfapi/cmaps/Korea1/Adobe-Korea1-UCS2_2.cpp \ 70 core/fpdfapi/cmaps/Korea1/KSC-EUC-H_0.cpp \ 71 core/fpdfapi/cmaps/Korea1/KSC-EUC-V_0.cpp \ 72 core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-H_1.cpp \ 73 core/fpdfapi/cmaps/Korea1/KSCms-UHC-HW-V_1.cpp \ 74 core/fpdfapi/cmaps/Korea1/KSCms-UHC-H_1.cpp \ 75 core/fpdfapi/cmaps/Korea1/KSCms-UHC-V_1.cpp \ 76 core/fpdfapi/cmaps/Korea1/KSCpc-EUC-H_0.cpp \ 77 core/fpdfapi/cmaps/Korea1/UniKS-UCS2-H_1.cpp \ 78 core/fpdfapi/cmaps/Korea1/UniKS-UCS2-V_1.cpp \ 79 core/fpdfapi/cmaps/Korea1/UniKS-UTF16-H_0.cpp \ 80 core/fpdfapi/cmaps/Korea1/cmaps_korea1.cpp \ 81 core/fpdfapi/cmaps/fpdf_cmaps.cpp \ 82 core/fpdfapi/cpdf_modulemgr.cpp \ 83 core/fpdfapi/cpdf_pagerendercontext.cpp \ 84 core/fpdfapi/edit/cpdf_pagecontentgenerator.cpp \ 85 core/fpdfapi/edit/fpdf_edit_create.cpp \ 86 core/fpdfapi/font/cpdf_cidfont.cpp \ 87 core/fpdfapi/font/cpdf_font.cpp \ 88 core/fpdfapi/font/cpdf_fontencoding.cpp \ 89 core/fpdfapi/font/cpdf_simplefont.cpp \ 90 core/fpdfapi/font/cpdf_truetypefont.cpp \ 91 core/fpdfapi/font/cpdf_type1font.cpp \ 92 core/fpdfapi/font/cpdf_type3char.cpp \ 93 core/fpdfapi/font/cpdf_type3font.cpp \ 94 core/fpdfapi/font/fpdf_font.cpp \ 95 core/fpdfapi/font/fpdf_font_cid.cpp \ 96 core/fpdfapi/font/ttgsubtable.cpp \ 97 core/fpdfapi/page/cpdf_allstates.cpp \ 98 core/fpdfapi/page/cpdf_clippath.cpp \ 99 core/fpdfapi/page/cpdf_color.cpp \ 100 core/fpdfapi/page/cpdf_colorspace.cpp \ 101 core/fpdfapi/page/cpdf_colorstate.cpp \ 102 core/fpdfapi/page/cpdf_contentmark.cpp \ 103 core/fpdfapi/page/cpdf_contentmarkitem.cpp \ 104 core/fpdfapi/page/cpdf_contentparser.cpp \ 105 core/fpdfapi/page/cpdf_docpagedata.cpp \ 106 core/fpdfapi/page/cpdf_form.cpp \ 107 core/fpdfapi/page/cpdf_formobject.cpp \ 108 core/fpdfapi/page/cpdf_generalstate.cpp \ 109 core/fpdfapi/page/cpdf_graphicstates.cpp \ 110 core/fpdfapi/page/cpdf_image.cpp \ 111 core/fpdfapi/page/cpdf_imageobject.cpp \ 112 core/fpdfapi/page/cpdf_meshstream.cpp \ 113 core/fpdfapi/page/cpdf_page.cpp \ 114 core/fpdfapi/page/cpdf_pagemodule.cpp \ 115 core/fpdfapi/page/cpdf_pageobject.cpp \ 116 core/fpdfapi/page/cpdf_pageobjectholder.cpp \ 117 core/fpdfapi/page/cpdf_pageobjectlist.cpp \ 118 core/fpdfapi/page/cpdf_path.cpp \ 119 core/fpdfapi/page/cpdf_pathobject.cpp \ 120 core/fpdfapi/page/cpdf_pattern.cpp \ 121 core/fpdfapi/page/cpdf_shadingobject.cpp \ 122 core/fpdfapi/page/cpdf_shadingpattern.cpp \ 123 core/fpdfapi/page/cpdf_streamcontentparser.cpp \ 124 core/fpdfapi/page/cpdf_streamparser.cpp \ 125 core/fpdfapi/page/cpdf_textobject.cpp \ 126 core/fpdfapi/page/cpdf_textstate.cpp \ 127 core/fpdfapi/page/cpdf_tilingpattern.cpp \ 128 core/fpdfapi/page/fpdf_page_colors.cpp \ 129 core/fpdfapi/page/fpdf_page_func.cpp \ 130 core/fpdfapi/parser/cfdf_document.cpp \ 131 core/fpdfapi/parser/cpdf_array.cpp \ 132 core/fpdfapi/parser/cpdf_boolean.cpp \ 133 core/fpdfapi/parser/cpdf_crypto_handler.cpp \ 134 core/fpdfapi/parser/cpdf_data_avail.cpp \ 135 core/fpdfapi/parser/cpdf_dictionary.cpp \ 136 core/fpdfapi/parser/cpdf_document.cpp \ 137 core/fpdfapi/parser/cpdf_hint_tables.cpp \ 138 core/fpdfapi/parser/cpdf_indirect_object_holder.cpp \ 139 core/fpdfapi/parser/cpdf_linearized_header.cpp \ 140 core/fpdfapi/parser/cpdf_name.cpp \ 141 core/fpdfapi/parser/cpdf_null.cpp \ 142 core/fpdfapi/parser/cpdf_number.cpp \ 143 core/fpdfapi/parser/cpdf_object.cpp \ 144 core/fpdfapi/parser/cpdf_parser.cpp \ 145 core/fpdfapi/parser/cpdf_reference.cpp \ 146 core/fpdfapi/parser/cpdf_security_handler.cpp \ 147 core/fpdfapi/parser/cpdf_simple_parser.cpp \ 148 core/fpdfapi/parser/cpdf_stream.cpp \ 149 core/fpdfapi/parser/cpdf_stream_acc.cpp \ 150 core/fpdfapi/parser/cpdf_string.cpp \ 151 core/fpdfapi/parser/cpdf_syntax_parser.cpp \ 152 core/fpdfapi/parser/fpdf_parser_decode.cpp \ 153 core/fpdfapi/parser/fpdf_parser_utility.cpp \ 154 core/fpdfapi/render/cpdf_charposlist.cpp \ 155 core/fpdfapi/render/cpdf_devicebuffer.cpp \ 156 core/fpdfapi/render/cpdf_dibsource.cpp \ 157 core/fpdfapi/render/cpdf_dibtransferfunc.cpp \ 158 core/fpdfapi/render/cpdf_docrenderdata.cpp \ 159 core/fpdfapi/render/cpdf_imagecacheentry.cpp \ 160 core/fpdfapi/render/cpdf_imageloader.cpp \ 161 core/fpdfapi/render/cpdf_imagerenderer.cpp \ 162 core/fpdfapi/render/cpdf_pagerendercache.cpp \ 163 core/fpdfapi/render/cpdf_progressiverenderer.cpp \ 164 core/fpdfapi/render/cpdf_rendercontext.cpp \ 165 core/fpdfapi/render/cpdf_renderoptions.cpp \ 166 core/fpdfapi/render/cpdf_renderstatus.cpp \ 167 core/fpdfapi/render/cpdf_scaledrenderbuffer.cpp \ 168 core/fpdfapi/render/cpdf_textrenderer.cpp \ 169 core/fpdfapi/render/cpdf_transferfunc.cpp \ 170 core/fpdfapi/render/cpdf_type3cache.cpp \ 171 core/fpdfapi/render/cpdf_type3glyphs.cpp \ 172 173LOCAL_C_INCLUDES := \ 174 external/pdfium \ 175 external/freetype/include \ 176 external/freetype/include/freetype 177 178include $(BUILD_STATIC_LIBRARY) 179