mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[red0124-ssp] add new port (#43910)
This commit is contained in:
40
ports/red0124-ssp/no-fetchcontent.patch
Normal file
40
ports/red0124-ssp/no-fetchcontent.patch
Normal file
@@ -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
|
||||
)
|
||||
22
ports/red0124-ssp/portfile.cmake
Normal file
22
ports/red0124-ssp/portfile.cmake
Normal file
@@ -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")
|
||||
19
ports/red0124-ssp/vcpkg.json
Normal file
19
ports/red0124-ssp/vcpkg.json
Normal file
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7900,6 +7900,10 @@
|
||||
"baseline": "7.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"red0124-ssp": {
|
||||
"baseline": "1.8.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"redis-plus-plus": {
|
||||
"baseline": "1.3.13",
|
||||
"port-version": 0
|
||||
|
||||
9
versions/r-/red0124-ssp.json
Normal file
9
versions/r-/red0124-ssp.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b5817efb777228fb79a0e8205b38c421090de53e",
|
||||
"version": "1.8.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user