-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (54 loc) · 1.56 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
60
61
plugins {
kotlin("multiplatform") version "2.0.20"
kotlin("plugin.serialization") version "2.0.20"
}
group = "org.liamjd.pi"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven(url = "https://kotlin.bintray.com/kotlinx/")
mavenLocal()
}
kotlin {
linuxArm64 {
compilations.getByName("main") {
cinterops {
val libcurl by creating {
definitionFile.set(project.file("src/nativeInterop/cinterop/libcurl.def"))
includeDirs("src/include/curl")
}
val libbcm by creating {
definitionFile.set(project.file("src/nativeInterop/cinterop/libbcm.def"))
}
}
}
binaries {
executable {
entryPoint = "org.liamjd.pi.main"
}
}
}
mingwX64()
sourceSets {
commonMain.dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.6.1")
}
commonTest.dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
linuxMain.dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.2")
}
/* jvmTest.dependencies {
implementation(kotlin("test-junit"))
}*/
/*
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
*/
}
jvmToolchain(17)
}