diff options
Diffstat (limited to 'platform/android/jni/Android.mk')
-rw-r--r-- | platform/android/jni/Android.mk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/platform/android/jni/Android.mk b/platform/android/jni/Android.mk new file mode 100644 index 00000000..2391e161 --- /dev/null +++ b/platform/android/jni/Android.mk @@ -0,0 +1,35 @@ +LOCAL_PATH := $(call my-dir) +TOP_LOCAL_PATH := $(LOCAL_PATH) + +MUPDF_ROOT := .. + +ifdef NDK_PROFILER +include android-ndk-profiler.mk +endif + +include $(TOP_LOCAL_PATH)/Core2.mk +include $(TOP_LOCAL_PATH)/Core.mk +include $(TOP_LOCAL_PATH)/ThirdParty.mk + +include $(CLEAR_VARS) + +LOCAL_C_INCLUDES := \ + $(MUPDF_ROOT)/draw \ + $(MUPDF_ROOT)/fitz \ + $(MUPDF_ROOT)/pdf +LOCAL_CFLAGS := +LOCAL_MODULE := mupdf +LOCAL_SRC_FILES := mupdf.c +LOCAL_STATIC_LIBRARIES := mupdfcore mupdfcore2 mupdfthirdparty +ifdef NDK_PROFILER +LOCAL_CFLAGS += -pg -DNDK_PROFILER +LOCAL_STATIC_LIBRARIES += andprof +else +endif + +LOCAL_LDLIBS := -lm -llog -ljnigraphics +ifdef V8_BUILD +LOCAL_LDLIBS += -L$(MUPDF_ROOT)/thirdparty/v8-3.9/android -lv8_$(TARGET_ARCH_ABI) +endif + +include $(BUILD_SHARED_LIBRARY) |