Commit 499f1d5b authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Rename all plugins to ksystemstats_plugin_*

Rather than ksysguard_ since they are no longer related to ksysguard
parent b2a05dc1
......@@ -2,19 +2,19 @@
# SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
# SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
add_library(ksysguard_plugin_cpu MODULE cpu.cpp cpuplugin.cpp usagecomputer.cpp)
add_library(ksystemstats_plugin_cpu MODULE cpu.cpp cpuplugin.cpp usagecomputer.cpp)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_sources(ksysguard_plugin_cpu PRIVATE linuxcpu.cpp linuxcpuplugin.cpp)
target_sources(ksystemstats_plugin_cpu PRIVATE linuxcpu.cpp linuxcpuplugin.cpp)
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_sources(ksysguard_plugin_cpu PRIVATE freebsdcpuplugin.cpp)
target_sources(ksystemstats_plugin_cpu PRIVATE freebsdcpuplugin.cpp)
endif()
target_link_libraries(ksysguard_plugin_cpu Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
target_link_libraries(ksystemstats_plugin_cpu Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
if(SENSORS_FOUND)
target_include_directories(ksysguard_plugin_cpu PRIVATE ${SENSORS_INCLUDE_DIR})
target_link_libraries(ksysguard_plugin_cpu ${SENSORS_LIBRARIES})
target_compile_definitions(ksysguard_plugin_cpu PRIVATE HAVE_SENSORS)
target_include_directories(ksystemstats_plugin_cpu PRIVATE ${SENSORS_INCLUDE_DIR})
target_link_libraries(ksystemstats_plugin_cpu ${SENSORS_LIBRARIES})
target_compile_definitions(ksystemstats_plugin_cpu PRIVATE HAVE_SENSORS)
endif()
install(TARGETS ksysguard_plugin_cpu DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
install(TARGETS ksystemstats_plugin_cpu DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
......@@ -2,11 +2,11 @@
# SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
# SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
add_library(ksysguard_plugin_disk MODULE disks.cpp)
target_link_libraries(ksysguard_plugin_disk Qt::Core KF5::CoreAddons KF5::I18n KF5::KIOCore KF5::Solid KSysGuard::SystemStats)
add_library(ksystemstats_plugin_disk MODULE disks.cpp)
target_link_libraries(ksystemstats_plugin_disk Qt::Core KF5::CoreAddons KF5::I18n KF5::KIOCore KF5::Solid KSysGuard::SystemStats)
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_link_libraries(ksysguard_plugin_disk geom devstat)
target_link_libraries(ksystemstats_plugin_disk geom devstat)
endif()
install(TARGETS ksysguard_plugin_disk DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
install(TARGETS ksystemstats_plugin_disk DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
......@@ -12,7 +12,7 @@ set(KSYSGUARD_GPU_PLUGIN_SOURCES
AllGpus.cpp
)
add_library(ksysguard_plugin_gpu MODULE ${KSYSGUARD_GPU_PLUGIN_SOURCES})
target_link_libraries(ksysguard_plugin_gpu Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats UDev::UDev)
add_library(ksystemstats_plugin_gpu MODULE ${KSYSGUARD_GPU_PLUGIN_SOURCES})
target_link_libraries(ksystemstats_plugin_gpu Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats UDev::UDev)
install(TARGETS ksysguard_plugin_gpu DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
install(TARGETS ksystemstats_plugin_gpu DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
......@@ -3,16 +3,16 @@
# SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
add_library(ksysguard_plugin_memory MODULE memory.cpp backend.cpp)
add_library(ksystemstats_plugin_memory MODULE memory.cpp backend.cpp)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_sources(ksysguard_plugin_memory PRIVATE linuxbackend.cpp)
target_sources(ksystemstats_plugin_memory PRIVATE linuxbackend.cpp)
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_sources(ksysguard_plugin_memory PRIVATE freebsdbackend.cpp)
target_link_libraries(ksysguard_plugin_memory kvm)
target_sources(ksystemstats_plugin_memory PRIVATE freebsdbackend.cpp)
target_link_libraries(ksystemstats_plugin_memory kvm)
endif()
target_link_libraries(ksysguard_plugin_memory Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
target_link_libraries(ksystemstats_plugin_memory Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
install(TARGETS ksysguard_plugin_memory DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
install(TARGETS ksystemstats_plugin_memory DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
endif()
......@@ -14,16 +14,16 @@ if (KF5NetworkManagerQt_FOUND)
add_definitions(-DNETWORKMANAGER_FOUND)
endif()
add_library(ksysguard_globalplugin_network MODULE ${KSYSGUARD_NETWORK_PLUGIN_SOURCES})
target_link_libraries(ksysguard_globalplugin_network PRIVATE Qt::Core Qt::Gui Qt::DBus KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
add_library(ksystemstats_plugin_network MODULE ${KSYSGUARD_NETWORK_PLUGIN_SOURCES})
target_link_libraries(ksystemstats_plugin_network PRIVATE Qt::Core Qt::Gui Qt::DBus KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
if (KF5NetworkManagerQt_FOUND)
target_link_libraries(ksysguard_globalplugin_network PRIVATE KF5::NetworkManagerQt)
target_link_libraries(ksystemstats_plugin_network PRIVATE KF5::NetworkManagerQt)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_sources(ksysguard_globalplugin_network PRIVATE RtNetlinkBackend.cpp)
target_link_libraries(ksysguard_globalplugin_network PRIVATE ${NL_LIBRARIES})
target_include_directories(ksysguard_globalplugin_network PRIVATE ${NL_INCLUDE_DIRS})
target_sources(ksystemstats_plugin_network PRIVATE RtNetlinkBackend.cpp)
target_link_libraries(ksystemstats_plugin_network PRIVATE ${NL_LIBRARIES})
target_include_directories(ksystemstats_plugin_network PRIVATE ${NL_INCLUDE_DIRS})
endif()
install(TARGETS ksysguard_globalplugin_network DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
install(TARGETS ksystemstats_plugin_network DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
......@@ -5,7 +5,7 @@ set(KSYSGUARD_OSINFO_PLUGIN_SOURCES
osinfo.cpp
)
add_library(ksysguard_plugin_osinfo MODULE ${KSYSGUARD_OSINFO_PLUGIN_SOURCES})
target_link_libraries(ksysguard_plugin_osinfo Qt::Core Qt::Gui Qt::DBus KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
add_library(ksystemstats_plugin_osinfo MODULE ${KSYSGUARD_OSINFO_PLUGIN_SOURCES})
target_link_libraries(ksystemstats_plugin_osinfo Qt::Core Qt::Gui Qt::DBus KF5::CoreAddons KF5::I18n KSysGuard::SystemStats)
install(TARGETS ksysguard_plugin_osinfo DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
install(TARGETS ksystemstats_plugin_osinfo DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
......@@ -2,6 +2,6 @@
# SPDX-FileCopyrightText: 2020 David Redondo <kde@david-redondo.de>
# SPDX-FileCopyrightText: 2021 Arjen Hiemstra <ahiemstra@heimr.nl>
add_library(ksysguard_plugin_power MODULE power.cpp)
target_link_libraries(ksysguard_plugin_power KF5::CoreAddons KF5::I18n KF5::Solid KSysGuard::SystemStats)
install(TARGETS ksysguard_plugin_power DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
add_library(ksystemstats_plugin_power MODULE power.cpp)
target_link_libraries(ksystemstats_plugin_power KF5::CoreAddons KF5::I18n KF5::Solid KSysGuard::SystemStats)
install(TARGETS ksystemstats_plugin_power DESTINATION ${KSYSTEMSTATS_PLUGIN_INSTALL_DIR})
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