Skip to content

Commit

Permalink
Add MinGW target, remove JS stub (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
illarionov authored Jul 19, 2024
1 parent 849aea8 commit 694bd70
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
5 changes: 0 additions & 5 deletions kotlin-js-store/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
"@jridgewell/resolve-uri" "^3.1.0"
"@jridgewell/sourcemap-codec" "^1.4.14"

"@js-joda/[email protected]":
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"
Expand Down
1 change: 1 addition & 0 deletions sqlite-common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ kotlin {
linuxX64()
macosArm64()
macosX64()
mingwX64()

sourceSets {
commonMain.dependencies {
Expand Down
5 changes: 5 additions & 0 deletions sqlite-embedder-chasm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ kotlin {
linuxX64()
macosArm64()
macosX64()
mingwX64 {
binaries.all {
linkerOpts("-lole32")
}
}

sourceSets {
commonMain.dependencies {
Expand Down
4 changes: 1 addition & 3 deletions wasi-emscripten-host-test-fixtures/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ group = "ru.pixnews.wasm-sqlite-open-helper"

kotlin {
jvm()
js(IR) {
nodejs()
}
linuxX64()
macosArm64()
macosX64()
mingwX64()

sourceSets {
commonMain.dependencies {
Expand Down
4 changes: 1 addition & 3 deletions wasi-emscripten-host/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,10 @@ version = wasmSqliteVersions.getSubmoduleVersionProvider(

kotlin {
jvm()
js(IR) {
nodejs()
}
linuxX64()
macosArm64()
macosX64()
mingwX64()

sourceSets {
commonMain.dependencies {
Expand Down
13 changes: 13 additions & 0 deletions wasi-emscripten-host/src/mingwMain/kotlin/EmbedderHost.mingw.kt
Original file line number Diff line number Diff line change
@@ -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")
}

0 comments on commit 694bd70

Please sign in to comment.