Skip to content

Commit 42e7291

Browse files
committed
chore: 更新 uniconv 版本至 3.2.2,添加 portfile.cmake 文件
1 parent 408be29 commit 42e7291

File tree

2 files changed

+35
-13
lines changed

2 files changed

+35
-13
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
vcpkg_from_github(
2+
OUT_SOURCE_PATH SOURCE_PATH
3+
REPO hesphoros/UniConv
4+
REF "v${VERSION}"
5+
SHA512 81E290B880E30A14DE218797005B0AD7B6D2D3BCF46B6524FC7DE96DDFB1FCF202F13D20E4714D8A8270759D00D3C19B61D1FED133220AFF9394FC4E60DA699D
6+
HEAD_REF main
7+
)
8+
9+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" UNICONV_BUILD_SHARED)
10+
11+
vcpkg_cmake_configure(
12+
SOURCE_PATH "${SOURCE_PATH}"
13+
OPTIONS
14+
-DUNICONV_BUILD_SHARED=${UNICONV_BUILD_SHARED}
15+
-DUNICONV_BUILD_TESTS=OFF
16+
-DUNICONV_LIBICONV_SOURCE=SYSTEM
17+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
18+
)
19+
20+
vcpkg_cmake_build()
21+
vcpkg_cmake_install()
22+
23+
vcpkg_cmake_config_fixup(
24+
PACKAGE_NAME UniConv
25+
CONFIG_PATH lib/cmake/UniConv
26+
)
27+
28+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
29+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
30+
31+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "uniconv",
3-
"version": "3.2.1",
4-
"port-version": 0,
3+
"version": "3.2.2",
54
"description": "A high-performance C++ character encoding conversion library with modern C++17 interface",
65
"homepage": "https://github.com/hesphoros/UniConv",
76
"documentation": "https://github.com/hesphoros/UniConv/blob/main/README.MD",
87
"license": "MIT",
8+
"supports": "!(arm & windows)",
99
"dependencies": [
1010
"libiconv",
1111
"parallel-hashmap",
@@ -17,14 +17,5 @@
1717
"name": "vcpkg-cmake-config",
1818
"host": true
1919
}
20-
],
21-
"features": {
22-
"shared": {
23-
"description": "Build shared library instead of static"
24-
},
25-
"tests": {
26-
"description": "Build UniConv tests",
27-
"dependencies": []
28-
}
29-
}
30-
}
20+
]
21+
}

0 commit comments

Comments
 (0)