File fix-wayland-link-dde_utils-for-Utils-setParentWindow.patch of Package deepin-xdg-desktop-portal
diff -Nur xdg-desktop-portal-dde-1.0.15/src/CMakeLists.txt xdg-desktop-portal-dde-1.0.15-new/src/CMakeLists.txt
--- xdg-desktop-portal-dde-1.0.15/src/CMakeLists.txt 2025-08-28 14:38:06.000000000 +0800
+++ xdg-desktop-portal-dde-1.0.15-new/src/CMakeLists.txt 2025-10-21 17:02:48.638460668 +0800
@@ -73,6 +73,9 @@
accessdialog.cpp
)
+add_library(dde_utils STATIC utils.cpp utils.h)
+target_link_libraries(dde_utils PUBLIC Qt::Core Qt::Widgets)
+
add_executable(${PROJECT_NAME}
${SRC})
diff -Nur xdg-desktop-portal-dde-1.0.15/src/wayland/CMakeLists.txt xdg-desktop-portal-dde-1.0.15-new/src/wayland/CMakeLists.txt
--- xdg-desktop-portal-dde-1.0.15/src/wayland/CMakeLists.txt 2025-08-28 14:38:06.000000000 +0800
+++ xdg-desktop-portal-dde-1.0.15-new/src/wayland/CMakeLists.txt 2025-10-21 17:03:37.397402653 +0800
@@ -123,6 +123,8 @@
PkgConfig::GBM
PkgConfig::PIPEWIRE
Wayland::Client
+PRIVATE
+ dde_utils
)
install(TARGETS xdg-desktop-portal-dde-wayland DESTINATION ${CMAKE_INSTALL_LIBDIR})