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

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-09-04 (Friday) 13:29:02 EDT Created 5 years, 3 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"
11 defaultConfig {
12 applicationId "org.skia.canvasproof"
13 minSdkVersion 9
14 targetSdkVersion 19
15 versionCode 1
16 versionName "1.0"
17 signingConfig signingConfigs.debug
18 }
19 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call
20 sourceSets.main.jniLibs.srcDir "src/main/libs"
21 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; }
22 applicationVariants.all{ variant ->
23 def buildNativeLib = task("${variant.name}_NativeLib", type:Exec) {
24 workingDir '../../../..' // top-level skia directory
25 commandLine constructBuildCommand(variant, "CopyCanvasProofDeps").sp lit()
26 environment PATH: getPathWithDepotTools()
27 environment ANDROID_SDK_ROOT: getSDKPath()
28 }
29 buildNativeLib.onlyIf { !project.hasProperty("suppressNativeBuild") }
30 TaskCollection<Task> assembleTask
31 assembleTask = project.tasks.matching {
32 it.name.contains("assemble") &&
33 it.name.toLowerCase().endsWith(variant.name.toLowerCase())
34 }
35 assembleTask.getAt(0).dependsOn buildNativeLib
36 }
37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698