-
Notifications
You must be signed in to change notification settings - Fork 73
/
build.gradle.kts
44 lines (37 loc) · 1.23 KB
/
build.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
plugins {
kotlin("multiplatform") version "1.3.70-eap-19" apply false
id("com.android.application") version "3.3.0" apply false
}
allprojects {
repositories {
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
maven("https://dl.bintray.com/kotlin/kotlin-dev")
}
}
val hostOs = System.getProperty("os.name")
val isMacos by extra(hostOs == "Mac OS X")
val isLinux by extra(hostOs == "Linux")
val isWindows by extra(hostOs.startsWith("Windows"))
extra["hostPresetName"] = when {
isMacos -> "macosX64"
isLinux -> "linuxX64"
isWindows -> "mingwX64"
else -> error("Unsupported host platform")
}
val libcurlPath by extra(file("external/curl/android"))
val janssonPath by extra(file("external/jansson/android"))
val openalPath by extra(file("external/openal/android"))
val buildAll by tasks.creating {
if (project.findProject(":clients:android") != null) {
dependsOn(":clients:android:buildApk")
}
dependsOn(":httpserver:assemble")
dependsOn(":clients:ios:assemble")
dependsOn(":clients:cli:assemble")
dependsOn(":clients:webassembly:assemble")
dependsOn(":utils:assemble")
}
val buildServer by tasks.creating {
dependsOn(":httpserver:assemble")
}