diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/tdscpp | |
Diffstat (limited to 'vcpkg/ports/tdscpp')
| -rw-r--r-- | vcpkg/ports/tdscpp/portfile.cmake | 33 | ||||
| -rw-r--r-- | vcpkg/ports/tdscpp/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/tdscpp/vcpkg.json | 35 |
3 files changed, 72 insertions, 0 deletions
diff --git a/vcpkg/ports/tdscpp/portfile.cmake b/vcpkg/ports/tdscpp/portfile.cmake new file mode 100644 index 0000000..cd081e0 --- /dev/null +++ b/vcpkg/ports/tdscpp/portfile.cmake @@ -0,0 +1,33 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO maharmstone/tdscpp + REF "${VERSION}" + HEAD_REF master + SHA512 6f7f36918e1047355dc948a803b786df2aacc006654d0604e7af627c8c7d28a5e2fdbd52b306811e0da5ccca044ce231606d9208a04d5358aac62b9e1f9b3139 +) + +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}") diff --git a/vcpkg/ports/tdscpp/usage b/vcpkg/ports/tdscpp/usage new file mode 100644 index 0000000..141d10c --- /dev/null +++ b/vcpkg/ports/tdscpp/usage @@ -0,0 +1,4 @@ +tdscpp provides CMake targets: + + find_package(tdscpp REQUIRED) + target_link_libraries(main tdscpp) diff --git a/vcpkg/ports/tdscpp/vcpkg.json b/vcpkg/ports/tdscpp/vcpkg.json new file mode 100644 index 0000000..7d4f527 --- /dev/null +++ b/vcpkg/ports/tdscpp/vcpkg.json @@ -0,0 +1,35 @@ +{ + "name": "tdscpp", + "version": "20250301", + "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" + ] + } + } +} |