Gradle plugins for Kotlin Multiplatform.
Gradle plugin for remapping file and directory locations during Kotlin/Native C interop compilation. Supports only native targets that use Clang compiler.
plugins {
id("io.technoirlab.vfs-overlay")
}
vfsOverlay {
// Example: Use Vulkan headers from Vulkan SDK instead of the ones bundled with the Kotlin/Native Android NDK toolchain.
mapping(
source = kotlinNativeDependenciesDir.map {
File(it, "target-toolchain-2-${HostManager.hostOs()}-android_ndk/sysroot/usr/include/vulkan")
},
target = providers.environmentVariable("VULKAN_SDK").map {
File(it, "${if (HostManager.hostIsMingw) "Include" else "include"}/vulkan")
}
)
}