[K/N] Remove jsinterop because K/N wasm32 target is removed ^KT-59008
See https://kotl.in/native-targets-tiers for details
This commit is contained in:
committed by
Space Team
parent
857bfeb92c
commit
3ec4f2e0ee
@@ -466,33 +466,6 @@ tasks.named("clean") {
|
||||
}
|
||||
}
|
||||
|
||||
val generateJsMath by tasks.registering {
|
||||
dependsOn(":distCompiler")
|
||||
doLast {
|
||||
val distDir: File by project
|
||||
val jsinteropScript = if (PlatformInfo.isWindows()) "jsinterop.bat" else "jsinterop"
|
||||
val jsinterop = "$distDir/bin/$jsinteropScript"
|
||||
val targetDir = "$buildDir/generated"
|
||||
|
||||
project.exec {
|
||||
commandLine(
|
||||
jsinterop,
|
||||
"-pkg", "kotlinx.interop.wasm.math",
|
||||
"-o", "$targetDir/math",
|
||||
"-target", "wasm32"
|
||||
)
|
||||
}
|
||||
|
||||
val generated = file("$targetDir/math-build/natives/js_stubs.js")
|
||||
val mathJs = file("src/main/js/math.js")
|
||||
mathJs.writeText(
|
||||
"// NOTE: THIS FILE IS AUTO-GENERATED!\n" +
|
||||
"// Run ':runtime:generateJsMath' to re-generate it.\n\n"
|
||||
)
|
||||
mathJs.appendText(generated.readText())
|
||||
}
|
||||
}
|
||||
|
||||
// region: Stdlib
|
||||
|
||||
val commonStdlibSrcDirs = project(":kotlin-stdlib-common")
|
||||
|
||||
Reference in New Issue
Block a user