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/red0124-ssp | |
Diffstat (limited to 'vcpkg/ports/red0124-ssp')
| -rw-r--r-- | vcpkg/ports/red0124-ssp/no-fetchcontent.patch | 40 | ||||
| -rw-r--r-- | vcpkg/ports/red0124-ssp/portfile.cmake | 22 | ||||
| -rw-r--r-- | vcpkg/ports/red0124-ssp/vcpkg.json | 19 |
3 files changed, 81 insertions, 0 deletions
diff --git a/vcpkg/ports/red0124-ssp/no-fetchcontent.patch b/vcpkg/ports/red0124-ssp/no-fetchcontent.patch new file mode 100644 index 0000000..9077846 --- /dev/null +++ b/vcpkg/ports/red0124-ssp/no-fetchcontent.patch @@ -0,0 +1,40 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index da12e2a..9881489 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -16,19 +16,6 @@ if(SSP_INCLUDE_WITHOUT_SYSTEM) + set(SSP_WARNING_GUARD "") + endif() + +-# ---- Dependencies ---- +- +-include(FetchContent) +-fetchcontent_declare( +- fast_float +- GIT_REPOSITORY https://github.com/red0124/fast_float.git +- GIT_TAG origin/meson +- GIT_SHALLOW TRUE +-) +- +-fetchcontent_makeavailable(fast_float) +-set(FAST_FLOAT_SOURCE_DIR "${FETCHCONTENT_BASE_DIR}/fast_float-src") +- + # ---- Declare library ---- + + add_library(ssp INTERFACE) +@@ -39,7 +26,6 @@ target_include_directories( + ${SSP_WARNING_GUARD} + INTERFACE + "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>" +- "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/fast_float>" + ) + + target_compile_features(ssp INTERFACE cxx_std_17) +@@ -62,7 +48,6 @@ set(SSP_INCLUDE_DIRECTORY "${CMAKE_INSTALL_INCLUDEDIR}") + install( + DIRECTORY + "${PROJECT_SOURCE_DIR}/include/" +- "${FAST_FLOAT_SOURCE_DIR}/include/" + DESTINATION "${SSP_INCLUDE_DIRECTORY}" + COMPONENT ssp_Development + ) diff --git a/vcpkg/ports/red0124-ssp/portfile.cmake b/vcpkg/ports/red0124-ssp/portfile.cmake new file mode 100644 index 0000000..60a5eee --- /dev/null +++ b/vcpkg/ports/red0124-ssp/portfile.cmake @@ -0,0 +1,22 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO red0124/ssp + REF "v${VERSION}" + SHA512 9192c81adc3fce748abf2c16a0bbddc997ed766d098fa4d496c68957dad4d54be3b6ee5ca4ce0d8305e4e0e8c9dbe9c7c0cc7bfbeaf2f6475a9ac8f3c5f7af4a + HEAD_REF master + PATCHES + no-fetchcontent.patch +) + +set(VCPKG_BUILD_TYPE release) # header-only + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME ssp CONFIG_PATH lib/cmake/ssp-${VERSION}) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/vcpkg/ports/red0124-ssp/vcpkg.json b/vcpkg/ports/red0124-ssp/vcpkg.json new file mode 100644 index 0000000..37e38d3 --- /dev/null +++ b/vcpkg/ports/red0124-ssp/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "red0124-ssp", + "version": "1.8.0", + "description": "A header only CSV parser which is fast and versatile with modern C++ API.", + "homepage": "https://github.com/red0124/ssp", + "license": "MIT", + "supports": "!uwp", + "dependencies": [ + "fast-float", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |