-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
43 lines (41 loc) · 1.33 KB
/
build.gradle
File metadata and controls
43 lines (41 loc) · 1.33 KB
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
apply plugin: 'com.android.model.library'
def libraw_directory = 'LibRaw-0.19.2'
model {
android {
compileSdkVersion = 27
buildToolsVersion = '27.0.3'
defaultConfig {
minSdkVersion.apiLevel = 16
targetSdkVersion.apiLevel = 27
versionCode = 1
versionName = '1.0'
}
ndk {
platformVersion 9
moduleName = 'libraw'
stl = 'c++_static'
cppFlags.addAll(['-std=c++11', '-fexceptions', '-fpermissive'])
ldLibs.addAll(['atomic'])
}
sources.main {
jni {
source {
srcDirs (libraw_directory + "/src")
srcDirs (libraw_directory + "/internal")
excludes = [
"**/dcb_demosaicing.c",
"**/aahd_demosaic.cpp",
"**/dht_demosaic.cpp",
"**/libraw_x3f.cpp",
"**/wf_filtering.cpp",
"**/libraw_fuji_compressed.cpp"
]
}
exportedHeaders {
srcDirs "src"
srcDirs libraw_directory
}
}
}
}
}