[tinyutf8] Fix cmake usage (#36746)

* [tinyutf8] Fix cmake usage

* version
This commit is contained in:
Thomas1664 2024-02-15 08:40:19 +01:00 committed by GitHub
parent e1335bd1c2
commit 39b6c7a193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 15 deletions

View File

@ -1,27 +1,22 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO DuffsDevice/tinyutf8
REF 84d9878051cd89eb930ebfc2b686d2edfdb9db10 #version 4.4.3
SHA512 dee248c3269c54a9bb616a08868236a049cdc629a1b668f39af59a69c672751067ce01a7f81df28ac41b500749019e543721ceae903ae9c11ea5282f2d308da4
REPO DuffsDevice/tiny-utf8
REF "v${VERSION}"
SHA512 e87368614671c8e160e9fd7c529bba08f6b3d6bdd0b178c68a4f25a54a6428afe01c3099f80d4976a1b2ce9f2e19b877da54a5dbf024ad25c7a5d5e47cb57bb0
HEAD_REF master
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" TINYUTF8_BUILD_STATIC)
# header-only
set(VCPKG_BUILD_TYPE "release")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DTINYUTF8_BUILD_STATIC=${TINYUTF8_BUILD_STATIC}
OPTIONS
-DTINYUTF8_BUILD_TESTING=OFF
-DTINYUTF8_BUILD_DOC=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_cmake_config_fixup(CONFIG_PATH share/tinyutf8/cmake)
# Handle copyright
configure_file("${SOURCE_PATH}/LICENCE" "${CURRENT_PACKAGES_DIR}/share/tinyutf8/copyright" COPYONLY)
# remove unneeded files
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENCE")

View File

@ -1,12 +1,18 @@
{
"name": "tinyutf8",
"version": "4.4.3",
"port-version": 1,
"description": "TINYUTF8 is a library for extremely easy integration of Unicode into an arbitrary C++11 project.",
"homepage": "https://github.com/DuffsDevice/tiny-utf8/",
"license": "BSD-3-Clause",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -8618,7 +8618,7 @@
},
"tinyutf8": {
"baseline": "4.4.3",
"port-version": 0
"port-version": 1
},
"tinyxml": {
"baseline": "2.6.2",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "82748b59bb1ff3c389a8e16cf806c9cb6e9bf4d8",
"version": "4.4.3",
"port-version": 1
},
{
"git-tree": "68f68a99c01bfa1afbb04e680667e665330028ce",
"version": "4.4.3",