1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-20 14:20:06 +02:00
audacity/cmake-proxies/sqlite/CMakeLists.txt
Leland Lucius 5b41115bd0 AUP3: Mostly rework of CopyTo()
It now uses VACUUM INTO instead of the SQLite backup API
in hopes that the copies will be smaller. And VACUUM INTO
is "supposed" to be faster, but time will tell.  It's easy
to put the backup API usage back in.

This also fixes a bit I missed with redoing the orphan block
handling that was reported by Paul.

And finally, it renames the AutoRecovery.cpp/.h files and AutoSaveFile
class to ProjectSerializer since the AutoSaveFile class is being
used for regular project documents now and it doesn't write to a
file anymore.

If anyone has a better idea for a name other than ProjectSerializer
feel free to change it.  I hate naming things.
2020-07-10 00:50:52 -05:00

46 lines
1.1 KiB
CMake

add_library( ${TARGET} STATIC )
def_vars()
list( APPEND SOURCES
PRIVATE
# sqlite
${TARGET_ROOT}/sqlite3.c
${TARGET_ROOT}/sqlite3.h
)
list( APPEND INCLUDES
PUBLIC
${TARGET_ROOT}
)
list( APPEND DEFINES
PRIVATE
SQLITE_ENABLE_SNAPSHOT=1
SQLITE_DQS=0
# SQLITE_DEFAULT_PAGE_SIZE=4096
SQLITE_DEFAULT_PAGE_SIZE=65536
SQLITE_DEFAULT_MEMSTATUS=0
SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
SQLITE_LIKE_DOESNT_MATCH_BLOBS
SQLITE_MAX_EXPR_DEPTH=0
SQLITE_OMIT_DEPRECATED
SQLITE_OMIT_SHARED_CACHE
SQLITE_USE_ALLOCA
SQLITE_OMIT_AUTOINIT
$<$<BOOL:${HAVE_FDATASYNC}>:HAVE_FDATASYNC>
$<$<BOOL:${HAVE_GMTIME_R}>:HAVE_GMTIME_R>
$<$<BOOL:${HAVE_ISNAN}>:HAVE_ISNAN>
$<$<BOOL:${HAVE_LOCALTIME_R}>:HAVE_LOCALTIME_R>
$<$<BOOL:${HAVE_LOCALTIME_S}>:HAVE_LOCALTIME_S>
)
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
target_sources( ${TARGET} PRIVATE ${SOURCES} )
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )