Support newer kdebugsettings .categories file format

parent 6e129267
......@@ -145,10 +145,16 @@ install(FILES codestyle.py DESTINATION ${KDE_INSTALL_DATADIR}/kdevpythonsupport)
install(FILES org.kde.kdev-python.metainfo.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
# kdebugsettings file
# kdebugsettings >= 18.12 supports/pushes for some newer, not backward-compatible format.
# For ECM >= 5.59 we install categories files to new location, which is only supported by
# newer kdebugsettings also supporting the new content format, so we use that as base.
if (ECM_VERSION VERSION_GREATER "5.58.0")
install(FILES kdevpythonsupport.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
install(FILES kdevpythonsupport-newformat.categories RENAME kdevpythonsupport.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
else()
install(FILES kdevpythonsupport.categories DESTINATION ${KDE_INSTALL_CONFDIR})
install(FILES kdevpythonsupport-oldformat.categories RENAME kdevpythonsupport.categories
DESTINATION ${KDE_INSTALL_CONFDIR})
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
# KDebugSettings data file
# Format:
# logname<space>description(optional <space> DEFAULT_SEVERITY [DEFAULT_CATEGORY] as WARNING/DEBUG/INFO/CRITICAL) optional IDENTIFIER [...])
kdevelop.plugins.python KDevelop plugin: Python language support IDENTIFIER [KDEV_PYTHON]
kdevelop.plugins.python.codecompletion KDevelop plugin: Python language support - codecompletion IDENTIFIER [KDEV_PYTHON_CODECOMPLETION]
kdevelop.plugins.python.codegen KDevelop plugin: Python language support - codegen IDENTIFIER [KDEV_PYTHON_CODEGEN]
kdevelop.plugins.python.debugger KDevelop plugin: Python language support - debugger IDENTIFIER [KDEV_PYTHON_DEBUGGER]
kdevelop.plugins.python.duchain KDevelop plugin: Python language support - duchain IDENTIFIER [KDEV_PYTHON_DUCHAIN]
kdevelop.plugins.python.parser KDevelop plugin: Python language support - parser IDENTIFIER [KDEV_PYTHON_PARSER]
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