File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FetchContent_Declare(
18
18
19
19
FetchContent_Declare (
20
20
sqlite3mc
21
- URL https://github.com/utelle/SQLite3MultipleCiphers/releases/download/v2.0.1 /sqlite3mc-2.0.1 -sqlite-3.47.2 -amalgamation.zip
21
+ URL https://github.com/utelle/SQLite3MultipleCiphers/releases/download/v2.0.2 /sqlite3mc-2.0.2 -sqlite-3.48.0 -amalgamation.zip
22
22
DOWNLOAD_EXTRACT_TIMESTAMP NEW
23
23
)
24
24
@@ -51,7 +51,18 @@ macro(base_sqlite3_target name debug crypto)
51
51
if (${crypto} )
52
52
list (APPEND sources "${sqlite3mc_SOURCE_DIR} /sqlite3mc_amalgamation.c" )
53
53
list (APPEND sources "${CMAKE_CURRENT_SOURCE_DIR} /getentropy.c" )
54
- list (APPEND flags "-DSQLITE_OMIT_AUTOINIT" )
54
+ # We only want to support the chacha20 cipher, some of the others are tricky to
55
+ # compile to webassembly.
56
+ list (APPEND flags
57
+ "-DSQLITE_OMIT_AUTOINIT"
58
+ "-DHAVE_CIPHER_AES_128_CBC=0"
59
+ "-DHAVE_CIPHER_AES_256_CBC=0"
60
+ "-DHAVE_CIPHER_SQLCIPHER=0"
61
+ "-DHAVE_CIPHER_RC4=0"
62
+ "-DHAVE_CIPHER_ASCON128=0"
63
+ "-DHAVE_CIPHER_AEGIS=0"
64
+ "-DHAVE_CIPHER_CHACHA20=1"
65
+ )
55
66
else ()
56
67
list (APPEND sources "${sqlite3_SOURCE_DIR} /sqlite3.c" )
57
68
endif ()
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ targets:
29
29
enabled : false
30
30
31
31
$default :
32
+ sources :
33
+ include :
34
+ - lib/**
35
+ - example/web/**
32
36
builders :
33
37
build_web_compilers:entrypoint :
34
38
generate_for :
You can’t perform that action at this time.
0 commit comments