mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 14:58:00 +08:00
[str-view] Add new port str-view (#39872)
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com> Co-authored-by: Kai Pastor <dg0yt@darc.de>
This commit is contained in:
parent
bda9675a85
commit
482ee0e429
24
ports/str-view/portfile.cmake
Normal file
24
ports/str-view/portfile.cmake
Normal file
@ -0,0 +1,24 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO agl-alexglopez/str_view
|
||||
REF "v${VERSION}"
|
||||
SHA512 4dde3d91197ad78bbd808cc88058e6e1588c3ec3b6fbce198538b5ea390b1f3cc8429c76169794dec5d0576862e071feadb280128605ac30c2f12d25d66b9f34
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_cmake_config_fixup(
|
||||
PACKAGE_NAME "str_view"
|
||||
CONFIG_PATH "lib/cmake/str_view"
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|
4
ports/str-view/usage
Normal file
4
ports/str-view/usage
Normal file
@ -0,0 +1,4 @@
|
||||
str_view provides CMake targets:
|
||||
|
||||
find_package(str_view CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE str_view::str_view)
|
17
ports/str-view/vcpkg.json
Normal file
17
ports/str-view/vcpkg.json
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "str-view",
|
||||
"version": "0.3.11",
|
||||
"description": "A simple, robust, and convenient library for read-only string handling in C.",
|
||||
"homepage": "https://github.com/agl-alexglopez/str_view",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -1110,6 +1110,14 @@ spscqueue:arm64-android=fail
|
||||
spscqueue:x64-android=fail
|
||||
stormlib:arm64-uwp=fail
|
||||
stormlib:x64-uwp=fail
|
||||
# upstream issue https://github.com/agl-alexglopez/str_view/issues/9
|
||||
str-view:arm64-uwp=fail
|
||||
str-view:arm64-windows=fail
|
||||
str-view:x64-uwp=fail
|
||||
str-view:x64-windows=fail
|
||||
str-view:x64-windows-static=fail
|
||||
str-view:x64-windows-static-md=fail
|
||||
str-view:x86-windows=fail
|
||||
stxxl:arm-neon-android=fail
|
||||
# upstream issue https://github.com/stxxl/stxxl/issues/99
|
||||
stxxl:x86-windows=skip
|
||||
|
@ -8572,6 +8572,10 @@
|
||||
"baseline": "9.26",
|
||||
"port-version": 0
|
||||
},
|
||||
"str-view": {
|
||||
"baseline": "0.3.11",
|
||||
"port-version": 0
|
||||
},
|
||||
"strict-variant": {
|
||||
"baseline": "0.5",
|
||||
"port-version": 2
|
||||
|
9
versions/s-/str-view.json
Normal file
9
versions/s-/str-view.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "a0451e418c42ac6d27391a264603dd9a7d25ef1c",
|
||||
"version": "0.3.11",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user