-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (50 loc) · 1.21 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 "1.4.20"
kotlin("plugin.serialization") version "1.4.10"
}
group = "org.liamjd.pi"
version = "1.1-SNAPSHOT"
repositories {
mavenCentral()
jcenter()
maven(url = "https://kotlin.bintray.com/kotlinx/")
mavenLocal()
}
kotlin {
val hostOs = System.getProperty("os.name")
val isMingwX64 = hostOs.startsWith("Windows")
linuxArm32Hfp("Pi") {
compilations {
"main" {
cinterops {
val libbcm by cinterops.creating {}
val libbmp by cinterops.creating {}
val libcurl by cinterops.creating {
includeDirs("src/include/curl")
}
}
}
}
binaries {
/* staticLib {
this.optimized = false
}*/
executable {
this.optimized = false
entryPoint = "org.liamjd.pi.main"
}
}
}
sourceSets {
val PiMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-io:0.1.16")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.0.1")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.2.0-SNAPSHOT")
}
}
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}