-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
43 lines (39 loc) · 1 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
plugins {
kotlin("multiplatform") version "1.8.10"
id("convention.publication")
}
group = "io.github.syrou"
version = "0.0.3"
repositories {
mavenCentral()
}
val mingwPath = File(System.getenv("MINGW64_DIR") ?: "C:/msys64/mingw64")
kotlin {
mingwX64("native").apply {
binaries {
executable {
entryPoint = "main"
when (preset) {
presets["mingwX64"] -> linkerOpts("-L${mingwPath.resolve("lib")}")
}
}
}
compilations["main"].cinterops {
val directx by creating {
includeDirs {
allHeaders(
"C:\\msys64\\mingw64\\include"
)
}
}
}
}
sourceSets {
val nativeMain by getting{
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
}
}
val nativeTest by getting
}
}