Home | History | Annotate | Download | only in fpdfsdk
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE := libpdfium
      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 
     14 # Mask some warnings. These are benign, but we probably want to fix them
     15 # upstream at some point.
     16 LOCAL_CFLAGS += -Wno-sign-compare -Wno-unused-parameter
     17 LOCAL_CLANG_CFLAGS += -Wno-sign-compare
     18 
     19 LOCAL_STATIC_LIBRARIES := libpdfiumformfiller \
     20                           libpdfiumpdfwindow \
     21                           libpdfiumjavascript \
     22                           libpdfiumfpdfapi \
     23                           libpdfiumfxge \
     24                           libpdfiumfxedit \
     25                           libpdfiumfpdftext \
     26                           libpdfiumfxcrt \
     27                           libpdfiumfxcodec \
     28                           libpdfiumfpdfdoc \
     29                           libpdfiumfdrm \
     30                           libpdfiumagg23 \
     31                           libpdfiumbigint \
     32                           libpdfiumlcms \
     33                           libpdfiumjpeg \
     34                           libpdfiumopenjpeg \
     35                           libpdfiumzlib
     36 
     37 
     38 # TODO: figure out why turning on exceptions requires manually linking libdl
     39 LOCAL_SHARED_LIBRARIES := libdl libft2
     40 
     41 LOCAL_SRC_FILES := \
     42     src/fpdf_dataavail.cpp \
     43     src/fpdf_ext.cpp \
     44     src/fpdf_flatten.cpp \
     45     src/fpdf_progressive.cpp \
     46     src/fpdf_searchex.cpp \
     47     src/fpdf_sysfontinfo.cpp \
     48     src/fpdf_transformpage.cpp \
     49     src/fpdfdoc.cpp \
     50     src/fpdfeditimg.cpp \
     51     src/fpdfeditpage.cpp \
     52     src/fpdfformfill.cpp \
     53     src/fpdfppo.cpp \
     54     src/fpdfsave.cpp \
     55     src/fpdftext.cpp \
     56     src/fpdfview.cpp \
     57     src/fsdk_actionhandler.cpp \
     58     src/fsdk_annothandler.cpp \
     59     src/fsdk_baseannot.cpp \
     60     src/fsdk_baseform.cpp \
     61     src/fsdk_mgr.cpp \
     62     src/fsdk_rendercontext.cpp
     63 
     64 LOCAL_C_INCLUDES := \
     65     external/pdfium \
     66     external/freetype/include \
     67     external/freetype/include/freetype
     68 
     69 include $(BUILD_SHARED_LIBRARY)
     70