diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 3449d2b2..c12276ad 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -28,7 +28,7 @@ kermit = "2.0.4" ksp = "2.0.20-Beta1-1.0.22" okio = "3.9.0" spotless = "7.0.0.BETA1" -sqlite-wasm-binary = "0.1-alpha08" +sqlite-wasm-binary = "0.1-alpha09" [libraries] androidx-collection = { group = "androidx.collection", name = "collection", version.ref = "androidx-collection" } diff --git a/kotlin-js-store/yarn.lock b/kotlin-js-store/yarn.lock index 100864ea..d414b047 100644 --- a/kotlin-js-store/yarn.lock +++ b/kotlin-js-store/yarn.lock @@ -52,11 +52,6 @@ "@jridgewell/resolve-uri" "^3.1.0" "@jridgewell/sourcemap-codec" "^1.4.14" -"@js-joda/core@3.2.0": - version "3.2.0" - resolved "https://registry.yarnpkg.com/@js-joda/core/-/core-3.2.0.tgz#3e61e21b7b2b8a6be746df1335cf91d70db2a273" - integrity sha512-PMqgJ0sw5B7FKb2d5bWYIoxjri+QlW/Pys7+Rw82jSH0QN3rB05jZ/VrrsUdh1w4+i2kw9JOejXGq/KhDOX7Kg== - "@socket.io/component-emitter@~3.1.0": version "3.1.2" resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz#821f8442f4175d8f0467b9daf26e3a18e2d02af2" diff --git a/sqlite-common/build.gradle.kts b/sqlite-common/build.gradle.kts index be55b591..5259c941 100644 --- a/sqlite-common/build.gradle.kts +++ b/sqlite-common/build.gradle.kts @@ -21,6 +21,7 @@ kotlin { linuxX64() macosArm64() macosX64() + mingwX64() sourceSets { commonMain.dependencies { diff --git a/sqlite-embedder-chasm/build.gradle.kts b/sqlite-embedder-chasm/build.gradle.kts index 6dd64498..9b858f52 100644 --- a/sqlite-embedder-chasm/build.gradle.kts +++ b/sqlite-embedder-chasm/build.gradle.kts @@ -22,6 +22,11 @@ kotlin { linuxX64() macosArm64() macosX64() + mingwX64 { + binaries.all { + linkerOpts("-lole32") + } + } sourceSets { commonMain.dependencies { diff --git a/wasi-emscripten-host-test-fixtures/build.gradle.kts b/wasi-emscripten-host-test-fixtures/build.gradle.kts index 55e2923b..669f9182 100644 --- a/wasi-emscripten-host-test-fixtures/build.gradle.kts +++ b/wasi-emscripten-host-test-fixtures/build.gradle.kts @@ -12,12 +12,10 @@ group = "ru.pixnews.wasm-sqlite-open-helper" kotlin { jvm() - js(IR) { - nodejs() - } linuxX64() macosArm64() macosX64() + mingwX64() sourceSets { commonMain.dependencies { diff --git a/wasi-emscripten-host/build.gradle.kts b/wasi-emscripten-host/build.gradle.kts index f5a94fe4..e05f53a6 100644 --- a/wasi-emscripten-host/build.gradle.kts +++ b/wasi-emscripten-host/build.gradle.kts @@ -18,12 +18,10 @@ version = wasmSqliteVersions.getSubmoduleVersionProvider( kotlin { jvm() - js(IR) { - nodejs() - } linuxX64() macosArm64() macosX64() + mingwX64() sourceSets { commonMain.dependencies { diff --git a/wasi-emscripten-host/src/mingwMain/kotlin/EmbedderHost.mingw.kt b/wasi-emscripten-host/src/mingwMain/kotlin/EmbedderHost.mingw.kt new file mode 100644 index 00000000..6fdb728c --- /dev/null +++ b/wasi-emscripten-host/src/mingwMain/kotlin/EmbedderHost.mingw.kt @@ -0,0 +1,13 @@ +/* + * Copyright 2024, the wasm-sqlite-open-helper project authors and contributors. Please see the AUTHORS file + * for details. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. + * SPDX-License-Identifier: Apache-2.0 + */ + +package ru.pixnews.wasm.sqlite.open.helper.host + +import ru.pixnews.wasm.sqlite.open.helper.host.EmbedderHost.Builder + +internal actual fun createDefaultEmbedderHost(builder: Builder): EmbedderHost { + TODO("Not yet implemented") +}