Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(581)

Side by Side Diff: platform_tools/android/apps/visualbench/build.gradle

Issue 1215023017: Update Android Apps to use gradle (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 apply plugin: 'com.android.application'
2
3 android {
4 compileSdkVersion 19
5 buildToolsVersion "22.0.1"
6
7 defaultConfig {
8 applicationId "com.skia.visualbench"
9 minSdkVersion 9
10 targetSdkVersion 19
11 versionCode 1
12 versionName "1.0"
13 }
14
15 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call
16 sourceSets.main.jniLibs.srcDir "src/main/libs"
17
18 productFlavors {
19 arm {}
20 arm64 {}
21 x86 {}
22 x86_64 {}
23 }
24
25 // make sure that app is built and shared libraries are copied to correct di rectories
26 applicationVariants.all{ variant ->
27
28 def buildNativeLib = task("${variant.name}_NativeLib", type:Exec) {
29 workingDir '../../../..' // top-level skia directory
30 commandLine constructBuildCommand(variant, "CopyVisualBenchDeps").sp lit()
31 environment PATH: getPathWithDepotTools()
32 environment ANDROID_SDK_ROOT: getSDKPath()
33 }
34
35 if (!hasProperty("suppressNativeBuild")) {
36 TaskCollection<Task> assembleTask
37 assembleTask = project.tasks.matching {
38 it.name.contains("assemble") &&
39 it.name.toLowerCase().endsWith(variant.name.toLowerCase( ))
40 }
41 assembleTask.getAt(0).dependsOn buildNativeLib
42 }
43 }
44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698