Skip to content

Commit

Permalink
Delete Wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
terrakok committed Jan 4, 2022
1 parent b332df2 commit bde9169
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ kotlin {
Target.ANDROID -> "android()"
Target.JVM -> if (projectInfo.gradlePlugins.contains(GradlePlugin.APPLICATION)) "jvm {\n withJava()\n }" else "jvm()"
Target.JS -> "js {\n browser()\n nodejs()\n }"
Target.WASM -> "wasm32()"
Target.ANDROID_NATIVE -> "androidNativeArm64()"
Target.LINUX -> "linuxX64()"
Target.MACOS -> "macosX64()\n /* macosArm64() sure all macos dependencies support this target */"
Expand Down Expand Up @@ -135,7 +134,6 @@ kotlin {
Target.ANDROID -> singleSourceSet(Target.ANDROID, compilation, GETTING)
Target.JVM -> singleSourceSet(Target.JVM, compilation, GETTING)
Target.JS -> singleSourceSet(Target.JS, compilation, GETTING)
Target.WASM -> "val wasm32$compilation by getting"
Target.ANDROID_NATIVE -> "val androidNativeArm64$compilation by getting"
Target.LINUX -> "val linuxX64$compilation by getting"
Target.MACOS -> "val macosX64$compilation by getting ${intention}/* val macosArm64$compilation by getting */"
Expand All @@ -153,7 +151,6 @@ kotlin {
Target.ANDROID -> NAN
Target.JVM -> NAN
Target.JS -> NAN
Target.WASM -> "val wasm$compilation by creating"
Target.ANDROID_NATIVE -> "val androidNative$compilation by creating"
Target.LINUX -> "val linux$compilation by creating"
Target.MACOS -> "val macos$compilation by creating"
Expand All @@ -171,7 +168,6 @@ kotlin {
Target.ANDROID -> "android$compilation.dependsOn(common$compilation)"
Target.JVM -> "jvm$compilation.dependsOn(common$compilation)"
Target.JS -> "js$compilation.dependsOn(common$compilation)"
Target.WASM -> "wasm$compilation.dependsOn(native$compilation)${intention}wasm32$compilation.dependsOn(wasm$compilation)"
Target.ANDROID_NATIVE -> "androidNative$compilation.dependsOn(native$compilation) ${intention}androidNativeArm64$compilation.dependsOn(androidNative$compilation)"
Target.LINUX -> "linux$compilation.dependsOn(native$compilation)${intention}linuxX64$compilation.dependsOn(linux$compilation)"
Target.MACOS -> "macos$compilation.dependsOn(native$compilation)${intention}macosX64$compilation.dependsOn(macos$compilation)${intention}/* macosArm64$compilation.dependsOn(macos$compilation) */"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enum class GradlePlugin(
),
SQL_DELIGHT(
emptySet(),
setOf(Target.WASM),
emptySet(),
"SQLDelight"
);

Expand Down
2 changes: 0 additions & 2 deletions src/commonMain/kotlin/org/jetbrains/webwiz/models/Targets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ enum class Target(val targetName: String, val userName: String) {
LINUX("linux", "Linux"),
MACOS("macos", "macOS"),
WINDOWS("windows", "Windows"),
WASM("wasm", "WASM"),
ANDROID_NATIVE("androidNative", "Android Native")
}

private val NativeTargets = setOf(
Target.WASM,
Target.ANDROID_NATIVE,
Target.LINUX,
Target.MACOS,
Expand Down

0 comments on commit bde9169

Please sign in to comment.