cheeze2000
06/14/2022, 11:55 PMbuild.gradle.kts
kotlin {
linuxX64("native") {
binaries {
executable()
}
}
mingwX64("native") {
binaries {
executable()
}
}
}
is this the correct way to define multiple targets? if so, how do i run gradle to compile for both platforms? there is an error when i run gradle nativeBinaries
: The target 'native' already exists, but it was not created with the 'mingwX64' preset. To configure it, access it by name in kotlin.targets
or use the preset function 'linuxX64'.Vampire
06/15/2022, 7:22 AMnative
, so pick unique names.ephemient
06/15/2022, 8:49 AMlinuxX64("linuxX64")
and mingwX64("mingwX64")
.cheeze2000
06/15/2022, 8:53 AMephemient
06/15/2022, 8:58 AM./gradlew linkDebugExecutableLinuxX64
./gradlew linkReleaseExecutableLinuxX64
or just run
./gradlew assemble
which builds everything, just like in all Gradle projectscheeze2000
06/15/2022, 9:00 AMVampire
06/15/2022, 9:02 AMephemient
06/15/2022, 9:06 AM