|
|
|
@ -16,7 +16,7 @@ function(copy_yuzu_Qt6_deps target_dir) |
|
|
|
set(PLATFORMS ${DLL_DEST}plugins/platforms/) |
|
|
|
set(STYLES ${DLL_DEST}plugins/styles/) |
|
|
|
set(IMAGEFORMATS ${DLL_DEST}plugins/imageformats/) |
|
|
|
|
|
|
|
set(RESOURCES ${DLL_DEST}resources/) |
|
|
|
if (MSVC) |
|
|
|
windows_copy_files(${target_dir} ${Qt6_DLL_DIR} ${DLL_DEST} |
|
|
|
Qt6Core$<$<CONFIG:Debug>:d>.* |
|
|
|
@ -31,20 +31,31 @@ function(copy_yuzu_Qt6_deps target_dir) |
|
|
|
endif() |
|
|
|
if (YUZU_USE_QT_WEB_ENGINE) |
|
|
|
windows_copy_files(${target_dir} ${Qt6_DLL_DIR} ${DLL_DEST} |
|
|
|
Qt6OpenGL$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6Positioning$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6PrintSupport$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6Qml$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6QmlMeta$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6QmlModels$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6QmlWorkerScript$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6Quick$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6QuickWidgets$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6WebChannel$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6WebEngineCore$<$<CONFIG:Debug>:d>.* |
|
|
|
Qt6WebEngineWidgets$<$<CONFIG:Debug>:d>.* |
|
|
|
QtWebEngineProcess$<$<CONFIG:Debug>:d>.* |
|
|
|
) |
|
|
|
windows_copy_files(${target_dir} ${Qt6_RESOURCES_DIR} ${DLL_DEST} |
|
|
|
windows_copy_files(${target_dir} ${Qt6_RESOURCES_DIR} ${RESOURCES} |
|
|
|
icudtl.dat |
|
|
|
qtwebengine_devtools_resources.pak |
|
|
|
qtwebengine_resources.pak |
|
|
|
qtwebengine_resources_100p.pak |
|
|
|
qtwebengine_resources_200p.pak |
|
|
|
v8_context_snapshot.bin |
|
|
|
) |
|
|
|
endif() |
|
|
|
windows_copy_files(yuzu ${Qt6_PLATFORMS_DIR} ${PLATFORMS} qwindows$<$<CONFIG:Debug>:d>.*) |
|
|
|
windows_copy_files(yuzu ${Qt6_STYLES_DIR} ${STYLES} qwindowsvistastyle$<$<CONFIG:Debug>:d>.*) |
|
|
|
windows_copy_files(yuzu ${Qt6_STYLES_DIR} ${STYLES} qmodernwindowsstyle$<$<CONFIG:Debug>:d>.*) |
|
|
|
windows_copy_files(yuzu ${Qt6_IMAGEFORMATS_DIR} ${IMAGEFORMATS} |
|
|
|
qjpeg$<$<CONFIG:Debug>:d>.* |
|
|
|
qgif$<$<CONFIG:Debug>:d>.* |
|
|
|
@ -52,9 +63,6 @@ function(copy_yuzu_Qt6_deps target_dir) |
|
|
|
else() |
|
|
|
# Update for non-MSVC platforms if needed |
|
|
|
endif() |
|
|
|
|
|
|
|
# Create an empty qt.conf file |
|
|
|
add_custom_command(TARGET yuzu POST_BUILD |
|
|
|
COMMAND ${CMAKE_COMMAND} -E touch ${DLL_DEST}qt.conf |
|
|
|
) |
|
|
|
# Fixes dark mode being forced automatically even when light theme is set in app settings. |
|
|
|
file(WRITE "${CMAKE_BINARY_DIR}/bin/${CMAKE_BUILD_TYPE}/qt.conf" "[Platforms]\nWindowsArguments = darkmode=0") |
|
|
|
endfunction(copy_yuzu_Qt6_deps) |