Skip to content

Commit

Permalink
Merge pull request #27 from unoplatform/dev/jela/snapshot-feature
Browse files Browse the repository at this point in the history
Update to 3.40.0, enable snapshots feature
  • Loading branch information
jeromelaban authored Dec 1, 2022
2 parents e47c595 + 1985949 commit d443ec3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# dependencies

SQLITE_AMALGAMATION = sqlite-amalgamation-3340100
SQLITE_AMALGAMATION_ZIP_URL = https://www.sqlite.org/2021/sqlite-amalgamation-3340100.zip
SQLITE_AMALGAMATION_ZIP_SHA1 = adf5f5f2b859a9fcbf5fdf6f87b2cd42949c267c
SQLITE_AMALGAMATION = sqlite-amalgamation-3400000
SQLITE_AMALGAMATION_ZIP_URL = https://www.sqlite.org/2022/sqlite-amalgamation-3400000.zip
SQLITE_AMALGAMATION_ZIP_SHA1 = f66afab3b3f6a8bba752754c4dd518c3605fad5c

EXTENSION_FUNCTIONS = extension-functions.c
EXTENSION_FUNCTIONS_URL = http://www.sqlite.org/contrib/download/extension-functions.c?get=25
Expand Down Expand Up @@ -96,19 +96,19 @@ deps/$(EXTENSION_FUNCTIONS): cache/$(EXTENSION_FUNCTIONS)
clean-temp:
rm -rf temp

temp/bc/shell.bc: deps/$(SQLITE_AMALGAMATION) src/c/config.h
temp/bc/shell.bc: deps/$(SQLITE_AMALGAMATION) src/c/sqlite_cfg.h
mkdir -p temp/bc
$(EMCC) $(CFLAGS) 'deps/$(SQLITE_AMALGAMATION)/shell.c' -r -o $@

temp/bc/sqlite3.bc: deps/$(SQLITE_AMALGAMATION) src/c/config.h
temp/bc/sqlite3.bc: deps/$(SQLITE_AMALGAMATION) src/c/sqlite_cfg.h
mkdir -p temp/bc
$(EMCC) $(CFLAGS) -s LINKABLE=1 'deps/$(SQLITE_AMALGAMATION)/sqlite3.c' -r -o $@

temp/bc/extension-functions.bc: deps/$(EXTENSION_FUNCTIONS) src/c/config.h
temp/bc/extension-functions.bc: deps/$(EXTENSION_FUNCTIONS) src/c/sqlite_cfg.h
mkdir -p temp/bc
$(EMCC) $(CFLAGS) -s LINKABLE=1 'deps/$(EXTENSION_FUNCTIONS)' -r -o $@

temp/bc/wasmhelpers.bc: src/c/wasmhelpers.c src/c/config.h
temp/bc/wasmhelpers.bc: src/c/wasmhelpers.c src/c/sqlite_cfg.h
mkdir -p temp/bc
$(EMCC) $(CFLAGS) -s LINKABLE=1 src/c/wasmhelpers.c -r -o $@

Expand Down
1 change: 1 addition & 0 deletions src/c/config.h → src/c/sqlite_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
#define SQLITE_THREADSAFE 0
#define SQLITE_USE_URI 1
#define SQLITE_ENABLE_COLUMN_METADATA 1
#define SQLITE_ENABLE_SNAPSHOT 1
6 changes: 3 additions & 3 deletions src/nuget/uno.sqlite-wasm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="5.0.0">
<id>Uno.sqlite-wasm</id>
<version>3.34.1.4</version>
<version>3.40.0.1</version>
<title>Uno SQLite for WebAssembly</title>
<authors>nventive</authors>
<owners>nventive</owners>
<authors>Uno Platform</authors>
<owners>unoplatform</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectUrl>https://github.com/unoplatform/uno.sqlite-wasm</projectUrl>
<iconUrl>https://nv-assets.azurewebsites.net/logos/uno.png</iconUrl>
Expand Down

0 comments on commit d443ec3

Please sign in to comment.