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

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

Issue 1903253003: VulkanViewer on Android (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: gyp Created 4 years, 8 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
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 apply plugin: 'com.android.application' 7 apply plugin: 'com.android.application'
8 android { 8 android {
9 compileSdkVersion 19 9 compileSdkVersion 19
10 buildToolsVersion "22.0.1" 10 buildToolsVersion "22.0.1"
11 defaultConfig { 11 defaultConfig {
12 applicationId "org.skia.canvasproof" 12 applicationId "org.skia.vulkanviewer"
13 minSdkVersion 9 13 minSdkVersion 9
14 targetSdkVersion 19 14 targetSdkVersion 19
15 versionCode 1 15 versionCode 1
16 versionName "1.0" 16 versionName "1.0"
17 signingConfig signingConfigs.debug 17 signingConfig signingConfigs.debug
18 } 18 }
19 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call 19 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call
20 sourceSets.main.jniLibs.srcDir "src/main/libs" 20 sourceSets.main.jniLibs.srcDir "src/main/libs"
21 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; } 21 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; }
22 applicationVariants.all{ variant -> 22 applicationVariants.all{ variant ->
23 def buildNativeLib = task("${variant.name}_NativeLib", type:Exec) { 23 def buildNativeLib = task("${variant.name}_NativeLib", type:Exec) {
24 workingDir '../../../..' // top-level skia directory 24 workingDir '../../../..' // top-level skia directory
25 commandLine constructBuildCommand(variant, "CopyCanvasProofDeps").sp lit() 25 commandLine constructBuildCommand(variant, "CopyVulkanViewerDeps").s plit()
26 environment PATH: getPathWithDepotTools() 26 environment PATH: getPathWithDepotTools()
27 environment ANDROID_SDK_ROOT: getSDKPath() 27 environment ANDROID_SDK_ROOT: getSDKPath()
28 } 28 }
29 buildNativeLib.onlyIf { !project.hasProperty("suppressNativeBuild") } 29 buildNativeLib.onlyIf { !project.hasProperty("suppressNativeBuild") }
30 TaskCollection<Task> assembleTask 30 TaskCollection<Task> assembleTask
31 assembleTask = project.tasks.matching { 31 assembleTask = project.tasks.matching {
32 it.name.contains("assemble") && 32 it.name.contains("assemble") &&
33 it.name.toLowerCase().endsWith(variant.name.toLowerCase()) 33 it.name.toLowerCase().endsWith(variant.name.toLowerCase())
34 } 34 }
35 assembleTask.getAt(0).dependsOn buildNativeLib 35 assembleTask.getAt(0).dependsOn buildNativeLib
36 } 36 }
37 } 37 }
OLDNEW
« no previous file with comments | « platform_tools/android/apps/settings.gradle ('k') | platform_tools/android/apps/vulkanviewer/src/main/AndroidManifest.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698