mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[string-view-lite] Modernization (#29313)
* [string-view-lite] Modernization * update version database * apply suggestion * update version database * CRLF -> LF --------- Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
8a9ad06a84
commit
9c4a648392
@ -1,28 +1,22 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/string-view-lite
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO martinmoene/string-view-lite
|
||||
REF v1.7.0
|
||||
SHA512 9dd8d2ad838275b1d5418520acf0f215dc586ff40f2dac7a2e4fd845aae5eb3663ce81bc6117df50b0a68f2b8152f3d3ccb0d611728af47bc1b11286328125b5
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSTRING_VIEW_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DSTRING_VIEW_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"
|
||||
)
|
||||
|
||||
file(INSTALL
|
||||
"${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright
|
||||
)
|
||||
)
|
||||
|
||||
set(VCPKG_BUILD_TYPE release) # header-only port
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DSTRING_VIEW_LITE_OPT_BUILD_TESTS=OFF
|
||||
-DSTRING_VIEW_LITE_OPT_BUILD_EXAMPLES=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
||||
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "string-view-lite",
|
||||
"version": "1.7.0",
|
||||
"port-version": 1,
|
||||
"description": "A C++17-like string_view for C++98, C++11 and later in a single-file header-only library",
|
||||
"license": "BSL-1.0",
|
||||
"dependencies": [
|
||||
|
@ -7414,7 +7414,7 @@
|
||||
},
|
||||
"string-view-lite": {
|
||||
"baseline": "1.7.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"strong-type": {
|
||||
"baseline": "8",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ef393f08f15d4f962c5d9d37c4c2036dff02be98",
|
||||
"version": "1.7.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "678c99fe335fc105cae78ddd0899c34ab12815ea",
|
||||
"version": "1.7.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user