diff options
author | fred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local> | 2016-08-12 14:05:03 -0700 |
---|---|---|
committer | fredross-perry <fross-perry@conceptuamath.com> | 2016-08-16 11:21:02 -0700 |
commit | 786057a2c19f33d7e95fca13d3711ce60d388966 (patch) | |
tree | dfe0c72fa3a3f2da9f9d3a198ea2834f8cdad5e1 /platform/android/viewer/build.gradle | |
parent | c8665eae28ca2f4aa56239eb411c6ea1200d65fb (diff) | |
download | mupdf-786057a2c19f33d7e95fca13d3711ce60d388966.tar.xz |
Android viewer: get experimental proofing to build again.
- use FZ_ENABLE_GPRF everywhere
- chasing changed fz APIs in gprf-doc.c
Diffstat (limited to 'platform/android/viewer/build.gradle')
-rw-r--r-- | platform/android/viewer/build.gradle | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/platform/android/viewer/build.gradle b/platform/android/viewer/build.gradle index 1736e939..3d8088d2 100644 --- a/platform/android/viewer/build.gradle +++ b/platform/android/viewer/build.gradle @@ -1,5 +1,3 @@ -import org.apache.tools.ant.taskdefs.condition.Os - buildscript { repositories { jcenter() @@ -58,29 +56,37 @@ android { } } -/* This defines the path to Android's ndk-build. */ +// This defines the path to Android's ndk-build. +import org.apache.tools.ant.taskdefs.condition.Os def ndkBuildPath = plugins.getPlugin('com.android.application').sdkHandler.getNdkFolder().absolutePath + File.separator + 'ndk-build' if (Os.isFamily(Os.FAMILY_WINDOWS)) { ndkBuildPath +='.cmd' } -/* This task builds the native part */ +// This task builds the native part +// To build with experimental proofing enabled, define FZ_ENABLE_GPRF, +// as shown below, and put a copy of libgs.so in the +// JNI folder before building. + task buildNative(type: Exec,description: 'Compile JNI source via NDK') { println('executing buildNative') - commandLine ndkBuildPath, '-C', file('.').absolutePath, ' FZ_ENABLE_GPRF=1' - //'NDK_PROJECT_PATH=build','APP_BUILD_SCRIPT=src/main/jni/Android.mk'//force using appropriate Makefile +// commandLine ndkBuildPath, '-C', file('.').absolutePath, ' FZ_ENABLE_GPRF=1' + commandLine ndkBuildPath, '-C', file('.').absolutePath } -/* This task cleans the native part */ +// This task cleans the native part + task cleanNative(type: Exec, description: 'Clean JNI object files') { println('executing cleanNative') commandLine ndkBuildPath, '-C', file('.').absolutePath, 'clean' } -/* cleaning should also include cleaning native */ +// cleaning should also include cleaning native + clean.dependsOn 'cleanNative' -/* building should include native */ -tasks.withType(JavaCompile){ +// building should include native + +tasks.withType(JavaCompile) { compileTask -> compileTask.dependsOn buildNative } |