# [libsl3] Add libsl3 (#52883)

This commit is contained in:
Harald 2026-07-15 23:51:54 +02:00 committed by GitHub
parent 39b8ea9569
commit 1db8427337
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,29 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO a4z/libsl3
REF "v${VERSION}"
SHA512 392c73c9387a17286ea48e2cb5b70b8fc4713f5749947235631d5a297f11e69cafb92aed15fe766c071784dccd4e5e2fbb3c3ce715c7ffbc6495ee3913f9b12d
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DCMAKE_CXX_STANDARD=17
-DCMAKE_CXX_STANDARD_REQUIRED=ON
-Dsl3_BUILD_DOCS=OFF
-Dsl3_USE_COMMON_COMPILER_WARNINGS=OFF
-Dsl3_USE_INTERNAL_SQLITE3=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME sl3 CONFIG_PATH lib/cmake/sl3)
vcpkg_copy_pdbs()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README.md")

4
ports/libsl3/usage Normal file
View File

@ -0,0 +1,4 @@
libsl3 provides CMake targets:
find_package(sl3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE a4z::sl3)

19
ports/libsl3/vcpkg.json Normal file
View File

@ -0,0 +1,19 @@
{
"name": "libsl3",
"version": "1.2.53003",
"description": "A C++ interface for SQLite 3.x.",
"homepage": "https://github.com/a4z/libsl3",
"documentation": "https://a4z.github.io/libsl3/",
"license": "MPL-2.0",
"dependencies": [
"sqlite3",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -5664,6 +5664,10 @@
"baseline": "3.8.1",
"port-version": 0
},
"libsl3": {
"baseline": "1.2.53003",
"port-version": 0
},
"libslirp": {
"baseline": "4.9.1",
"port-version": 0

9
versions/l-/libsl3.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "2057d3d5824beedb60282d76d85f742339ff19b9",
"version": "1.2.53003",
"port-version": 0
}
]
}