1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_MODULE:= libpdfiumfxcrt 6 7 LOCAL_ARM_MODE := arm 8 LOCAL_NDK_STL_VARIANT := gnustl_static 9 10 LOCAL_CFLAGS += -O3 -fstrict-aliasing -fprefetch-loop-arrays -fexceptions 11 LOCAL_CFLAGS += -Wno-non-virtual-dtor -Wall -DOPJ_STATIC \ 12 -DV8_DEPRECATION_WARNINGS -D_CRT_SECURE_NO_WARNINGS 13 LOCAL_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. 17 LOCAL_CFLAGS += -Wno-sign-compare -Wno-unused-parameter 18 LOCAL_CLANG_CFLAGS += -Wno-sign-compare 19 20 LOCAL_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 43 LOCAL_C_INCLUDES := \ 44 external/pdfium \ 45 external/freetype/include \ 46 external/freetype/include/freetype 47 48 include $(BUILD_STATIC_LIBRARY) 49