Commit 39a22f45 authored by Laurent Montel's avatar Laurent Montel 😁

Autogenerate categories file

parent 882bf795
......@@ -149,6 +149,11 @@ install(EXPORT libksysguardLibraryTargets
DESTINATION ${CMAKECONFIG_INSTALL_DIR}
FILE KSysGuardLibraryTargets.cmake )
install(FILES libksysguard.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ecm_qt_install_logging_categories(
EXPORT LIBKSYSGUARD
FILE libksysguard.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -20,7 +20,7 @@ ecm_qt_declare_logging_category(faces_LIB_SRCS
HEADER faces_logging.h
IDENTIFIER LIBKSYSGUARD_SENSORS
CATEGORY_NAME org.kde.libksysguard.faces
)
DESCRIPTION "libksysguard (faces)" EXPORT LIBKSYSGUARD)
set_source_files_properties(org.kde.KSysGuardDaemon.xml PROPERTIES INCLUDE SensorInfo_p.h)
qt5_add_resources(RESOURCES resources.qrc)
......
......@@ -15,6 +15,7 @@ ecm_qt_declare_logging_category(formatter_SRCS
HEADER formatter_debug.h
IDENTIFIER FORMATTER
CATEGORY_NAME org.kde.libksysguard.formatter
DESCRIPTION "libksysguard (formatter)" EXPORT LIBKSYSGUARD
)
add_library(Formatter ${formatter_SRCS})
......
......@@ -10,7 +10,8 @@ set(ksgrd_LIB_SRCS
SensorSocketAgent.cpp
)
ecm_qt_declare_logging_category(ksgrd_LIB_SRCS HEADER ksgrd_debug.h IDENTIFIER LIBKSYSGUARD_KSGRD CATEGORY_NAME org.kde.libksysguard.ksgrd)
ecm_qt_declare_logging_category(ksgrd_LIB_SRCS HEADER ksgrd_debug.h IDENTIFIER LIBKSYSGUARD_KSGRD CATEGORY_NAME org.kde.libksysguard.ksgrd
DESCRIPTION "libksysguard (ksgrd)" EXPORT LIBKSYSGUARD)
add_definitions(-DTRANSLATION_DOMAIN=\"ksgrd\")
remove_definitions(-DQT_NO_CAST_FROM_ASCII -DQT_STRICT_ITERATORS -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_KEYWORDS)
......
org.kde.libksysguard.ksgrd libksysguard (ksgrd) IDENTIFIER [LIBKSYSGUARD_KSGRD]
org.kde.libksysguard.processcore libksysguard (processcore) IDENTIFIER [LIBKSYSGUARD_PROCESSCORE]
org.kde.libksysguard.processui libksysguard (processui) IDENTIFIER [LIBKSYSGUARD_PROCESSUI]
org.kde.libksysguard.ksignalplotter libksysguard (ksignalplotter) IDENTIFIER [LIBKSYSGUARD_KSIGNALPLOTTER]
......@@ -20,7 +20,8 @@ set(ksysguard_LIB_SRCS
process_data_provider.cpp
read_procsmaps_runnable.cpp
)
ecm_qt_declare_logging_category(ksysguard_LIB_SRCS HEADER processcore_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSCORE CATEGORY_NAME org.kde.libksysguard.processcore)
ecm_qt_declare_logging_category(ksysguard_LIB_SRCS HEADER processcore_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSCORE CATEGORY_NAME org.kde.libksysguard.processcore
DESCRIPTION "libksysguard (processcore)" EXPORT LIBKSYSGUARD)
add_library(processcore ${ksysguard_LIB_SRCS})
add_library(KSysGuard::ProcessCore ALIAS processcore)
......
......@@ -14,7 +14,8 @@ set(processui_LIB_SRCS
scripting.cpp
)
ecm_qt_declare_logging_category(processui_LIB_SRCS HEADER processui_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSUI CATEGORY_NAME org.kde.libksysguard.processui)
ecm_qt_declare_logging_category(processui_LIB_SRCS HEADER processui_debug.h IDENTIFIER LIBKSYSGUARD_PROCESSUI CATEGORY_NAME org.kde.libksysguard.processui
DESCRIPTION "libksysguard (processui)" EXPORT LIBKSYSGUARD)
ki18n_wrap_ui( processui_LIB_SRCS
......
......@@ -25,6 +25,7 @@ ecm_qt_declare_logging_category(sensors_LIB_SRCS
HEADER sensors_logging.h
IDENTIFIER LIBKSYSGUARD_SENSORS
CATEGORY_NAME org.kde.libksysguard.sensors
DESCRIPTION "libksysguard (sensors)" EXPORT LIBKSYSGUARD
)
set_source_files_properties(org.kde.KSysGuardDaemon.xml PROPERTIES INCLUDE SensorInfo_p.h)
......
......@@ -5,7 +5,8 @@ set(ksignalplotter_LIB_SRCS
ksignalplotter.cpp
kgraphicssignalplotter.cpp
)
ecm_qt_declare_logging_category(ksignalplotter_LIB_SRCS HEADER ksignalplotter_debug.h IDENTIFIER LIBKSYSGUARD_KSIGNALPLOTTER CATEGORY_NAME org.kde.libksysguard.ksignalplotter)
ecm_qt_declare_logging_category(ksignalplotter_LIB_SRCS HEADER ksignalplotter_debug.h IDENTIFIER LIBKSYSGUARD_KSIGNALPLOTTER CATEGORY_NAME org.kde.libksysguard.ksignalplotter
DESCRIPTION "libksysguard (ksignalplotter)" EXPORT LIBKSYSGUARD)
add_library(ksignalplotter ${ksignalplotter_LIB_SRCS})
add_library(KSysGuard::SignalPlotter ALIAS ksignalplotter)
......
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