mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-05-30 22:01:41 +00:00

1. taskmanager used to identify which entry should map to window in x11 environmrnt, listen to xevent in anohter thread, and handle those event when window create, destory, changed. use some way to identify which entry(desktopfile) should mapped to changed window. in wayland, connected plsamawindow signal(window created destoried. 2. use taskmanager instead of dbus in old dock code log: as title
35 lines
920 B
CMake
35 lines
920 B
CMake
|
|
set(PLUGIN_NAME "onboard")
|
|
|
|
project(${PLUGIN_NAME})
|
|
|
|
# Sources files
|
|
file(GLOB_RECURSE SRCS "*.h"
|
|
"*.cpp"
|
|
"../../widgets/tipswidget.h"
|
|
"../../widgets/tipswidget.cpp"
|
|
"../../frame/qtdbusextended/*.h"
|
|
"../../frame/qtdbusextended/*.cpp")
|
|
|
|
find_package(PkgConfig REQUIRED)
|
|
find_package(Qt5Widgets REQUIRED)
|
|
find_package(Qt5DBus REQUIRED)
|
|
find_package(DtkGui REQUIRED)
|
|
find_package(DtkWidget REQUIRED)
|
|
|
|
add_definitions("${QT_DEFINITIONS} -DQT_PLUGIN")
|
|
add_library(${PLUGIN_NAME} SHARED ${SRCS} onboard.qrc)
|
|
set_target_properties(${PLUGIN_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../)
|
|
|
|
target_include_directories(${PLUGIN_NAME} PUBLIC ${Qt5DBus_INCLUDE_DIRS}
|
|
../../interfaces
|
|
../../frame/qtdbusextended)
|
|
|
|
target_link_libraries(${PLUGIN_NAME} PRIVATE
|
|
${DtkWidget_LIBRARIES}
|
|
Qt5::Widgets
|
|
Qt5::DBus
|
|
Dtk::Gui)
|
|
|
|
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
|