Commit 55d37039 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Restore cursor thumbnailer

Baiscally just find xlib and change the link targets.
There's no xcb equivalent for plain cursor file loading.

BUG: 387660
FIXED-IN: 20.04.0

Differential Revision: https://phabricator.kde.org/D24431
parent e26dc6d8
......@@ -14,6 +14,13 @@ set_package_properties(libappimage PROPERTIES DESCRIPTION "Core library of the A
PURPOSE "Provides support for AppImage thumbnails"
)
find_package(X11)
set_package_properties(X11 PROPERTIES DESCRIPTION "X11 libraries"
URL "https://www.x.org"
TYPE OPTIONAL
PURPOSE "Provides support for XCursor thumbnails"
)
include_directories(${CMAKE_BINARY_DIR})
########### next target ###############
......@@ -138,19 +145,22 @@ endif()
########### next target ###############
# if(X11_Xcursor_FOUND)
#
# set(cursorthumbnail_PART_SRCS cursorcreator.cpp)
#
# add_library(cursorthumbnail MODULE ${cursorthumbnail_PART_SRCS})
#
# target_link_libraries(cursorthumbnail ${X11_Xcursor_LIB} ${KIO_LIBRARIES})
#
# install(TARGETS cursorthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR})
# install( FILES cursorthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
#
# endif()
#
if(X11_Xcursor_FOUND)
set(cursorthumbnail_PART_SRCS cursorcreator.cpp)
add_library(cursorthumbnail MODULE ${cursorthumbnail_PART_SRCS})
target_link_libraries(cursorthumbnail
KF5::KIOCore
KF5::KIOWidgets
${X11_Xcursor_LIB}
)
install(TARGETS cursorthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR})
install( FILES cursorthumbnail.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
endif()
########### next target ###############
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment