-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
59 lines (50 loc) · 1.41 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
kotlin("multiplatform") version "1.5.0"
id("maven-publish")
}
group = "com.robgulley"
version = "0.1"
repositories {
mavenCentral()
mavenLocal()
}
kotlin {
jvm()
macosX64()
linuxX64 {
val main by compilations.getting
val mraa by main.cinterops.creating {}
}
sourceSets {
val commonMain by getting {
dependencies {
implementation("co.touchlab:stately-isolate:1.1.7-a1")
}
}
val jvmMain by getting { //unused but necessary to make the commonizer think that the commonMain is truly common and not just native-common.
dependsOn(commonMain)
}
val desktopMain by creating {
dependsOn(commonMain)
dependencies {
implementation(kotlin("stdlib"))
implementation("com.robgulley:vector-lerp:1.0")
}
}
val desktopTest by creating {}
// val linuxArm64Main by getting
// val linuxArm64Test by getting
val linuxX64Main by getting {
dependsOn(desktopMain)
}
val linuxX64Test by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0-native-mt")
}
}
val macosX64Main by getting {
dependsOn(desktopMain)
}
val macosX64Test by getting
}
}