diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 13:27:53 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 17:46:26 +0100 |
commit | c405c2fe7a442a720c869befeaafbeffc0aa3ae6 (patch) | |
tree | e3fa87c87d3f9ac886c160d3f0f2d7aa133cfb84 /platform/android/viewer/build.gradle | |
parent | 9d96d035d3b7af53256ee64b5ddb0ad8bcf8df38 (diff) | |
download | mupdf-c405c2fe7a442a720c869befeaafbeffc0aa3ae6.tar.xz |
Remove platform/android/viewer directory.
The Android viewer has been moved to its own git repository.
Diffstat (limited to 'platform/android/viewer/build.gradle')
-rw-r--r-- | platform/android/viewer/build.gradle | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/platform/android/viewer/build.gradle b/platform/android/viewer/build.gradle deleted file mode 100644 index 3d8088d2..00000000 --- a/platform/android/viewer/build.gradle +++ /dev/null @@ -1,92 +0,0 @@ -buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.android.tools.build:gradle:1.2.3' - } -} - -allprojects { - repositories { - jcenter() - } -} - -apply plugin: 'com.android.application' - -dependencies { - compile fileTree(dir: 'libs', include: '*.so') -} - -android { - compileSdkVersion 17 - buildToolsVersion '21.1.2' - - /* this stops gradle from making it's own Android.mk file */ - sourceSets.main.jni.srcDirs = [] - - sourceSets { - main { - manifest { - srcFile 'AndroidManifest.xml' - } - java { - srcDir 'src' - exclude 'com/artifex/mupdf/fitz/AndroidDrawDevice.java' - } - res { - srcDir 'res' - } - assets { - srcDir 'assets' - } - resources { - srcDir 'src' - } - jniLibs { - srcDir 'libs' - } - } - } - - /* This is important, it will run lint checks but won't abort build */ - lintOptions { - abortOnError false - } -} - -// 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 -// 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' - commandLine ndkBuildPath, '-C', file('.').absolutePath -} - -// 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 - -clean.dependsOn 'cleanNative' - -// building should include native - -tasks.withType(JavaCompile) { - compileTask -> compileTask.dependsOn buildNative -} |