Skip to content

Commit 0c55200

Browse files
committed
Enable LIBSQL_ENCRYPTION in cmake
1 parent 9e56392 commit 0c55200

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libsql-ffi/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
465465
.build_target("sqlite3mc_static")
466466
.define("SQLITE3MC_STATIC", "ON")
467467
.define("CODEC_TYPE", "AES256")
468+
.define("LIBSQL_ENCRYPTION", "ON")
468469
.define("SQLITE3MC_BUILD_SHELL", "OFF")
469470
.define("SQLITE_SHELL_IS_UTF8", "OFF")
470471
.define("SQLITE_USER_AUTHENTICATION", "OFF")
@@ -495,6 +496,8 @@ fn build_multiple_ciphers(out_path: &Path) -> PathBuf {
495496
config.define("LIBSQL_ENABLE_WASM_RUNTIME", "1");
496497
}
497498

499+
config.define("LIBSQL_ENCRYPTION", "1");
500+
498501
if cfg!(feature = "session") {
499502
config
500503
.define("SQLITE_ENABLE_PREUPDATE_HOOK", "ON")

libsql-ffi/bundled/SQLite3MultipleCiphers/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ set(SQLITE3MC_BASE_DEFINITIONS
124124
$<$<BOOL:${LIBSQL_ENABLE_WASM_RUNTIME}>:LIBSQL_ENABLE_WASM_RUNTIME=1>
125125
LIBSQL_EXTRA_PRAGMAS=1
126126
LIBSQL_CUSTOM_PAGER_CODEC=1
127+
LIBSQL_ENCRYPTION=1
127128

128129
SQLITE_ENABLE_DBSTAT_VTAB=1
129130
SQLITE_ENABLE_DBPAGE_VTAB=1

0 commit comments

Comments
 (0)