android mupdf for MIPS and x86 arch

丶灬走出姿态 提交于 2019-12-03 03:53:18

If you look in android/jni/Application.mk within the mupdf source you will see a line:

APP_ABI = armeabi armeabi-v7a

You can make this:

APP_ABI = armeabi armeabi-v7a x86 mips

or even:

APP_ABI = all

to enable the other architectures.

This will cause problems currently as android/jni/Core.mk and android/jni/Core2.mk files define -DARCH_ARM and -DARCH_THUMB (as at the time they were written, Android only supported ARM processors). This needs a bit of magic with the preprocessor:

ifeq ($(TARGET_ARCH),arm)
LOCAL_CFLAGS += -DARCH_ARM -DARCH_THUMB -DARCH_ARM_CAN_LOAD_UNALIGNED
ifdef NDK_PROFILER
LOCAL_CFLAGS += -pg -DNDK_PROFILER -O2
endif
endif
LOCAL_CFLAGS += -DAA_BITS=8

I will get fixes put in for these - watch our git repo over the next couple of days. EDIT: Fix is now committed.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!