|
1 | | -# Note: Last built with version 2.0.15 of Emscripten |
2 | | - |
3 | | -# TODO: Emit a file showing which version of emcc and SQLite was used to compile the emitted output. |
4 | 1 | # TODO: Create a release on Github with these compiled assets rather than checking them in |
5 | 2 | # TODO: Consider creating different files based on browser vs module usage: https://github.com/vuejs/vue/tree/dev/dist |
6 | 3 |
|
7 | 4 | # I got this handy makefile syntax from : https://github.com/mandel59/sqlite-wasm (MIT License) Credited in LICENSE |
8 | 5 | # To use another version of Sqlite, visit https://www.sqlite.org/download.html and copy the appropriate values here: |
9 | | -SQLITE_AMALGAMATION = sqlite-amalgamation-3490100 |
10 | | -SQLITE_AMALGAMATION_ZIP_URL = https://sqlite.org/2025/sqlite-amalgamation-3490100.zip |
11 | | -SQLITE_AMALGAMATION_ZIP_SHA3 = e7eb4cfb2d95626e782cfa748f534c74482f2c3c93f13ee828b9187ce05b2da7 |
| 6 | +SQLITE_AMALGAMATION = sqlite-amalgamation-3500400 |
| 7 | +SQLITE_AMALGAMATION_ZIP_URL = https://sqlite.org/2025/sqlite-amalgamation-3500400.zip |
| 8 | +SQLITE_AMALGAMATION_ZIP_SHA3 = f131b68e6ba5fb891cc13ebb5ff9555054c77294cb92d8d1268bad5dba4fa2a1 |
12 | 9 |
|
13 | 10 | # Note that extension-functions.c hasn't been updated since 2010-02-06, so likely doesn't need to be updated |
14 | 11 | EXTENSION_FUNCTIONS = extension-functions.c |
@@ -146,6 +143,8 @@ out/sqlite3.o: sqlite-src/$(SQLITE_AMALGAMATION) |
146 | 143 | mkdir -p out |
147 | 144 | # Generate llvm bitcode |
148 | 145 | $(EMCC) $(SQLITE_COMPILATION_FLAGS) -c sqlite-src/$(SQLITE_AMALGAMATION)/sqlite3.c -o $@ |
| 146 | + $(EMCC) --version | grep '^emcc ' | awk '{gsub(/-git$/, ""); print $NF}' | echo Emscripten > out/versions.txt |
| 147 | + grep '#define SQLITE_VERSION' sqlite-src/$(SQLITE_AMALGAMATION)/sqlite3.h | awk -F'"' '{print $2}' | xargs echo SQLite >> out/versions.txt |
149 | 148 |
|
150 | 149 | # Since the extension-functions.c includes other headers in the sqlite_amalgamation, we declare that this depends on more than just extension-functions.c |
151 | 150 | out/extension-functions.o: sqlite-src/$(SQLITE_AMALGAMATION) |
@@ -187,6 +186,10 @@ sqlite-src/$(SQLITE_AMALGAMATION)/$(EXTENSION_FUNCTIONS): cache/$(EXTENSION_FUNC |
187 | 186 | cp 'cache/$(EXTENSION_FUNCTIONS)' $@ |
188 | 187 |
|
189 | 188 |
|
| 189 | +.PHONY: ci |
| 190 | +ci: all |
| 191 | + npm ci && npm test |
| 192 | + |
190 | 193 | .PHONY: clean |
191 | 194 | clean: |
192 | 195 | rm -f out/* dist/* cache/* |
|
0 commit comments