Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Qt] Update to 6.2.2 and add missing modules #21818

Merged
merged 35 commits into from
Dec 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
81b3fda
updating qt stuff to 6.2.2
Neumann-A Dec 2, 2021
fb036a1
add missing modules for 6.2.2
Neumann-A Dec 2, 2021
61d2525
remove patch from qtbase
Neumann-A Dec 2, 2021
76ab33b
add qtpositioning
Neumann-A Dec 2, 2021
a3e2184
add qml feature
Neumann-A Dec 2, 2021
84fa61b
add supports statement
Neumann-A Dec 2, 2021
b16afbf
small ref change
Neumann-A Dec 2, 2021
cc56b86
fix hash
Neumann-A Dec 2, 2021
977d0b0
remove ,
Neumann-A Dec 2, 2021
aba7659
qtlocation is now emtpy
Neumann-A Dec 2, 2021
4988b96
get as list of files
Neumann-A Dec 2, 2021
fa59ae8
fix error in manifest
Neumann-A Dec 2, 2021
26c43fa
add tool name
Neumann-A Dec 2, 2021
040a6b4
fix qtapplication?
Neumann-A Dec 2, 2021
5a47994
print bin files
Neumann-A Dec 2, 2021
aa89ea0
fix qtapplicationmanager
Neumann-A Dec 2, 2021
1139f1e
format
Neumann-A Dec 2, 2021
31e2803
set policy
Neumann-A Dec 2, 2021
469c61c
fix git fetch
Neumann-A Dec 2, 2021
b32cfaa
fix ref variable
Neumann-A Dec 3, 2021
d8c359e
fix pc files for taglib
Neumann-A Dec 3, 2021
9aa4c80
fix qtinterfaceframework
Neumann-A Dec 3, 2021
8245b11
format manifest
Neumann-A Dec 3, 2021
30fd28d
version stuff
Neumann-A Dec 3, 2021
ad5838e
fix qtapplicationmanager
Neumann-A Dec 3, 2021
ae1c7ef
fix version
Neumann-A Dec 3, 2021
36405ba
make qt buildable for static windows builds.
Neumann-A Dec 3, 2021
8f476aa
version corrections
Neumann-A Dec 3, 2021
0037ddb
add extra paths; otherwise it breaks out of the buildtree
Neumann-A Dec 3, 2021
99010e0
version stuff.
Neumann-A Dec 3, 2021
dc89bac
trying to fix qtapplicationmanager
Neumann-A Dec 3, 2021
b9890df
add supports field
Neumann-A Dec 4, 2021
6df7e54
fix cross case
Neumann-A Dec 4, 2021
0532fbb
fix stuff
Neumann-A Dec 4, 2021
44f6fbf
version stuff
Neumann-A Dec 4, 2021
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
47 changes: 34 additions & 13 deletions ports/qt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qt",
"version-semver": "6.2.1",
"version-semver": "6.2.2",
"description": "Qt",
"homepage": "https://www.qt.io/",
"dependencies": [
Expand All @@ -14,6 +14,7 @@
"textcodec"
]
},
"qtapplicationmanager",
{
"name": "qtbase",
"default-features": false
Expand All @@ -30,6 +31,11 @@
"qtconnectivity",
"qtdatavis3d",
"qtdeclarative",
{
"name": "qtdeviceutilities",
"default-features": false,
"platform": "linux"
},
"qtdoc",
{
"name": "qtimageformats",
Expand All @@ -40,14 +46,7 @@
"webp"
]
},
{
"name": "qtlocation",
"default-features": false,
"features": [
"nmea",
"qml"
]
},
"qtinterfaceframework",
{
"name": "qtlottie",
"default-features": false,
Expand All @@ -60,18 +59,32 @@
"name": "qtmultimedia",
"default-features": false,
"features": [
"gstreamer",
"qml",
"widgets"
]
},
{
"name": "qtmultimedia",
"default-features": false,
"features": [
"gstreamer"
],
"platform": "!(static & windows)"
},
"qtnetworkauth",
{
"name": "qtopcua",
"features": [
"qml"
]
},
{
"name": "qtpositioning",
"default-features": false,
"features": [
"qml"
]
},
{
"name": "qtquick3d",
"default-features": false
Expand Down Expand Up @@ -127,7 +140,8 @@
"geolocation",
"spellchecker",
"webchannel"
]
],
"platform": "!static"
},
{
"name": "qtwebsockets",
Expand All @@ -140,9 +154,16 @@
"name": "qtwebview",
"default-features": false,
"features": [
"qml",
"webengine"
"qml"
]
},
{
"name": "qtwebview",
"default-features": false,
"features": [
"webengine"
],
"platform": "!static"
}
],
"default-features": [
Expand Down
2 changes: 1 addition & 1 deletion ports/qt5compat/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qt5compat",
"version-semver": "6.2.1",
"version-semver": "6.2.2",
"description": "The module contains unsupported Qt 5 APIs",
"homepage": "https://www.qt.io/",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion ports/qtactiveqt/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qtactiveqt",
"version-semver": "6.2.1",
"version-semver": "6.2.2",
"description": "ActiveQt",
"homepage": "https://www.qt.io/",
"supports": "windows",
Expand Down
11 changes: 11 additions & 0 deletions ports/qtapplicationmanager/bump-cmake-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2236c0..904c5b7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@

-cmake_minimum_required(VERSION 3.16)
+cmake_minimum_required(VERSION 3.19)

include(.cmake.conf)
project(QtApplicationManager # special case
62 changes: 62 additions & 0 deletions ports/qtapplicationmanager/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
set(SCRIPT_PATH "${CURRENT_INSTALLED_DIR}/share/qtbase")
include("${SCRIPT_PATH}/qt_install_submodule.cmake")

set(${PORT}_PATCHES
bump-cmake-version.patch
wrapper-fixes.patch
)

set(TOOL_NAMES appman
appman-controller
appman-dumpqmltypes
appman-packager
appman-qmltestrunner
appman-launcher-qml
package-uploader
)

qt_download_submodule(PATCHES ${${PORT}_PATCHES})
if(QT_UPDATE_VERSION)
return()
endif()

set(qt_plugindir ${QT6_DIRECTORY_PREFIX}plugins)
set(qt_qmldir ${QT6_DIRECTORY_PREFIX}qml)
qt_cmake_configure(${_opt}
OPTIONS
-DINPUT_libarchive=system
-DINPUT_libyaml=system
-DFEATURE_am_system_libyaml=ON
-DFEATURE_am_system_libarchive=ON
OPTIONS_DEBUG
OPTIONS_RELEASE)

### Need to fix one post-build.bat; Couldn't find the place where it gets generated!
if(VCPKG_TARGET_IS_WINDOWS)
set(scriptfile "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/src/tools/dumpqmltypes/CMakeFiles/appman-dumpqmltypes.dir/post-build.bat")
file(TO_NATIVE_PATH "${CURRENT_INSTALLED_DIR}" CURRENT_INSTALLED_DIR_NATIVE)
if(EXISTS "${scriptfile}")
vcpkg_replace_string("${scriptfile}" "${CURRENT_INSTALLED_DIR_NATIVE}\\bin" "${CURRENT_INSTALLED_DIR_NATIVE}\\debug\\bin")
endif()
endif()
vcpkg_install_cmake(ADD_BIN_TO_PATH)

qt_fixup_and_cleanup(TOOL_NAMES ${TOOL_NAMES})

qt_install_copyright("${SOURCE_PATH}")

# Switch to a more complicated script due to the one post-build script which needed fixing after configure.
# If somebody finds out how/where post-build.bat gets generated please fix it there instead.
#qt_install_submodule(PATCHES ${${PORT}_PATCHES}
# TOOL_NAMES ${TOOL_NAMES}
# CONFIGURE_OPTIONS
# --trace-expand
# -DINPUT_libarchive=system
# -DINPUT_libyaml=system
# -DFEATURE_am_system_libyaml=ON
# -DFEATURE_am_system_libarchive=ON
# CONFIGURE_OPTIONS_RELEASE
# CONFIGURE_OPTIONS_DEBUG
# )

set(VCPKG_POLICY_MISMATCHED_NUMBER_OF_BINARIES enabled) #Debug tracing libraries are only build if CMAKE_BUILD_TYPE is equal to Debug
29 changes: 29 additions & 0 deletions ports/qtapplicationmanager/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "qtapplicationmanager",
"version-semver": "6.2.2",
"description": "Qt component for application lifecycle management",
"homepage": "https://www.qt.io/",
"supports": "!(windows & arm)",
"dependencies": [
"libarchive",
"libyaml",
{
"name": "qtapplicationmanager",
"host": true,
"default-features": false
},
{
"name": "qtbase",
"default-features": false
},
{
"name": "qtdeclarative",
"default-features": false
},
{
"name": "qtwayland",
"default-features": false,
"platform": "!windows"
}
]
}
56 changes: 56 additions & 0 deletions ports/qtapplicationmanager/wrapper-fixes.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
diff --git a/cmake/FindWrapLibArchive.cmake b/cmake/FindWrapLibArchive.cmake
index 67e4ce0..887b766 100644
--- a/cmake/FindWrapLibArchive.cmake
+++ b/cmake/FindWrapLibArchive.cmake
@@ -16,3 +16,24 @@ add_library(WrapLibArchive::WrapLibArchive INTERFACE IMPORTED)
target_link_libraries(WrapLibArchive::WrapLibArchive INTERFACE ${LibArchive_LIBRARIES})
target_include_directories(WrapLibArchive::WrapLibArchive INTERFACE ${LibArchive_INCLUDE_DIRS})
set(WrapLibArchive_FOUND TRUE)
+if(TARGET BZip2::BZip2)
+ set_property(TARGET BZip2::BZip2 PROPERTY _qt_no_promote_global TRUE)
+endif()
+if(TARGET Threads::Threads)
+ set_property(TARGET Threads::Threads PROPERTY _qt_no_promote_global TRUE)
+endif()
+if(TARGET OpenSSL::Crypto)
+ set_property(TARGET OpenSSL::Crypto PROPERTY _qt_no_promote_global TRUE)
+endif()
+if(TARGET zstd::libzstd)
+ set_property(TARGET zstd::libzstd PROPERTY _qt_no_promote_global TRUE)
+endif()
+if(TARGET zstd::libzstd_shared)
+ set_property(TARGET zstd::libzstd_shared PROPERTY _qt_no_promote_global TRUE)
+endif()
+if(TARGET zstd::libzstd_static)
+ set_property(TARGET zstd::libzstd_static PROPERTY _qt_no_promote_global TRUE)
+endif()
+if(TARGET ZLIB::ZLIB)
+ set_property(TARGET ZLIB::ZLIB PROPERTY _qt_no_promote_global TRUE)
+endif()
diff --git a/cmake/FindWrapLibYaml.cmake b/cmake/FindWrapLibYaml.cmake
index 1dab912..c09e97f 100644
--- a/cmake/FindWrapLibYaml.cmake
+++ b/cmake/FindWrapLibYaml.cmake
@@ -10,10 +10,17 @@ pkg_check_modules(pc_libyaml yaml-0.1 IMPORTED_TARGET)


if (NOT pc_libyaml_FOUND)
- set(WrapLibYaml_FOUND FALSE)
- return()
+ find_package(yaml)
+ if(yaml_FOUND)
+ add_library(WrapLibYaml::WrapLibYaml INTERFACE IMPORTED)
+ target_link_libraries(WrapLibYaml::WrapLibYaml INTERFACE ${yaml_LIBRARIES})
+ else()
+ set(WrapLibYaml_FOUND FALSE)
+ return()
+ endif()
+else()
+ add_library(WrapLibYaml::WrapLibYaml INTERFACE IMPORTED)
+ target_link_libraries(WrapLibYaml::WrapLibYaml INTERFACE ${pc_libyaml_LIBRARIES})
endif()
-
-add_library(WrapLibYaml::WrapLibYaml INTERFACE IMPORTED)
-target_link_libraries(WrapLibYaml::WrapLibYaml INTERFACE ${pc_libyaml_LIBRARIES})
set(WrapLibYaml_FOUND TRUE)
+
Loading