blob: ad34f8a61dc5e094b7a89b4f47b53889d69672f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
apply plugin: 'com.android.application'
//Make sure this is directory corresponds to skia/platform_tools/android
final String ANDROID_CMAKE_HEADER_PATH = "../../CMakeLists.txt"
dependencies {
compile 'com.android.support:support-v13:23.3.0'
compile 'com.android.support:appcompat-v7:23.3.0'
}
android {
compileSdkVersion 23
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "org.skia.viewer"
minSdkVersion 19
targetSdkVersion 19
versionCode 1
versionName "1.0"
signingConfig signingConfigs.debug
externalNativeBuild {
cmake {
//Native libraries to build
targets "libviewer"
arguments "-DANDROID_STL=c++_static",
"-DTARGETS=${android.defaultConfig.externalNativeBuild.cmake.targets}"
}
}
buildTypes {
debug {
applicationIdSuffix ".debug"
debuggable true
}
}
productFlavors {
arm64 {
ndk {
abiFilters "arm64-v8a"
}
}
arm {
ndk {
abiFilters "armeabi-v7a"
}
}
x86 {
ndk {
abiFilters "x86"
}
}
x64 {
ndk {
abiFilters "x86_64"
}
}
}
}
externalNativeBuild {
cmake {
path ANDROID_CMAKE_HEADER_PATH
}
}
}
|