From 0c28c2aad6bfebf436c13a06db70413166d15d6d Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Tue, 15 Nov 2016 17:41:15 +0000 Subject: Update JNI code to load 32 or 64 bit DLL as appropriate. Make the JNI code detect whether it is running on a 32 or 64 bit machine, and change the name of the DLL appropriately. Update Android Makefile to make mupdf_java32 instead of mupdf_java. Update Java Makefile to make mupdf_java32 or mupdf_java64 based on the system it is running on. This choice can be overruled by defining BITS to be "32" or "64" before calling make. Update Windows Solution to make mupdf_java32 or mupdf_java64 as appropriate. --- platform/android/example/Readme.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'platform/android/example') diff --git a/platform/android/example/Readme.txt b/platform/android/example/Readme.txt index e87baf8a..7138ddcf 100644 --- a/platform/android/example/Readme.txt +++ b/platform/android/example/Readme.txt @@ -11,11 +11,11 @@ mupdf/platform/android/example - build instructions 4. copy the resulting .so file: mkdir -p ../example/mupdf/libs/armeabi-v7a - rm -f ../example/mupdf/libs/armeabi-v7a/libmupdf_java.so + rm -f ../example/mupdf/libs/armeabi-v7a/libmupdf_java32.so cp ./libs/armeabi-v7a/libmupdf_java.so ../example/mupdf/libs/armeabi-v7a/ 5. Open the example in Android Studio 6. build and run -If you modify C code, do steps 3, 4 and 6 as needed \ No newline at end of file +If you modify C code, do steps 3, 4 and 6 as needed -- cgit v1.2.3