Skip to content

Commit

Permalink
[icu] Add tools, fix building for ios (#29196)
Browse files Browse the repository at this point in the history
* [icu] Add tools, fix building for ios

* Make qt5-base depend on icu[tools]

Co-authored-by: Billy Robert O'Neal III <[email protected]>
  • Loading branch information
m-kuhn and BillyONeal authored Jan 27, 2023
1 parent 5962fd3 commit cdbcc03
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ports/icu/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ list(APPEND CONFIGURE_OPTIONS_DEBUG --enable-debug --disable-release)
set(RELEASE_TRIPLET ${TARGET_TRIPLET}-rel)
set(DEBUG_TRIPLET ${TARGET_TRIPLET}-dbg)

if("tools" IN_LIST FEATURES)
list(APPEND CONFIGURE_OPTIONS --enable-tools)
else()
list(APPEND CONFIGURE_OPTIONS --disable-tools)
endif()
if(CMAKE_HOST_WIN32 AND VCPKG_TARGET_IS_MINGW AND NOT HOST_TRIPLET MATCHES "mingw")
# Assuming no cross compiling because the host (windows) pkgdata tool doesn't
# use the '/' path separator when creating compiler commands for mingw bash.
Expand Down
13 changes: 11 additions & 2 deletions ports/icu/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
{
"name": "icu",
"version": "72.1",
"port-version": 1,
"description": "Mature and widely used Unicode and localization library.",
"homepage": "https://icu.unicode.org/home",
"license": "ICU",
"supports": "!uwp",
"dependencies": [
{
"name": "icu",
"host": true
"host": true,
"features": [
"tools"
]
}
]
],
"features": {
"tools": {
"description": "Build tools"
}
}
}
4 changes: 4 additions & 0 deletions ports/qt5-base/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "qt5-base",
"version": "5.15.8",
"port-version": 1,
"description": "Qt5 Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
"homepage": "https://www.qt.io/",
"license": null,
Expand All @@ -15,6 +16,9 @@
"harfbuzz",
{
"name": "icu",
"features": [
"tools"
],
"platform": "!uwp"
},
"libjpeg-turbo",
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3022,7 +3022,7 @@
},
"icu": {
"baseline": "72.1",
"port-version": 0
"port-version": 1
},
"ideviceinstaller": {
"baseline": "1.1.2.23",
Expand Down Expand Up @@ -6206,7 +6206,7 @@
},
"qt5-base": {
"baseline": "5.15.8",
"port-version": 0
"port-version": 1
},
"qt5-canvas3d": {
"baseline": "0",
Expand Down
5 changes: 5 additions & 0 deletions versions/i-/icu.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "2a4109603660116f3cb7477c234d3f0275124738",
"version": "72.1",
"port-version": 1
},
{
"git-tree": "ca8792e25fbaf4f4d507eef05e2235b0449ed155",
"version": "72.1",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qt5-base.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3ca5efe99e5f582864670520199ec5da387ceb80",
"version": "5.15.8",
"port-version": 1
},
{
"git-tree": "9bc09074d246485cea02dc5ba92ffcbae8f28cad",
"version": "5.15.8",
Expand Down

0 comments on commit cdbcc03

Please sign in to comment.