mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
[tdscpp] Add new port (#39599)
This commit is contained in:
parent
33d0114e3d
commit
b65dbc0b65
33
ports/tdscpp/portfile.cmake
Normal file
33
ports/tdscpp/portfile.cmake
Normal 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
4
ports/tdscpp/usage
Normal 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
35
ports/tdscpp/vcpkg.json
Normal 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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -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
9
versions/t-/tdscpp.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "61cd67b08b11985301ae613aa5cde3132dfa56fb",
|
||||
"version": "20240707",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user