【发布时间】:2019-07-29 22:54:51
【问题描述】:
Kotlin/Native allows to produce multiple binaries.
kotlin {
binaries {
executable() // Executable with default name.
executable("foo") // Custom binary name.
executable("bar", listOf(RELEASE)) // Custom build types.
...
}
}
gradle build 将为每个可执行文件触发构建。在某些时候,制作所有可执行二进制文件开始需要很长时间。是否可以只构建一个可执行文件?类似gradle buildFoo
【问题讨论】:
标签: kotlin kotlin-native