1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE:= libpdfiumfxcrt 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 13LOCAL_CFLAGS_arm64 += -D_FX_CPU_=_FX_X64_ -fPIC 14 15# Mask some warnings. These are benign, but we probably want to fix them 16# upstream at some point. 17LOCAL_CFLAGS += -Wno-sign-compare -Wno-unused-parameter 18LOCAL_CLANG_CFLAGS += -Wno-sign-compare 19 20LOCAL_SRC_FILES := \ 21 src/fxcrt/fx_basic_array.cpp \ 22 src/fxcrt/fx_basic_bstring.cpp \ 23 src/fxcrt/fx_basic_buffer.cpp \ 24 src/fxcrt/fx_basic_coords.cpp \ 25 src/fxcrt/fx_basic_gcc.cpp \ 26 src/fxcrt/fx_basic_list.cpp \ 27 src/fxcrt/fx_basic_maps.cpp \ 28 src/fxcrt/fx_basic_memmgr.cpp \ 29 src/fxcrt/fx_basic_plex.cpp \ 30 src/fxcrt/fx_basic_utf.cpp \ 31 src/fxcrt/fx_basic_util.cpp \ 32 src/fxcrt/fx_basic_wstring.cpp \ 33 src/fxcrt/fx_bidi.cpp \ 34 src/fxcrt/fx_extension.cpp \ 35 src/fxcrt/fx_ucddata.cpp \ 36 src/fxcrt/fx_unicode.cpp \ 37 src/fxcrt/fx_xml_composer.cpp \ 38 src/fxcrt/fx_xml_parser.cpp \ 39 src/fxcrt/fxcrt_platforms.cpp \ 40 src/fxcrt/fxcrt_posix.cpp \ 41 src/fxcrt/fxcrt_windows.cpp 42 43LOCAL_C_INCLUDES := \ 44 external/pdfium \ 45 external/freetype/include \ 46 external/freetype/include/freetype 47 48include $(BUILD_STATIC_LIBRARY) 49