Commit 9449f531 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent ffc53038
......@@ -82,6 +82,10 @@ add_subdirectory(src)
file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES *.cpp *.h)
kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES})
install(FILES drkonqi.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
ecm_qt_install_logging_categories(
EXPORT DRKONQI
FILE drkonqi.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
org.kde.drkonqi drkonqi IDENTIFIER [DRKONQI_LOG]
org.kde.drkonqi.parser drkonqi parser IDENTIFIER [DRKONQI_PARSER_LOG]
org.kde.drkonqi.bugzilla drkonqi bugzilla IDENTIFIER [BUGZILLA_LOG]
......@@ -80,7 +80,8 @@ ki18n_wrap_ui(drkonqi_SRCS
bugzillaintegration/ui/assistantpage_bugzilla_version.ui
)
ecm_qt_declare_logging_category(drkonqi_SRCS HEADER drkonqi_debug.h IDENTIFIER DRKONQI_LOG CATEGORY_NAME org.kde.drkonqi)
ecm_qt_declare_logging_category(drkonqi_SRCS HEADER drkonqi_debug.h IDENTIFIER DRKONQI_LOG CATEGORY_NAME org.kde.drkonqi
DESCRIPTION "drkonqi" EXPORT DRKONQI)
# transient static lib we can use to link autotests against
add_library(DrKonqiInternal STATIC ${drkonqi_SRCS})
......
......@@ -29,7 +29,8 @@ ecm_qt_declare_logging_category(lib_SRCS
HEADER bugzilla_debug.h
IDENTIFIER BUGZILLA_LOG
CATEGORY_NAME org.kde.drkonqi.bugzilla
DEFAULT_SEVERITY Warning)
DEFAULT_SEVERITY Warning
DESCRIPTION "drkonqi bugzilla" EXPORT DRKONQI)
add_library(qbugzilla STATIC ${lib_SRCS})
target_link_libraries(qbugzilla
......
......@@ -7,7 +7,8 @@ set(BACKTRACEPARSER_SRCS
backtraceparsercdb.cpp
)
ecm_qt_declare_logging_category(BACKTRACEPARSER_SRCS HEADER drkonqi_parser_debug.h IDENTIFIER DRKONQI_PARSER_LOG CATEGORY_NAME org.kde.drkonqi.parser)
ecm_qt_declare_logging_category(BACKTRACEPARSER_SRCS HEADER drkonqi_parser_debug.h IDENTIFIER DRKONQI_PARSER_LOG CATEGORY_NAME org.kde.drkonqi.parser
DESCRIPTION "drkonqi parser" EXPORT DRKONQI)
add_library(drkonqi_backtrace_parser STATIC ${BACKTRACEPARSER_SRCS})
target_link_libraries(drkonqi_backtrace_parser
......
Supports Markdown
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