OLD | NEW |
---|---|
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 | 8 |
9 dependencies { | 9 dependencies { |
10 compile 'com.android.support:support-v13:23.3.0' | 10 compile 'com.android.support:support-v13:23.3.0' |
11 compile 'com.android.support:appcompat-v7:23.3.0' | 11 compile 'com.android.support:appcompat-v7:23.3.0' |
12 } | 12 } |
13 | 13 |
14 android { | 14 android { |
15 compileSdkVersion 23 | 15 compileSdkVersion 23 |
16 buildToolsVersion "22.0.1" | 16 buildToolsVersion "22.0.1" |
17 defaultConfig { | 17 defaultConfig { |
18 applicationId "org.skia.viewer" | 18 applicationId "org.skia.viewer" |
19 minSdkVersion 19 | 19 minSdkVersion 19 |
20 targetSdkVersion 19 | 20 targetSdkVersion 19 |
21 versionCode 1 | 21 versionCode 1 |
22 versionName "1.0" | 22 versionName "1.0" |
23 signingConfig signingConfigs.debug | 23 signingConfig signingConfigs.debug |
24 } | 24 } |
25 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call | 25 sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build call |
26 sourceSets.main.jniLibs.srcDir "src/main/libs" | 26 sourceSets.main.jniLibs.srcDir "src/main/libs" |
27 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; } | 27 productFlavors { arm {}; arm64 {}; x86 {}; x86_64 {}; mips {}; mips64 {}; ar m64vulkan{}; } |
djsollen
2016/08/22 16:07:59
so this works from gradle, but it if I build from
liyuqian
2016/08/22 18:05:41
Yes, "arm64vulkan" is equivalent to "--vulkan -d a
| |
28 | 28 |
29 setupSkiaLibraryBuild(project, applicationVariants, "--vulkan CopyViewerDeps ", true) | 29 setupSkiaLibraryBuild(project, applicationVariants, "CopyViewerDeps", true) |
30 } | 30 } |
OLD | NEW |