mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[string-lite] Add a new port (#47410)
This commit is contained in:
32
ports/string-lite/portfile.cmake
Normal file
32
ports/string-lite/portfile.cmake
Normal file
@@ -0,0 +1,32 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/string-lite
|
||||
REF "v${VERSION}"
|
||||
SHA512 b61667660d32a96232737e0d38e02a0e6d934830e7dafdb9844eb87d855dbea43392797c291d9f39a0f352c43bcd6e5af9510b656887532be99f02982ff38dfa
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSTRING_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DSTRING_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(
|
||||
CONFIG_PATH lib/cmake/${PORT}
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug"
|
||||
"${CURRENT_PACKAGES_DIR}/lib"
|
||||
)
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
||||
file(INSTALL
|
||||
"${CMAKE_CURRENT_LIST_DIR}/usage"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
||||
)
|
||||
4
ports/string-lite/usage
Normal file
4
ports/string-lite/usage
Normal file
@@ -0,0 +1,4 @@
|
||||
string-lite provides CMake targets:
|
||||
|
||||
find_package(string-lite CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE string-lite::string-lite)
|
||||
17
ports/string-lite/vcpkg.json
Normal file
17
ports/string-lite/vcpkg.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "string-lite",
|
||||
"version": "0.0.0",
|
||||
"description": "String algorithms for C+11 and later in a single-file header-only library",
|
||||
"homepage": "https://github.com/martinmoene/string-lite",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -9292,6 +9292,10 @@
|
||||
"baseline": "0.5",
|
||||
"port-version": 2
|
||||
},
|
||||
"string-lite": {
|
||||
"baseline": "0.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"string-theory": {
|
||||
"baseline": "3.9",
|
||||
"port-version": 0
|
||||
|
||||
9
versions/s-/string-lite.json
Normal file
9
versions/s-/string-lite.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "86f99967c2f0e89841f08e49633ff2803a339622",
|
||||
"version": "0.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user