mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 13:29:06 +08:00
185a7aa23a
* [sqlite3] Control features with a configuration header rather than CMake or pkgconfig. Resolves https://github.com/microsoft/vcpkg/pull/29335 Alternate of https://github.com/microsoft/vcpkg/pull/29258 @Neumann-A points out that controlling features through CMake configs and pkgconfig causes MSBuild customers to be left out in the cold. Moreover, attempting to add parenthesis to the SQLITE_API marco breaks autotools. This change makes such parenthesis unnecessary and ensures the configuration bits are used with automatic linking. * Ensure feature controls affect the .c too, use less MAYBE_UNUSED. * Correctly note that zlib has no effect without tools. * Always add DL_LIBS even when static linking. * [sqlitecpp] Unconditionally enable column metadata because that is done in the sqlite3 port. * Add missing -l prefix on CMAKE_DL_LIBS
30 lines
1011 B
C
30 lines
1011 B
C
/*
|
|
* This file was generated to inject vcpkg feature selections into the installed copy of
|
|
* sqlite so that consumers need not get the values from pkgconfig or CMake configs.
|
|
*
|
|
* No include guard: intentionally reuses the include guard from sqlite3.h.
|
|
*/
|
|
|
|
#ifndef SQLITE_API
|
|
#cmakedefine SQLITE_API @SQLITE_API@
|
|
#endif
|
|
|
|
#define SQLITE_ENABLE_UNLOCK_NOTIFY 1
|
|
#cmakedefine SQLITE_ENABLE_FTS3
|
|
#cmakedefine SQLITE_ENABLE_FTS4
|
|
#cmakedefine SQLITE_ENABLE_FTS5
|
|
#cmakedefine SQLITE_ENABLE_MEMSYS3
|
|
#cmakedefine SQLITE_ENABLE_MEMSYS5
|
|
#cmakedefine SQLITE_ENABLE_MATH_FUNCTIONS
|
|
#cmakedefine SQLITE_ENABLE_UPDATE_DELETE_LIMIT
|
|
#cmakedefine SQLITE_ENABLE_RTREE
|
|
#cmakedefine SQLITE_ENABLE_SESSION
|
|
#cmakedefine SQLITE_ENABLE_PREUPDATE_HOOK
|
|
#cmakedefine SQLITE_OMIT_LOAD_EXTENSION
|
|
#cmakedefine SQLITE_ENABLE_GEOPOLY
|
|
#cmakedefine SQLITE_ENABLE_JSON1
|
|
#cmakedefine SQLITE_OS_WIN @SQLITE_OS_WIN@
|
|
#cmakedefine SQLITE_OS_WINRT @SQLITE_OS_WINRT@
|
|
#define SQLITE_ENABLE_COLUMN_METADATA 1
|
|
#cmakedefine SQLITE_OS_UNIX @SQLITE_OS_UNIX@
|