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

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

Issue 1258123004: android/apps: Add CanvasProof App; (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-08-17 (Monday) 14:41:02 EDT Created 5 years, 4 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 /*
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"
tomhudson 2015/08/22 19:15:52 Nit: this is significantly newer than necessary fo
djsollen 2015/08/24 12:42:56 This is correct and lines up with the build tools
11 defaultConfig {
12 applicationId "org.skia.canvasproof"
13 minSdkVersion 9
14 targetSdkVersion 19
15 versionCode 1
16 versionName "1.0"
17 }
18 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call
19 sourceSets.main.jniLibs.srcDir "src/main/libs"
tomhudson 2015/08/22 19:15:52 Doesn't this need = ?
hal.canary 2015/08/31 21:16:55 Done.
20 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; }
21 applicationVariants.all{ variant ->
djsollen 2015/08/24 12:42:56 I wonder if gradle has some include structure so t
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698