|
|
@@ -46,7 +46,8 @@ android {
|
|
|
System.getenv("ANDROID_CCACHE")?.let { add("-DANDROID_CCACHE=$it") }
|
|
|
add("-DGRADLE_BUILD_DIR=$buildDir")
|
|
|
// Pass along matching Gradle properties as CMake build options
|
|
|
- addAll(listOf(
|
|
|
+ addAll(
|
|
|
+ listOf(
|
|
|
"URHO3D_LIB_TYPE",
|
|
|
"URHO3D_ANGELSCRIPT",
|
|
|
"URHO3D_LUA",
|
|
|
@@ -63,14 +64,15 @@ android {
|
|
|
"URHO3D_FILEWATCHER",
|
|
|
"URHO3D_PROFILING",
|
|
|
"URHO3D_LOGGING",
|
|
|
- "URHO3D_THREADING")
|
|
|
+ "URHO3D_THREADING"
|
|
|
+ )
|
|
|
.filter { project.hasProperty(it) }
|
|
|
.map { "-D$it=${project.property(it)}" }
|
|
|
)
|
|
|
// In order to get clean module segregation, always exclude player/samples from AAR
|
|
|
addAll(listOf(
|
|
|
- "URHO3D_PLAYER",
|
|
|
- "URHO3D_SAMPLES"
|
|
|
+ "URHO3D_PLAYER",
|
|
|
+ "URHO3D_SAMPLES"
|
|
|
).map { "-D$it=0" })
|
|
|
}
|
|
|
targets.add("Urho3D")
|
|
|
@@ -80,8 +82,11 @@ android {
|
|
|
abi {
|
|
|
isEnable = project.hasProperty("ANDROID_ABI")
|
|
|
reset()
|
|
|
- include(*(project.findProperty("ANDROID_ABI") as String? ?: "")
|
|
|
- .split(',').toTypedArray())
|
|
|
+ include(
|
|
|
+ *(project.findProperty("ANDROID_ABI") as String? ?: "")
|
|
|
+ .split(',')
|
|
|
+ .toTypedArray()
|
|
|
+ )
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -210,9 +215,9 @@ publishing {
|
|
|
afterEvaluate {
|
|
|
// Exclude publishing STATIC-debug AAR because its size exceeds 250MB limit allowed by Bintray
|
|
|
android.buildTypes
|
|
|
- .map { it.name }
|
|
|
- .filter { System.getenv("CI") == null || project.libraryType == "SHARED" || it == "release" }
|
|
|
- .forEach { artifact(tasks["zipBuildTree${it.capitalize()}"]) }
|
|
|
+ .map { it.name }
|
|
|
+ .filter { System.getenv("CI") == null || project.libraryType == "SHARED" || it == "release" }
|
|
|
+ .forEach { artifact(tasks["zipBuildTree${it.capitalize()}"]) }
|
|
|
}
|
|
|
artifact(tasks["sourcesJar"])
|
|
|
artifact(tasks["documentationZip"])
|