Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
KSystemStats
Commits
dd8ebc83
Commit
dd8ebc83
authored
Apr 13, 2021
by
Arjen Hiemstra
Browse files
Install plugins into the right location
Use ksystemstats instead of ksysguard
parent
3980df0a
Changes
9
Hide whitespace changes
Inline
Side-by-side
plugins/CMakeLists.txt
View file @
dd8ebc83
add_definitions
(
-DTRANSLATION_DOMAIN=\"ksysguard_plugins_global\"
)
set
(
KSYSTEMSTATS_PLUGIN_INSTALL_DIR
${
KDE_INSTALL_PLUGINDIR
}
/ksystemstats
)
add_subdirectory
(
osinfo
)
add_subdirectory
(
network
)
add_subdirectory
(
power
)
...
...
plugins/cpu/CMakeLists.txt
View file @
dd8ebc83
...
...
@@ -13,4 +13,4 @@ if(SENSORS_FOUND)
target_compile_definitions
(
ksysguard_plugin_cpu PRIVATE HAVE_SENSORS
)
endif
()
install
(
TARGETS ksysguard_plugin_cpu DESTINATION
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_plugin_cpu DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
plugins/disks/CMakeLists.txt
View file @
dd8ebc83
...
...
@@ -6,4 +6,4 @@ if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_link_libraries
(
ksysguard_plugin_disk geom devstat
)
endif
()
install
(
TARGETS ksysguard_plugin_disk DESTINATION
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_plugin_disk DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
plugins/gpu/CMakeLists.txt
View file @
dd8ebc83
...
...
@@ -12,4 +12,4 @@ set(KSYSGUARD_GPU_PLUGIN_SOURCES
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
)
install
(
TARGETS ksysguard_plugin_gpu DESTINATION
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_plugin_gpu DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
plugins/memory/CMakeLists.txt
View file @
dd8ebc83
...
...
@@ -10,5 +10,5 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
target_link_libraries
(
ksysguard_plugin_memory Qt::Core KF5::CoreAddons KF5::I18n KSysGuard::SystemStats
)
install
(
TARGETS ksysguard_plugin_memory DESTINATION
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_plugin_memory DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
endif
()
plugins/network/CMakeLists.txt
View file @
dd8ebc83
...
...
@@ -22,4 +22,4 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_include_directories
(
ksysguard_globalplugin_network PRIVATE
${
NL_INCLUDE_DIRS
}
)
endif
()
install
(
TARGETS ksysguard_globalplugin_network DESTINATION
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_globalplugin_network DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
plugins/osinfo/CMakeLists.txt
View file @
dd8ebc83
...
...
@@ -5,4 +5,4 @@ set(KSYSGUARD_OSINFO_PLUGIN_SOURCES
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
)
install
(
TARGETS ksysguard_plugin_osinfo DESTINATION
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_plugin_osinfo DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
plugins/power/CMakeLists.txt
View file @
dd8ebc83
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
${
K
DE_IN
STA
LL
_PLUGIN
DIR
}
/ksysguard
)
install
(
TARGETS ksysguard_plugin_power DESTINATION
${
K
SYSTEM
STA
TS
_PLUGIN
_INSTALL_DIR
}
)
src/ksysguarddaemon.cpp
View file @
dd8ebc83
...
...
@@ -93,7 +93,7 @@ void KSysGuardDaemon::loadProviders()
std
::
for_each
(
m_providers
.
cbegin
(),
m_providers
.
cend
(),
[
&
knownPlugins
]
(
const
KSysGuard
::
SensorPlugin
*
plugin
)
{
knownPlugins
.
insert
(
plugin
->
providerName
());
});
const
auto
plugins
=
KPluginLoader
::
instantiatePlugins
(
QStringLiteral
(
"ksys
guard
"
),
[
this
,
&
knownPlugins
](
const
KPluginMetaData
&
metaData
)
{
const
auto
plugins
=
KPluginLoader
::
instantiatePlugins
(
QStringLiteral
(
"ksys
temstats
"
),
[
this
,
&
knownPlugins
](
const
KPluginMetaData
&
metaData
)
{
auto
providerName
=
metaData
.
rawData
().
value
(
"providerName"
).
toString
();
if
(
knownPlugins
.
contains
(
providerName
))
{
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment