summaryrefslogtreecommitdiff
path: root/android/jni
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-10-09 16:10:35 +0100
committerRobin Watts <robin.watts@artifex.com>2012-10-10 13:01:41 +0100
commit0567433564717b0cc34efde669b7e7489e00d07c (patch)
treec885386b539f42bad2457be9cf14bb7a90c04e12 /android/jni
parentb674a68e91824e82f2930f47a4ee33ef2e66f5b0 (diff)
downloadmupdf-0567433564717b0cc34efde669b7e7489e00d07c.tar.xz
Fix Android build.
Files had been added to project, but not to android makefiles. Thirdparty file paths needed updating in android makefiles. Rebuilding with the latest ndk (r8b) shows a problem due to a bug in the NDK. Work around this.
Diffstat (limited to 'android/jni')
-rw-r--r--android/jni/Application.mk3
-rw-r--r--android/jni/Core.mk9
-rw-r--r--android/jni/ThirdParty.mk8
3 files changed, 12 insertions, 8 deletions
diff --git a/android/jni/Application.mk b/android/jni/Application.mk
index 580786f9..50e03f81 100644
--- a/android/jni/Application.mk
+++ b/android/jni/Application.mk
@@ -2,3 +2,6 @@
APP_PLATFORM=android-8
APP_ABI := armeabi armeabi-v7a
APP_OPTIM := debug
+
+# Workaround bug in the ndk
+NDK_TOOLCHAIN_VERSION=4.4.3
diff --git a/android/jni/Core.mk b/android/jni/Core.mk
index fcfc3412..f1d309f3 100644
--- a/android/jni/Core.mk
+++ b/android/jni/Core.mk
@@ -4,10 +4,10 @@ include $(CLEAR_VARS)
MY_ROOT := ../..
-OPENJPEG := openjpeg-1.5.0-patched
-JPEG := jpeg-9
-ZLIB := zlib-1.2.7
-FREETYPE := freetype-2.4.10
+OPENJPEG := openjpeg
+JPEG := jpeg
+ZLIB := zlib
+FREETYPE := freetype
LOCAL_CFLAGS += -DARCH_ARM -DARCH_THUMB -DARCH_ARM_CAN_LOAD_UNALIGNED
@@ -66,6 +66,7 @@ LOCAL_SRC_FILES := \
$(MY_ROOT)/fitz/res_store.c \
$(MY_ROOT)/fitz/res_text.c \
$(MY_ROOT)/fitz/stm_buffer.c \
+ $(MY_ROOT)/fitz/stm_comp_buf.c \
$(MY_ROOT)/fitz/stm_open.c \
$(MY_ROOT)/fitz/stm_read.c \
$(MY_ROOT)/draw/draw_affine.c \
diff --git a/android/jni/ThirdParty.mk b/android/jni/ThirdParty.mk
index a2d05ccf..e028c49d 100644
--- a/android/jni/ThirdParty.mk
+++ b/android/jni/ThirdParty.mk
@@ -4,10 +4,10 @@ include $(CLEAR_VARS)
MY_ROOT := ../..
-OPENJPEG := openjpeg-1.5.0-patched
-JPEG := jpeg-9
-ZLIB := zlib-1.2.7
-FREETYPE := freetype-2.4.10
+OPENJPEG := openjpeg
+JPEG := jpeg
+ZLIB := zlib
+FREETYPE := freetype
LOCAL_C_INCLUDES := \
../thirdparty/jbig2dec \