2014-11-13 01:04:59 +02:00
|
|
|
if(KDE_PLATFORM_FEATURE_BINARY_COMPATIBLE_FEATURE_REDUCTION)
|
|
|
|
set(PLASMA_NO_SOLID TRUE)
|
|
|
|
set(PLASMA_NO_KIO TRUE)
|
|
|
|
set(PLASMA_NO_KUTILS TRUE)
|
|
|
|
set(PLASMA_NO_GLOBAL_SHORTCUTS TRUE)
|
2015-11-03 10:14:43 +02:00
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 04:28:49 +02:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
${KDE4_KDECORE_INCLUDES}
|
|
|
|
${KDE4_KDEUI_INCLUDES}
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/extenders
|
2016-04-27 23:02:44 +00:00
|
|
|
# for the export headers
|
|
|
|
${CMAKE_BINARY_DIR}/kutils
|
2015-10-31 04:28:49 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
if(NOT PLASMA_NO_KIO)
|
|
|
|
include_directories(${KDE4_KIO_INCLUDES})
|
2023-06-17 20:25:52 +03:00
|
|
|
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} kio)
|
2015-11-03 10:14:43 +02:00
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
if(NOT PLASMA_NO_SOLID)
|
|
|
|
include_directories(${CMAKE_BINARY_DIR}/solid/)
|
|
|
|
include_directories(${CMAKE_SOURCE_DIR}/solid/)
|
2023-06-17 20:25:52 +03:00
|
|
|
set(PLASMA_EXTRA_LIBS ${PLASMA_EXTRA_LIBS} solid)
|
2015-11-03 10:14:43 +02:00
|
|
|
endif()
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-10-31 04:28:49 +02:00
|
|
|
configure_file(
|
2015-11-03 10:14:43 +02:00
|
|
|
config-plasma.h.cmake
|
2015-10-31 04:28:49 +02:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/config-plasma.h
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-09-01 01:05:33 +03:00
|
|
|
if(ENABLE_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|
2015-11-09 09:28:25 +02:00
|
|
|
|
2014-11-13 01:04:59 +02:00
|
|
|
add_definitions(-DKDE_DEFAULT_DEBUG_AREA=1209)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2015-09-05 13:31:12 +00:00
|
|
|
set(plasma_LIB_SRCS
|
2014-11-13 01:04:59 +02:00
|
|
|
packagemetadata.cpp
|
|
|
|
packagestructure.cpp
|
|
|
|
package.cpp
|
|
|
|
abstractrunner.cpp
|
|
|
|
abstracttoolbox.cpp
|
2015-10-28 08:55:23 +02:00
|
|
|
animator.cpp
|
|
|
|
animations/animation.cpp
|
|
|
|
animations/easinganimation.cpp
|
|
|
|
animations/fade.cpp
|
|
|
|
animations/pixmaptransition.cpp
|
|
|
|
animations/pulser.cpp
|
|
|
|
animations/slide.cpp
|
|
|
|
animations/geometry.cpp
|
|
|
|
animations/widgetsnapshot.cpp
|
|
|
|
animations/zoom.cpp
|
2014-11-13 01:04:59 +02:00
|
|
|
applet.cpp
|
|
|
|
containment.cpp
|
|
|
|
containmentactions.cpp
|
|
|
|
containmentactionspluginsconfig.cpp
|
|
|
|
corona.cpp
|
|
|
|
datacontainer.cpp
|
|
|
|
dataengine.cpp
|
|
|
|
dataenginemanager.cpp
|
|
|
|
delegate.cpp
|
|
|
|
dialog.cpp
|
2022-11-07 18:05:08 +02:00
|
|
|
dialogshadows.cpp
|
2014-11-13 01:04:59 +02:00
|
|
|
extenders/extender.cpp
|
|
|
|
extenders/extendergroup.cpp
|
|
|
|
extenders/extenderitem.cpp
|
|
|
|
pluginloader.cpp
|
|
|
|
paintutils.cpp
|
|
|
|
framesvg.cpp
|
|
|
|
plasma.cpp
|
|
|
|
popupapplet.cpp
|
|
|
|
private/applethandle.cpp
|
|
|
|
private/associatedapplicationmanager.cpp
|
|
|
|
private/datacontainer_p.cpp
|
|
|
|
private/dataengineconsumer.cpp
|
|
|
|
private/extenderapplet.cpp
|
|
|
|
private/extenderitemmimedata.cpp
|
|
|
|
private/nativetabbar.cpp
|
|
|
|
private/packages.cpp
|
|
|
|
private/runnerjobs.cpp
|
|
|
|
private/style.cpp
|
|
|
|
private/themedwidgetinterface.cpp
|
|
|
|
private/tooltip.cpp
|
|
|
|
private/windowpreview.cpp
|
|
|
|
private/effects/halopainter.cpp
|
|
|
|
querymatch.cpp
|
|
|
|
runnercontext.cpp
|
|
|
|
runnermanager.cpp
|
|
|
|
runnersyntax.cpp
|
|
|
|
service.cpp
|
|
|
|
servicejob.cpp
|
|
|
|
svg.cpp
|
|
|
|
theme.cpp
|
|
|
|
tooltipcontent.cpp
|
|
|
|
tooltipmanager.cpp
|
|
|
|
view.cpp
|
|
|
|
wallpaper.cpp
|
|
|
|
windoweffects.cpp
|
|
|
|
widgets/checkbox.cpp
|
|
|
|
widgets/combobox.cpp
|
|
|
|
widgets/flashinglabel.cpp
|
|
|
|
widgets/frame.cpp
|
|
|
|
widgets/groupbox.cpp
|
|
|
|
widgets/iconwidget.cpp
|
|
|
|
widgets/itembackground.cpp
|
|
|
|
widgets/label.cpp
|
|
|
|
widgets/lineedit.cpp
|
|
|
|
widgets/meter.cpp
|
|
|
|
widgets/pushbutton.cpp
|
|
|
|
widgets/radiobutton.cpp
|
|
|
|
widgets/scrollbar.cpp
|
|
|
|
widgets/signalplotter.cpp
|
|
|
|
widgets/slider.cpp
|
|
|
|
widgets/spinbox.cpp
|
|
|
|
widgets/toolbutton.cpp
|
|
|
|
widgets/busywidget.cpp
|
|
|
|
widgets/scrollwidget.cpp
|
|
|
|
widgets/separator.cpp
|
|
|
|
widgets/svgwidget.cpp
|
|
|
|
widgets/tabbar.cpp
|
|
|
|
widgets/textbrowser.cpp
|
|
|
|
widgets/treeview.cpp
|
|
|
|
widgets/textedit.cpp
|
2023-07-23 11:30:12 +03:00
|
|
|
widgets/calendarwidget.cpp
|
2014-11-13 01:04:59 +02:00
|
|
|
)
|
|
|
|
|
2023-06-11 19:58:06 +03:00
|
|
|
set_source_files_properties(
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/dialogshadows.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/windoweffects.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/widgets/label.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/widgets/pushbutton.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/widgets/scrollwidget.cpp
|
|
|
|
${CMAKE_SOURCE_DIR}/plasma/view.cpp
|
|
|
|
PROPERTIES SKIP_UNITY_BUILD_INCLUSION TRUE
|
|
|
|
)
|
|
|
|
|
2023-06-10 23:05:53 +03:00
|
|
|
add_library(plasma SHARED ${plasma_LIB_SRCS})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2020-02-09 21:45:50 +00:00
|
|
|
target_link_libraries(plasma PUBLIC
|
2015-11-03 10:14:43 +02:00
|
|
|
${QT_QTNETWORK_LIBRARY}
|
2021-09-15 00:07:15 +03:00
|
|
|
${QT_QTSVG_LIBRARY}
|
2015-11-03 10:14:43 +02:00
|
|
|
${PLASMA_EXTRA_LIBS}
|
2023-06-17 20:25:52 +03:00
|
|
|
kdecore
|
|
|
|
kdeui
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2023-06-10 22:04:39 +03:00
|
|
|
target_link_libraries(plasma PRIVATE ${X11_LIBRARIES})
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
set_target_properties(plasma PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
install(
|
|
|
|
TARGETS plasma
|
2023-06-17 23:57:38 +03:00
|
|
|
EXPORT kdelibsTargets
|
2023-06-17 09:11:52 +03:00
|
|
|
DESTINATION ${KDE4_LIB_INSTALL_DIR}
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2016-04-27 18:43:11 +00:00
|
|
|
generate_export_header(plasma)
|
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2014-11-13 01:04:59 +02:00
|
|
|
packagemetadata.h
|
|
|
|
packagestructure.h
|
|
|
|
package.h
|
|
|
|
abstractrunner.h
|
|
|
|
abstracttoolbox.h
|
2015-10-28 08:55:23 +02:00
|
|
|
animations/animation.h
|
|
|
|
animator.h
|
2014-11-13 01:04:59 +02:00
|
|
|
applet.h
|
|
|
|
containment.h
|
|
|
|
containmentactions.h
|
|
|
|
containmentactionspluginsconfig.h
|
|
|
|
corona.h
|
|
|
|
datacontainer.h
|
|
|
|
dataengine.h
|
|
|
|
dataenginemanager.h
|
|
|
|
delegate.h
|
|
|
|
dialog.h
|
2022-11-07 18:05:08 +02:00
|
|
|
dialogshadows.h
|
2014-11-13 01:04:59 +02:00
|
|
|
extenders/extender.h
|
|
|
|
extenders/extendergroup.h
|
|
|
|
extenders/extenderitem.h
|
|
|
|
pluginloader.h
|
|
|
|
paintutils.h
|
|
|
|
windoweffects.h
|
|
|
|
framesvg.h
|
|
|
|
plasma.h
|
|
|
|
popupapplet.h
|
|
|
|
querymatch.h
|
|
|
|
runnercontext.h
|
|
|
|
runnermanager.h
|
|
|
|
runnersyntax.h
|
|
|
|
service.h
|
|
|
|
servicejob.h
|
|
|
|
svg.h
|
|
|
|
theme.h
|
|
|
|
tooltipcontent.h
|
|
|
|
tooltipmanager.h
|
|
|
|
view.h
|
2015-11-03 10:14:43 +02:00
|
|
|
wallpaper.h
|
2023-06-02 11:33:01 +03:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/plasma_export.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2014-11-13 01:04:59 +02:00
|
|
|
widgets/checkbox.h
|
|
|
|
widgets/combobox.h
|
|
|
|
widgets/flashinglabel.h
|
|
|
|
widgets/frame.h
|
|
|
|
widgets/groupbox.h
|
|
|
|
widgets/iconwidget.h
|
|
|
|
widgets/itembackground.h
|
|
|
|
widgets/label.h
|
|
|
|
widgets/lineedit.h
|
|
|
|
widgets/meter.h
|
|
|
|
widgets/pushbutton.h
|
|
|
|
widgets/toolbutton.h
|
|
|
|
widgets/radiobutton.h
|
|
|
|
widgets/scrollbar.h
|
|
|
|
widgets/signalplotter.h
|
|
|
|
widgets/slider.h
|
|
|
|
widgets/spinbox.h
|
|
|
|
widgets/busywidget.h
|
|
|
|
widgets/separator.h
|
|
|
|
widgets/svgwidget.h
|
|
|
|
widgets/scrollwidget.h
|
|
|
|
widgets/tabbar.h
|
|
|
|
widgets/textbrowser.h
|
|
|
|
widgets/treeview.h
|
|
|
|
widgets/textedit.h
|
2023-07-23 11:30:12 +03:00
|
|
|
widgets/calendarwidget.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/widgets
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
install(
|
|
|
|
FILES
|
2015-10-28 08:55:23 +02:00
|
|
|
animations/animation.h
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasma/animations
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2015-10-28 08:55:23 +02:00
|
|
|
|
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
data/servicetypes/plasma-applet.desktop
|
|
|
|
data/servicetypes/plasma-applet-popupapplet.desktop
|
|
|
|
data/servicetypes/plasma-containment.desktop
|
|
|
|
data/servicetypes/plasma-containmentactions.desktop
|
|
|
|
data/servicetypes/plasma-dataengine.desktop
|
|
|
|
data/servicetypes/plasma-runner.desktop
|
|
|
|
data/servicetypes/plasma-toolbox.desktop
|
|
|
|
data/servicetypes/plasma-wallpaper.desktop
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_SERVICETYPES_INSTALL_DIR}
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|
2015-11-03 10:14:43 +02:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
data/services/plasma-applet-extenderapplet.desktop
|
2021-02-26 20:15:41 +02:00
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR}
|
2015-11-03 10:14:43 +02:00
|
|
|
)
|
2014-11-13 01:04:59 +02:00
|
|
|
|