1
0
Fork 0

Re-enable kwayland with Qt 6

This commit is contained in:
Ilya Fedin 2021-10-25 07:35:28 +04:00 committed by John Preston
parent 5ff43f9c51
commit 04de294533
2 changed files with 8 additions and 2 deletions

View file

@ -43,7 +43,7 @@ if (LINUX)
add_checked_subdirectory(jemalloc)
endif()
add_checked_subdirectory(jpeg)
if (LINUX AND NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION AND NOT DESKTOP_APP_QT6)
if (LINUX AND NOT DESKTOP_APP_DISABLE_WAYLAND_INTEGRATION)
add_checked_subdirectory(kwayland)
endif()
add_checked_subdirectory(lz4)

View file

@ -25,11 +25,17 @@ else()
/usr/local/include/KF5/KWayland/Client
)
if (DESKTOP_APP_QT6)
set(qtconcurrent_loc ${qt_loc}/lib/libQt6Concurrent.a)
else()
set(qtconcurrent_loc ${qt_loc}/lib/libQt5Concurrent.a)
endif()
target_link_libraries(external_kwayland
INTERFACE
desktop-app::linux_wayland_helper
$<TARGET_FILE:desktop-app::linux_wayland_helper>
${qt_loc}/lib/libQt5Concurrent.a
${qtconcurrent_loc}
desktop-app::external_qt
)
endif()