forked from awslabs/aws-crt-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
27 lines (21 loc) · 927 Bytes
/
settings.gradle.kts
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
/*
* This file was generated by the Gradle 'init' task.
*/
rootProject.name = "aws-crt"
include(":native")
project(":native").projectDir = File("${settingsDir}/src/native")
include(":smithy-crt")
include(":s3-native-client")
val localPropertiesFile = File(rootProject.projectDir, "local.properties")
val localProperties = java.util.Properties()
if (localPropertiesFile.exists()) {
localProperties.load(localPropertiesFile.inputStream())
}
val androidHomeSet = System.getenv().containsKey("ANDROID_HOME") || localProperties.containsKey("sdk.dir")
if (androidHomeSet) {
val androidHome = System.getenv()["ANDROID_HOME"] ?: localProperties.getProperty("sdk.dir")
println("Android home: $androidHome")
includeBuild("./android")
}else {
logger.warn("Android SDK dir not set, android build disabled. Define location with `sdk.dir` in local.properties file or with `ANDROID_HOME` environment variable ")
}