Adam S
01/21/2023, 8:44 PMfun main() {}
. Is there an easy way with Gradle to create executables for each file? So one Kotlin/Native Gradle project can produce multiple executables?
I’ve tried creating a separate target for each file, but it’s really messy - with conflicting Configurations and overlapping sources…ephemient
01/21/2023, 9:12 PMkotlin {
linuxX64 {
binaries {
executable("one") {
entryPoint("pkg.one.main")
}
executable("two") {
entryPoint("pkg.two.main")
}
executable("...") {
./gradlew link{One,Two,...}{Debug,Release}ExecutableLinuxX64
ls build/bin/linuxX64/{one,two,...}{Debug,Release}Executable/{one,two,...}.kexe
can be applied to native targets other than linuxX64
too, of courseAdam S
01/22/2023, 12:55 PM