1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_MODULE:= libpdfiumfdrm 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 17LOCAL_CLANG_CFLAGS += -Wno-sign-compare 18 19LOCAL_SRC_FILES := \ 20 core/fdrm/crypto/fx_crypt.cpp \ 21 core/fdrm/crypto/fx_crypt_aes.cpp \ 22 core/fdrm/crypto/fx_crypt_sha.cpp 23 24LOCAL_C_INCLUDES := \ 25 external/pdfium \ 26 external/freetype/include \ 27 external/freetype/include/freetype 28 29include $(BUILD_STATIC_LIBRARY) 30