From 13bea1fd3df96f0554335789395121ba715ba15e Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 23 May 2013 14:58:30 +0100 Subject: Android: Update makefiles for new single lib V8 builds. We have a new method of making V8 libs for android that results in a single lib rather than 2, and works on armeabi and x86 as well as armeabi-v7a. --- android/jni/Android.mk | 11 ++--------- android/jni/Core.mk | 5 ----- 2 files changed, 2 insertions(+), 14 deletions(-) (limited to 'android') diff --git a/android/jni/Android.mk b/android/jni/Android.mk index af28d173..2391e161 100644 --- a/android/jni/Android.mk +++ b/android/jni/Android.mk @@ -7,13 +7,6 @@ ifdef NDK_PROFILER include android-ndk-profiler.mk endif -V8_OK := 0 -ifdef V8_BUILD -ifeq ($(TARGET_ARCH_ABI),armeabi-v7a) -V8_OK := 1 -endif -endif - include $(TOP_LOCAL_PATH)/Core2.mk include $(TOP_LOCAL_PATH)/Core.mk include $(TOP_LOCAL_PATH)/ThirdParty.mk @@ -35,8 +28,8 @@ else endif LOCAL_LDLIBS := -lm -llog -ljnigraphics -ifeq ($(V8_OK),1) -LOCAL_LDLIBS += -L$(MUPDF_ROOT)/thirdparty/v8-3.9/android -lv8_base -lv8_snapshot +ifdef V8_BUILD +LOCAL_LDLIBS += -L$(MUPDF_ROOT)/thirdparty/v8-3.9/android -lv8_$(TARGET_ARCH_ABI) endif include $(BUILD_SHARED_LIBRARY) diff --git a/android/jni/Core.mk b/android/jni/Core.mk index 73e6a08c..9fa6d060 100644 --- a/android/jni/Core.mk +++ b/android/jni/Core.mk @@ -154,7 +154,6 @@ ifdef MEMENTO LOCAL_SRC_FILES += $(MY_ROOT)/fitz/memento.c endif ifdef V8_BUILD -ifeq ($(V8_OK),1) LOCAL_SRC_FILES += \ $(MY_ROOT)/pdf/pdf_js.c \ $(MY_ROOT)/pdf/pdf_jsimp_cpp.c \ @@ -163,10 +162,6 @@ else LOCAL_SRC_FILES += \ $(MY_ROOT)/pdf/pdf_js_none.c endif -else -LOCAL_SRC_FILES += \ - $(MY_ROOT)/pdf/pdf_js_none.c -endif LOCAL_LDLIBS := -lm -llog -ljnigraphics -- cgit v1.2.3