summaryrefslogtreecommitdiff
path: root/platform/android/viewer/src/com
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-11-15 17:41:15 +0000
committerRobin Watts <robin.watts@artifex.com>2016-11-15 18:30:57 +0000
commit0c28c2aad6bfebf436c13a06db70413166d15d6d (patch)
treef19d3465c12b572ebb283cdb4748149e0adade07 /platform/android/viewer/src/com
parente84b0b0354a7ecf474600f55e1799d72affc2dfd (diff)
downloadmupdf-0c28c2aad6bfebf436c13a06db70413166d15d6d.tar.xz
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.
Diffstat (limited to 'platform/android/viewer/src/com')
-rw-r--r--platform/android/viewer/src/com/artifex/mupdfdemo/MuPDFCore.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/viewer/src/com/artifex/mupdfdemo/MuPDFCore.java b/platform/android/viewer/src/com/artifex/mupdfdemo/MuPDFCore.java
index 9d5f3818..6c105e0d 100644
--- a/platform/android/viewer/src/com/artifex/mupdfdemo/MuPDFCore.java
+++ b/platform/android/viewer/src/com/artifex/mupdfdemo/MuPDFCore.java
@@ -12,7 +12,7 @@ public class MuPDFCore
private static boolean gs_so_available = false;
static {
System.out.println("Loading dll");
- System.loadLibrary("mupdf_java");
+ System.loadLibrary("mupdf_java32");
System.out.println("Loaded dll");
if (gprfSupportedInternal())
{