[tdscpp] Add new port (#39599)

This commit is contained in:
Mark Harmstone 2024-07-09 18:39:35 +01:00 committed by GitHub
parent 33d0114e3d
commit b65dbc0b65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 85 additions and 0 deletions

View File

@ -0,0 +1,33 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO maharmstone/tdscpp
REF "${VERSION}"
HEAD_REF master
SHA512 62cab90e17394a5f1c4058bc3a606c1f9542fbad4a749032964ae76dfbcf903f7ff1b20a459c2b3d784c4abb31b5abe7e582b30eaebd83ac9887629221f4a694
)
set(BUILD_tdscpp_ssl OFF)
if("ssl" IN_LIST FEATURES)
set(BUILD_tdscpp_ssl ON)
endif()
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DWITH_OPENSSL=${BUILD_tdscpp_ssl}
-DBUILD_SAMPLE=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/tdscpp)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Handle copyright
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENCE")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/tdscpp/usage Normal file
View File

@ -0,0 +1,4 @@
tdscpp provides CMake targets:
find_package(tdscpp REQUIRED)
target_link_libraries(main tdscpp)

35
ports/tdscpp/vcpkg.json Normal file
View File

@ -0,0 +1,35 @@
{
"name": "tdscpp",
"version": "20240707",
"description": "C++ library to communicate with Microsoft SQL Server",
"homepage": "https://github.com/maharmstone/tdscpp",
"license": "LGPL-3.0",
"supports": "!android & !uwp & !osx",
"dependencies": [
{
"name": "fmt",
"platform": "!windows"
},
{
"name": "icu",
"platform": "!windows"
},
"nlohmann-json",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
],
"features": {
"ssl": {
"description": "OpenSSL support",
"dependencies": [
"openssl"
]
}
}
}

View File

@ -8664,6 +8664,10 @@
"baseline": "1.0.3",
"port-version": 0
},
"tdscpp": {
"baseline": "20240707",
"port-version": 0
},
"telnetpp": {
"baseline": "3.1.0",
"port-version": 0

9
versions/t-/tdscpp.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "61cd67b08b11985301ae613aa5cde3132dfa56fb",
"version": "20240707",
"port-version": 0
}
]
}