a7f6338875
support for targeting API 14 and 15 was removed in NDK 18, so set minimum version to 16 mips support was removed in NDK 17 Clang now takes care about correct linking with libc++ shared or static, so don't manually specify them anymore. Same with __ANDROID_API_LEVEL__ define and the sysroot / isystem handling, that is all covered by a single -target <triple><version> simplifying things quite a bit. also align ownloud sdk values with main build.gradle Change-Id: Ib3ae4484e52214677e826270b731ecf7c5c15445 Reviewed-on: https://gerrit.libreoffice.org/77104 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
57 lines
1.3 KiB
Groovy
57 lines
1.3 KiB
Groovy
apply plugin: 'com.android.library'
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.1.3'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
}
|
|
|
|
android {
|
|
useLibrary 'org.apache.http.legacy'
|
|
|
|
compileOptions {
|
|
encoding 'ISO8859-1'
|
|
sourceCompatibility JavaVersion.VERSION_1_7
|
|
targetCompatibility JavaVersion.VERSION_1_7
|
|
}
|
|
|
|
compileSdkVersion 26
|
|
buildToolsVersion "27.0.3"
|
|
|
|
defaultConfig {
|
|
minSdkVersion 16
|
|
targetSdkVersion 26
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
manifest.srcFile 'AndroidManifest.xml'
|
|
java {
|
|
srcDirs = [
|
|
'libs/commons-codec-1.9/src/main/java',
|
|
'libs/commons-httpclient-3.1/src/java',
|
|
'libs/jackrabbit-webdav-2.7.2/src/main/java',
|
|
'libs/slf4j-1.7.12/src/java',
|
|
'libs/tomcat-7.0.40/java',
|
|
'src'
|
|
]
|
|
}
|
|
resources {
|
|
srcDirs = [
|
|
'libs/tomcat-7.0.40/java',
|
|
'libs/jackrabbit-webdav-2.7.2/src/main/java'
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|