From 16c9143f92db0d896e0e8decea67e71a5497ad69 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 11 Jun 2017 00:11:37 +0800 Subject: Update android library build instructions. --- docs/android-build-library.html | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) (limited to 'docs') diff --git a/docs/android-build-library.html b/docs/android-build-library.html index 563e5ce3..ae6cf635 100644 --- a/docs/android-build-library.html +++ b/docs/android-build-library.html @@ -70,27 +70,13 @@ $ make -C libmupdf generate Add an NDK-build step to your project, using the Android.mk file from mupdf.

-If compiling manually, set the appropriate variables yourself: - -

-$ ndk-build \
-	APP_BUILD_SCRIPT=libmupdf/platform/java/Android.mk \
-	APP_PROJECT_PATH=. \
-	APP_PLATFORM=android-16 \
-	APP_OPTIM=debug \
-	APP_ABI=x86
-
- -

-If using gradle, add an externalNativeBuild section in the android section -in the build.gradle file: +Add an externalNativeBuild section in the android section in the +build.gradle file:

 android {
 	externalNativeBuild {
-		ndkBuild {
-			path 'libmupdf/platform/java/Android.mk'
-		}
+		ndkBuild.path 'libmupdf/platform/java/Android.mk'
 	}
 }
 
@@ -101,27 +87,14 @@ android { You'll also need to include the Java classes that bind to the JNI library.

-If you're using ant, add the 'libmupdf/platform/java/src' directory -to the list of source directories. For example, set the variables in -an ant.properties file: - -

-source.dir=src;libmupdf/platform/java/src
-java.source=1.7
-java.target=1.7
-
- -

-If using gradle, add the 'libmupdf/platform/java/src' directory -to the list of source directories in the build.gradle file: +Add the 'libmupdf/platform/java/src' directory to the list of source +directories in the build.gradle file:

 android {
 	sourceSets {
 		main {
-			java {
-				srcDirs = [ "src/main/java", "libmupdf/platform/java/src" ]
-			}
+			java.srcDirs 'src/main/java', 'libmupdf/platform/java/src'
 		}
 	}
 }
-- 
cgit v1.2.3