Skip to content

Commit

Permalink
[qtbase] fix glib2 not found (#30379)
Browse files Browse the repository at this point in the history
* fix glib2 no found

* update version

* update version

* update version

* update version

* update version

* update version

* update version

* update version

* update verion

* update verion

* merge master

* version

* fix new error

* update version

* update version

* update version

* Update qtbase.json

---------

Co-authored-by: Jim Wang (Beyondsoft Corporation) <[email protected]>
  • Loading branch information
jimwang118 and jimwang118 authored May 8, 2023
1 parent 9a5e44f commit 4746870
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 2 deletions.
28 changes: 28 additions & 0 deletions ports/qtbase/GLIB2-static.patch
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,31 @@ index 24a194c..91c8e41 100644

include(FeatureSummary)
set_package_properties(GLIB2 PROPERTIES
diff --git a/src/corelib/configure.cmake b/src/corelib/configure.cmake
index 7d52f48..2b1b221 100644
--- a/src/corelib/configure.cmake
+++ b/src/corelib/configure.cmake
@@ -25,7 +25,7 @@ endif()
qt_find_package(WrapSystemDoubleConversion
PROVIDED_TARGETS WrapSystemDoubleConversion::WrapSystemDoubleConversion
MODULE_NAME core QMAKE_LIB doubleconversion)
-qt_find_package(GLIB2 PROVIDED_TARGETS GLIB2::GLIB2 MODULE_NAME core QMAKE_LIB glib)
+qt_find_package(GLIB2 PROVIDED_TARGETS GLIB2::GLIB2 MODULE MODULE_NAME core QMAKE_LIB glib)
qt_find_package(ICU 50.1 COMPONENTS i18n uc data PROVIDED_TARGETS ICU::i18n ICU::uc ICU::data
MODULE_NAME core QMAKE_LIB icu)

diff --git a/src/network/configure.cmake b/src/network/configure.cmake
index aef7f15..21b0c1d 100644
--- a/src/network/configure.cmake
+++ b/src/network/configure.cmake
@@ -10,8 +10,8 @@
qt_find_package(WrapBrotli PROVIDED_TARGETS WrapBrotli::WrapBrotliDec MODULE_NAME network QMAKE_LIB brotli)
qt_find_package(Libproxy PROVIDED_TARGETS PkgConfig::Libproxy MODULE_NAME network QMAKE_LIB libproxy)
qt_find_package(GSSAPI PROVIDED_TARGETS GSSAPI::GSSAPI MODULE_NAME network QMAKE_LIB gssapi)
-qt_find_package(GLIB2 OPTIONAL_COMPONENTS GOBJECT PROVIDED_TARGETS GLIB2::GOBJECT MODULE_NAME core QMAKE_LIB gobject)
-qt_find_package(GLIB2 OPTIONAL_COMPONENTS GIO PROVIDED_TARGETS GLIB2::GIO MODULE_NAME core QMAKE_LIB gio)
+qt_find_package(GLIB2 OPTIONAL_COMPONENTS GOBJECT PROVIDED_TARGETS GLIB2::GOBJECT MODULE MODULE_NAME core QMAKE_LIB gobject)
+qt_find_package(GLIB2 OPTIONAL_COMPONENTS GIO PROVIDED_TARGETS GLIB2::GIO MODULE MODULE_NAME core QMAKE_LIB gio)


#### Tests
10 changes: 10 additions & 0 deletions ports/qtbase/cmake/qt_install_submodule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,16 @@ function(qt_cmake_configure)
QT_SYNCQT
QT_NO_FORCE_SET_CMAKE_BUILD_TYPE
${_qarg_OPTIONS_MAYBE_UNUSED}
INPUT_bundled_xcb_xinput
INPUT_freetype
INPUT_harfbuzz
INPUT_libjpeg
INPUT_libmd4c
INPUT_libpng
INPUT_opengl
INPUT_openssl
INPUT_xcb
INPUT_xkbcommon
)
set(Z_VCPKG_CMAKE_GENERATOR "${Z_VCPKG_CMAKE_GENERATOR}" PARENT_SCOPE)
endfunction()
Expand Down
2 changes: 1 addition & 1 deletion ports/qtbase/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "qtbase",
"version": "6.5.0",
"port-version": 1,
"port-version": 2,
"description": "Qt Application Framework Base Module. Includes Core, GUI, Widgets, Networking, SQL, Concurrent and other essential qt components.",
"homepage": "https://www.qt.io/",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6654,7 +6654,7 @@
},
"qtbase": {
"baseline": "6.5.0",
"port-version": 1
"port-version": 2
},
"qtcharts": {
"baseline": "6.5.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/q-/qtbase.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "8a00cef259fdf1a9198f95e0618c98b7f1b21527",
"version": "6.5.0",
"port-version": 2
},
{
"git-tree": "a66d81c3d9432499f24c76df346a4daf5725f90b",
"version": "6.5.0",
Expand Down

0 comments on commit 4746870

Please sign in to comment.