vcpkg/ports/sqlite3/vcpkg.json
Billy O'Neal 185a7aa23a
[sqlite3] Control features with a configuration header (#29376)
* [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
2023-02-06 12:00:37 -08:00

66 lines
1.6 KiB
JSON

{
"name": "sqlite3",
"version": "3.40.1",
"port-version": 1,
"description": "SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine.",
"homepage": "https://sqlite.org/",
"license": "blessing",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"fts3": {
"description": "Enable the FTS3 extension"
},
"fts4": {
"description": "Enable the FTS4 extension"
},
"fts5": {
"description": "Enable the FTS5 extension"
},
"geopoly": {
"description": "Enable geopoly functionality for sqlite3"
},
"json1": {
"description": "Enable JSON functionality for sqlite3"
},
"limit": {
"description": "Enable the UPDATE/DELETE LIMIT clause"
},
"math": {
"description": "Enable math functions"
},
"memsys3": {
"description": "Enable MEMSYS3"
},
"memsys5": {
"description": "Enable MEMSYS5"
},
"omit-load-extension": {
"description": "Enable loading of external extensions"
},
"rtree": {
"description": "Enable the RTREE extension"
},
"session": {
"description": "Enable the SESSION extension"
},
"tool": {
"description": "Build sqlite3 executable"
},
"zlib": {
"description": "Build sqlite3 command line tool with zlib support; has no effect on the library itself",
"dependencies": [
"zlib"
]
}
}
}