OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2015 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 apply plugin: 'com.android.application' | |
8 android { | |
9 compileSdkVersion 19 | |
10 buildToolsVersion "22.0.1" | |
11 defaultConfig { | |
12 applicationId "org.skia.canvasproof" | |
13 minSdkVersion 9 | |
14 targetSdkVersion 19 | |
15 versionCode 1 | |
16 versionName "1.0" | |
djsollen
2015/09/01 13:13:29
add
signingConfig signingConfigs.debug
| |
17 } | |
18 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call | |
19 sourceSets.main.jniLibs.srcDir "src/main/libs" | |
20 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; } | |
21 applicationVariants.all{ variant -> | |
22 def buildNativeLib = task("${variant.name}_NativeLib", type:Exec) { | |
23 workingDir '../../../..' // top-level skia directory | |
24 commandLine constructBuildCommand(variant, "CopyCanvasProofDeps").sp lit() | |
25 environment PATH: getPathWithDepotTools() | |
26 environment ANDROID_SDK_ROOT: getSDKPath() | |
27 } | |
28 buildNativeLib.onlyIf { !project.hasProperty("suppressNativeBuild") } | |
29 TaskCollection<Task> assembleTask | |
30 assembleTask = project.tasks.matching { | |
31 it.name.contains("assemble") && | |
32 it.name.toLowerCase().endsWith(variant.name.toLowerCase()) | |
33 } | |
34 assembleTask.getAt(0).dependsOn buildNativeLib | |
35 } | |
36 } | |
OLD | NEW |