forked from Beyka/Android-TiffBitmapFactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (70 loc) · 1.91 KB
/
build.gradle
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
79
80
81
82
83
apply plugin: 'com.android.model.library'
model {
android {
compileSdkVersion = 23
buildToolsVersion = "23.0.2"
ndk {
moduleName = "tifffactory"
toolchain "clang"
platformVersion = "16"
CFlags.add("-I" + file("src/main/jni/libtiff"))
cppFlags.add("-I" + file("src/main/jni/libtiff"))
ldLibs.add("z")
ldLibs.add("log")
ldLibs.add("jnigraphics")
stl 'gnustl_shared'
}
defaultConfig {
minSdkVersion.apiLevel = 8
targetSdkVersion.apiLevel = 23
// versionCode = 7
versionName = "0.7"
}
buildTypes {
release {
minifyEnabled = false
proguardFiles.add(file('proguard-android.txt'))
}
}
sources {
main {
jni {
source {
srcDirs = ["src/main/jni/libtiff", "src/main/jni/jpeg", "src/main/jni/cpp"]
}
}
}
}
// sourceSets.main {
// jni.srcDirs = []
// jniLibs.srcDir 'src/main/libs'
// }
}
android.abis {
create("x86") {
cppFlags.add('-DENABLE_SSSE3')
// ldLibs.add('')
// ldFlags('')
}
create("armeabi-v7a") {
cppFlags.addAll(["-mhard-float", "-D_NDK_MATH_NO_SOFTFP=1", "-mfloat-abi=hard"])
ldLibs.add("m_hard")
ldFlags.add("-Wl,--no-warn-mismatch")
}
}
android.lintOptions {
checkReleaseBuilds = false
abortOnError = false
}
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle-experimental:0.8.0-alpha2'
// classpath 'com.android.tools.build:gradle:2.1.0'
}
}
dependencies {
}