Merge pull request #7122 from Morph1984/update-qt
Qt: Update to Qt 5.15.2
This commit is contained in:
commit
d418af157a
|
@ -237,7 +237,7 @@ yuzu_find_packages()
|
||||||
|
|
||||||
# Qt5 requires that we find components, so it doesn't fit our pretty little find package function
|
# Qt5 requires that we find components, so it doesn't fit our pretty little find package function
|
||||||
if(ENABLE_QT)
|
if(ENABLE_QT)
|
||||||
set(QT_VERSION 5.12)
|
set(QT_VERSION 5.15)
|
||||||
# We want to load the generated conan qt config so that we get the QT_ROOT var so that we can use the official
|
# We want to load the generated conan qt config so that we get the QT_ROOT var so that we can use the official
|
||||||
# Qt5Config inside the root folder instead of the conan generated one.
|
# Qt5Config inside the root folder instead of the conan generated one.
|
||||||
if(EXISTS ${CMAKE_BINARY_DIR}/qtConfig.cmake)
|
if(EXISTS ${CMAKE_BINARY_DIR}/qtConfig.cmake)
|
||||||
|
@ -339,8 +339,8 @@ if(ENABLE_QT)
|
||||||
set(QT_PREFIX_HINT)
|
set(QT_PREFIX_HINT)
|
||||||
|
|
||||||
if(YUZU_USE_BUNDLED_QT)
|
if(YUZU_USE_BUNDLED_QT)
|
||||||
if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64)
|
if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64)
|
||||||
set(QT_BUILD qt-5.12.8-msvc2017_64)
|
set(QT_BUILD qt-5.15.2-msvc2019_64)
|
||||||
elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND NOT MINGW AND ARCHITECTURE_x86_64)
|
elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND NOT MINGW AND ARCHITECTURE_x86_64)
|
||||||
set(QT_BUILD qt5_5_15_2)
|
set(QT_BUILD qt5_5_15_2)
|
||||||
else()
|
else()
|
||||||
|
@ -369,7 +369,7 @@ endif()
|
||||||
if (ENABLE_SDL2)
|
if (ENABLE_SDL2)
|
||||||
if (YUZU_USE_BUNDLED_SDL2)
|
if (YUZU_USE_BUNDLED_SDL2)
|
||||||
# Detect toolchain and platform
|
# Detect toolchain and platform
|
||||||
if ((MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1930) AND ARCHITECTURE_x86_64)
|
if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64)
|
||||||
set(SDL2_VER "SDL2-2.0.16")
|
set(SDL2_VER "SDL2-2.0.16")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.")
|
message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.")
|
||||||
|
@ -462,7 +462,7 @@ if (CONAN_REQUIRED_LIBS)
|
||||||
if(ENABLE_QT)
|
if(ENABLE_QT)
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}")
|
list(APPEND CMAKE_MODULE_PATH "${CONAN_QT_ROOT_RELEASE}")
|
||||||
list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}")
|
list(APPEND CMAKE_PREFIX_PATH "${CONAN_QT_ROOT_RELEASE}")
|
||||||
find_package(Qt5 5.12 REQUIRED COMPONENTS Widgets)
|
find_package(Qt5 5.15 REQUIRED COMPONENTS Widgets)
|
||||||
if (YUZU_USE_QT_WEB_ENGINE)
|
if (YUZU_USE_QT_WEB_ENGINE)
|
||||||
find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets)
|
find_package(Qt5 REQUIRED COMPONENTS WebEngineCore WebEngineWidgets)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -33,6 +33,7 @@ function(copy_yuzu_Qt5_deps target_dir)
|
||||||
Qt5Positioning$<$<CONFIG:Debug>:d>.*
|
Qt5Positioning$<$<CONFIG:Debug>:d>.*
|
||||||
Qt5PrintSupport$<$<CONFIG:Debug>:d>.*
|
Qt5PrintSupport$<$<CONFIG:Debug>:d>.*
|
||||||
Qt5Qml$<$<CONFIG:Debug>:d>.*
|
Qt5Qml$<$<CONFIG:Debug>:d>.*
|
||||||
|
Qt5QmlModels$<$<CONFIG:Debug>:d>.*
|
||||||
Qt5Quick$<$<CONFIG:Debug>:d>.*
|
Qt5Quick$<$<CONFIG:Debug>:d>.*
|
||||||
Qt5QuickWidgets$<$<CONFIG:Debug>:d>.*
|
Qt5QuickWidgets$<$<CONFIG:Debug>:d>.*
|
||||||
Qt5WebChannel$<$<CONFIG:Debug>:d>.*
|
Qt5WebChannel$<$<CONFIG:Debug>:d>.*
|
||||||
|
|
Reference in New Issue