diff --git a/sharing/linux/BUILD b/sharing/linux/BUILD index 1e0b5124..a9a78b78 100644 --- a/sharing/linux/BUILD +++ b/sharing/linux/BUILD @@ -13,6 +13,9 @@ # limitations under the License. licenses(["notice"]) + +exports_files(["rules_qt_wayland.patch"]) + load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") load("@rules_cc//cc/private/rules_impl:cc_static_library.bzl", "cc_static_library") diff --git a/sharing/linux/app/BUILD b/sharing/linux/app/BUILD index 67e318d0..111edb78 100644 --- a/sharing/linux/app/BUILD +++ b/sharing/linux/app/BUILD @@ -68,6 +68,9 @@ qt_cc_library( qt_cc_binary( name = "app", srcs = ["main.cc"], + env = { + "QT_QPA_PLATFORM": "wayland;xcb", + }, deps = [ ":app_resources", ":backend", diff --git a/sharing/linux/rules_qt_wayland.patch b/sharing/linux/rules_qt_wayland.patch new file mode 100644 index 00000000..e8560928 --- /dev/null +++ b/sharing/linux/rules_qt_wayland.patch @@ -0,0 +1,14 @@ +diff --git a/extension/qt_modules.bzl b/extension/qt_modules.bzl +--- a/extension/qt_modules.bzl ++++ b/extension/qt_modules.bzl +@@ -268,6 +268,10 @@ QT_MODULES = { + "url": QT_BASE_DOWNLOAD_URL + "linux_x64/desktop/qt6_683/qt6_683/qt.qt6.683.addons.qtquickeffectmaker.linux_gcc_64/6.8.3-0-202503201345qtquickeffectmaker-Linux-RHEL_8_10-GCC-Linux-RHEL_8_10-X86_64.7z", + "sha256": "940a6675f448ad686be011ac77a10a9a26fa7b3f48c9e71164b725da4b34524a", + }, ++ "qtwayland": { ++ "url": QT_BASE_DOWNLOAD_URL + "linux_x64/desktop/qt6_683/qt6_683/qt.qt6.683.linux_gcc_64/6.8.3-0-202503201345qtwayland-Linux-RHEL_8_10-GCC-Linux-RHEL_8_10-X86_64.7z", ++ "sha256": "da40cc32c95aa9bf96fcf3e2bfe19055c93cc1ae297bd7cd3cf532aaef634cff", ++ }, + "qtwaylandcompositor": { + "url": QT_BASE_DOWNLOAD_URL + "linux_x64/desktop/qt6_683/qt6_683/qt.qt6.683.addons.qtwaylandcompositor.linux_gcc_64/6.8.3-0-202503201345qtwayland-compositor-Linux-RHEL_8_10-GCC-Linux-RHEL_8_10-X86_64.7z", + "sha256": "60cd5bd4b486d60d44f5bf214c19f8ce13353cb072df38e51dfae3deb8b20995",