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 core/fxcrt/fx_basic_array.cpp \ 22 core/fxcrt/fx_basic_bstring.cpp \ 23 core/fxcrt/fx_basic_buffer.cpp \ 24 core/fxcrt/fx_basic_coords.cpp \ 25 core/fxcrt/fx_basic_gcc.cpp \ 26 core/fxcrt/fx_basic_memmgr.cpp \ 27 core/fxcrt/fx_basic_utf.cpp \ 28 core/fxcrt/fx_basic_util.cpp \ 29 core/fxcrt/fx_basic_wstring.cpp \ 30 core/fxcrt/fx_bidi.cpp \ 31 core/fxcrt/fx_extension.cpp \ 32 core/fxcrt/fx_ucddata.cpp \ 33 core/fxcrt/fx_unicode.cpp \ 34 core/fxcrt/fx_xml_composer.cpp \ 35 core/fxcrt/fx_xml_parser.cpp \ 36 core/fxcrt/fxcrt_posix.cpp \ 37 core/fxcrt/fxcrt_stream.cpp \ 38 core/fxcrt/fxcrt_windows.cpp \ 39 40LOCAL_C_INCLUDES := \ 41 external/pdfium \ 42 external/freetype/include \ 43 external/freetype/include/freetype 44 45include $(BUILD_STATIC_LIBRARY) 46