Refactor SQLite compile-time options.

This commit is contained in:
levlam 2021-09-23 12:05:09 +03:00
parent 23f585caf0
commit a18c263fa3

View File

@ -32,17 +32,21 @@ if (WIN32)
endif() endif()
target_compile_definitions(tdsqlite PRIVATE target_compile_definitions(tdsqlite PRIVATE
-DOMIT_MEMLOCK
-DSQLITE_DEFAULT_MEMSTATUS=0 -DSQLITE_DEFAULT_MEMSTATUS=0
-DSQLITE_DEFAULT_SYNCHRONOUS=1
-DSQLITE_DEFAULT_RECURSIVE_TRIGGERS=1 -DSQLITE_DEFAULT_RECURSIVE_TRIGGERS=1
-DSQLITE_TEMP_STORE=2 -DSQLITE_DEFAULT_SYNCHRONOUS=1
-DSQLITE_OMIT_LOAD_EXTENSION -DSQLITE_DISABLE_LFS
-DSQLITE_ENABLE_FTS5
-DSQLITE_HAS_CODEC
-DSQLITE_OMIT_DECLTYPE -DSQLITE_OMIT_DECLTYPE
-DSQLITE_OMIT_PROGRESS_CALLBACK
-DSQLITE_OMIT_DEPRECATED -DSQLITE_OMIT_DEPRECATED
-DSQLITE_OMIT_DESERIALIZE
-DSQLITE_OMIT_LOAD_EXTENSION
-DSQLITE_OMIT_PROGRESS_CALLBACK
#-DSQLITE_OMIT_SHARED_CACHE #-DSQLITE_OMIT_SHARED_CACHE
-DSQLITE_TEMP_STORE=2
) )
target_compile_definitions(tdsqlite PRIVATE -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2 -DSQLITE_ENABLE_FTS5 -DSQLITE_DISABLE_LFS -DOMIT_MEMLOCK)
if (NOT WIN32) if (NOT WIN32)
target_compile_definitions(tdsqlite PRIVATE -DHAVE_USLEEP -DNDEBUG=1) target_compile_definitions(tdsqlite PRIVATE -DHAVE_USLEEP -DNDEBUG=1)