Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 19 additions & 13 deletions ports/qt5-base/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ list(APPEND CORE_OPTIONS
-system-doubleconversion
-system-sqlite
-system-harfbuzz
-icu
-no-angle # Qt does not need to build angle. VCPKG will build angle!
-no-glib
-openssl-linked
Expand Down Expand Up @@ -207,8 +206,7 @@ set(RELEASE_OPTIONS
"PCRE2_LIBS=${PCRE2_RELEASE}"
"FREETYPE_LIBS=${FREETYPE_RELEASE_ALL}"
"QMAKE_LIBS_PRIVATE+=${BZ2_RELEASE}"
"QMAKE_LIBS_PRIVATE+=${LIBPNG_RELEASE}"
"QMAKE_LIBS_PRIVATE+=${ICU_RELEASE}"
"QMAKE_LIBS_PRIVATE+=${LIBPNG_RELEASE} ${ZLIB_RELEASE}"
"QMAKE_LIBS_PRIVATE+=${ZSTD_RELEASE}"
)
set(DEBUG_OPTIONS
Expand All @@ -218,20 +216,28 @@ set(DEBUG_OPTIONS
"PCRE2_LIBS=${PCRE2_DEBUG}"
"FREETYPE_LIBS=${FREETYPE_DEBUG_ALL}"
"QMAKE_LIBS_PRIVATE+=${BZ2_DEBUG}"
"QMAKE_LIBS_PRIVATE+=${LIBPNG_DEBUG}"
"QMAKE_LIBS_PRIVATE+=${ICU_DEBUG}"
"QMAKE_LIBS_PRIVATE+=${LIBPNG_DEBUG} ${ZLIB_DEBUG}"
"QMAKE_LIBS_PRIVATE+=${ZSTD_DEBUG}"
)

# This if/else corresponds to icu setup in src/corelib/configure.json.
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
list(APPEND CORE_OPTIONS
"ICU_LIBS_RELEASE=${ICU_RELEASE}"
"ICU_LIBS_DEBUG=${ICU_DEBUG}"
)
if("icu" IN_LIST FEATURES)
list(APPEND CORE_OPTIONS -icu)

# This if/else corresponds to icu setup in src/corelib/configure.json.
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
list(APPEND CORE_OPTIONS
"ICU_LIBS_RELEASE=${ICU_RELEASE}"
"ICU_LIBS_DEBUG=${ICU_DEBUG}"
)
else()
list(APPEND RELEASE_OPTIONS "ICU_LIBS=${ICU_RELEASE}")
list(APPEND DEBUG_OPTIONS "ICU_LIBS=${ICU_DEBUG}")
endif()

list(APPEND RELEASE_OPTIONS "QMAKE_LIBS_PRIVATE+=${ICU_RELEASE}")
list(APPEND DEBUG_OPTIONS "QMAKE_LIBS_PRIVATE+=${ICU_DEBUG}")
else()
list(APPEND RELEASE_OPTIONS "ICU_LIBS=${ICU_RELEASE}")
list(APPEND DEBUG_OPTIONS "ICU_LIBS=${ICU_DEBUG}")
list(APPEND CORE_OPTIONS -no-icu)
endif()

if(VCPKG_TARGET_IS_WINDOWS)
Expand Down
15 changes: 10 additions & 5 deletions ports/qt5-base/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "qt5-base",
"version": "5.15.8",
"port-version": 4,
"port-version": 5,
"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 @@ -14,10 +14,6 @@
},
"freetype",
"harfbuzz",
{
"name": "icu",
"platform": "!uwp"
},
"libjpeg-turbo",
"libpng",
{
Expand All @@ -44,6 +40,15 @@
"zstd"
],
"features": {
"icu": {
Comment thread
Osyotr marked this conversation as resolved.
"description": "Enable ICU support",
"dependencies": [
{
"name": "icu",
"platform": "!uwp"
}
]
},
"latest": {
"description": "(deprecated)"
},
Expand Down
2 changes: 2 additions & 0 deletions ports/qt5/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "qt5",
"version": "5.15.8",
"port-version": 1,
"description": "Qt5 Application Framework",
"homepage": "https://www.qt.io/",
"license": null,
Expand Down Expand Up @@ -91,6 +92,7 @@
"name": "qt5-base",
"default-features": false,
"features": [
"icu",
"mysqlplugin",
"postgresqlplugin"
]
Expand Down
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6326,7 +6326,7 @@
},
"qt5": {
"baseline": "5.15.8",
"port-version": 0
"port-version": 1
},
"qt5-3d": {
"baseline": "5.15.8",
Expand All @@ -6342,7 +6342,7 @@
},
"qt5-base": {
"baseline": "5.15.8",
"port-version": 4
"port-version": 5
},
"qt5-canvas3d": {
"baseline": "0",
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": "51c0d7f3e15a664dba88e8c9891d4a045661f4ec",
"version": "5.15.8",
"port-version": 5
},
{
"git-tree": "1528baab40fce203129dc361128135b453e1ecb1",
"version": "5.15.8",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qt5.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f770e40ee8bc91d18f208ceee737d2c8abfaf8d0",
"version": "5.15.8",
"port-version": 1
},
{
"git-tree": "88647dde8c3f8eee01f4b02b3f5a211046e5e5bd",
"version": "5.15.8",
Expand Down