mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00

弃用gio进程删除文件,使用文管的删除接口,删除后,文件进入到桌面回收站,ctrl+Z调用可以直接恢复文件到桌面. Log: 新增回收站拖拽删除动作支持ctrl+z撤回功能 Task: https://pms.uniontech.com/zentao/task-view-83592.html Change-Id: Icdcc14ca0fde6d99f95f91779906d7aa225b81cf
35 lines
940 B
CMake
35 lines
940 B
CMake
|
|
set(PLUGIN_NAME "trash")
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
# Sources files
|
|
file(GLOB SRCS "*.h" "*.cpp" "../../widgets/*.h" "../../widgets/*.cpp")
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
find_package(Qt5Svg REQUIRED)
|
|
find_package(Qt5DBus REQUIRED)
|
|
find_package(DtkWidget REQUIRED)
|
|
|
|
pkg_check_modules(DFrameworkDBus REQUIRED dframeworkdbus)
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
|
|
add_library(${PLUGIN_NAME} SHARED ${SRCS} resource.qrc)
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../)
|
|
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC
|
|
${DtkWidget_INCLUDE_DIRS}
|
|
${DFrameworkDBus_INCLUDE_DIRS}
|
|
../../interfaces)
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
|
${DtkWidget_LIBRARIES}
|
|
${DFrameworkDBus_LIBRARIES}
|
|
${Qt5Widgets_LIBRARIES}
|
|
${Qt5DBus_LIBRARIES}
|
|
${Qt5Svg_LIBRARIES}
|
|
)
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|