Skip to content

Commit

Permalink
Extract korlibs-wasm (#2194)
Browse files Browse the repository at this point in the history
  • Loading branch information
soywiz committed Mar 9, 2024
1 parent 3303cd9 commit 4ce6a68
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 1 deletion.
1 change: 1 addition & 0 deletions korge-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies {
//add("androidMainApi", "androidx.javascriptengine:javascriptengine:1.0.0-alpha05")
//add("androidMainApi", "com.google.guava:guava:31.0.1-android")
}
commonMainApi(project(":korlibs-wasm"))
commonMainApi(project(":korlibs-ffi"))
commonMainApi(project(":korlibs-io"))
commonMainApi(project(":korlibs-template"))
Expand Down
1 change: 1 addition & 0 deletions korlibs-wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
20 changes: 20 additions & 0 deletions korlibs-wasm/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import korlibs.*

description = "Korlibs WASM"

project.extensions.extraProperties.properties.apply {
includeKotlinNativeDesktop()

applyProjectProperties(
"https://raw.githubusercontent.com/korlibs/korge/main/korlibs-wasm",
"",
"https://raw.githubusercontent.com/korlibs/korge/main/korlibs-wasm/LICENSE"
)
}

dependencies {
commonMainApi(project(":korlibs-io"))
//commonMainApi(project(":korlibs-ffi")) // @TODO: We should remove this dependency at some point
jvmMainImplementation(libs.asm.core)
jvmMainImplementation(libs.asm.util)
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package korlibs.wasm

/*
open class DenoWASMLib(content: ByteArray) : BaseWASMLib(content) {
val runner = DenoWasmProcessStdin.open(content)
Expand All @@ -15,3 +16,4 @@ open class DenoWASMLib(content: ByteArray) : BaseWASMLib(content) {
override fun invokeFuncIndirect(address: Int, vararg params: Any?): Any? = runner.executeFunctionIndirect(address, *params)
override fun close() = runner.close()
}
*/
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package korlibs.wasm

/*
import korlibs.datastructure.lock.*
import korlibs.ffi.*
import korlibs.io.file.sync.*
Expand Down Expand Up @@ -436,3 +437,4 @@ while (running) {
}
}
""".trimIndent()
*/
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package korlibs.wasm

import korlibs.ffi.*
import korlibs.math.*
import korlibs.memory.*
import korlibs.wasm.*
Expand Down
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ include(":korlibs-datastructure")
include(":korlibs-memory")
include(":korlibs-util")
include(":korlibs-ffi")
include(":korlibs-wasm")
include(":korlibs-math-core")
include(":korlibs-math")
include(":korlibs-inject")
Expand Down

0 comments on commit 4ce6a68

Please sign in to comment.