pardom
06/09/2020, 1:44 PMtargets {
presets
.filterIsInstance<AbstractKotlinNativeTargetPreset<*>>()
.filter { it in supportedTargets }
.forEach { preset ->
targetFromPreset(preset, preset.name) {
compilations["main"].source(sourceSets["nativeMain"])
compilations["test"].source(sourceSets["nativeTest"])
}
}
}
russhwolf
06/09/2020, 1:46 PMKris Wong
06/09/2020, 1:50 PMtargets
block, directly in the kotlin
block. it seems valid, though I haven't tried to verify it works properly.russhwolf
06/09/2020, 1:58 PMsupportedTargets
by inspecting your dependencies.Kris Wong
06/09/2020, 1:59 PMpardom
08/17/2020, 5:30 PM