Daniel Berg
04/25/2020, 8:21 PMDaniel Berg
04/25/2020, 8:21 PMkotlin {
jvm()
// For ARM, should be changed to iosArm32 or iosArm64
// For Linux, should be changed to e.g. linuxX64
// For MacOS, should be changed to e.g. macosX64
// For Windows, should be changed to e.g. mingwX64
macosX64("macos") {
binaries {
executable {
linkerOpts = ['-lncurses']
entryPoint = "sample.main"
}
}
compilations.main {
cinterops {
ncurses {
defFile project.file("./src/nativeInterop/cinterop/ncurses.def")
compilerOpts '-I/usr/local/opt/ncurses/include'
}
}
}
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
}
}
jvmMain {
dependencies {
implementation kotlin('stdlib-jdk8')
}
}
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
macosMain {
}
macosTest {
}
}
}
Daniel Berg
04/25/2020, 8:32 PM