Commit 8f42b083 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 7ad1a32f
......@@ -106,7 +106,17 @@ add_subdirectory(core)
add_subdirectory(gui)
add_subdirectory(console)
install(FILES pimdataexporter.renamecategories pimdataexporter.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES pimdataexporter.renamecategories pimdataexporter.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT PIMDATAEXPORTER
FILE pimdataexporter.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
install(FILES org.kde.pimdataexporter.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
......
......@@ -11,7 +11,16 @@ set(pimdataexporterconsole_SRCS
loginfile.cpp
main.cpp)
ecm_qt_declare_logging_category(pimdataexporterconsole_SRCS HEADER pimdataexportconsole_debug.h IDENTIFIER PIMDATAEXPORTERCONSOLE_LOG CATEGORY_NAME org.kde.pim.pimdataexporterconsole)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pimdataexporterconsole_SRCS HEADER pimdataexportconsole_debug.h IDENTIFIER PIMDATAEXPORTERCONSOLE_LOG CATEGORY_NAME org.kde.pim.pimdataexporterconsole)
else()
ecm_qt_declare_logging_category(pimdataexporterconsole_SRCS HEADER pimdataexportconsole_debug.h IDENTIFIER PIMDATAEXPORTERCONSOLE_LOG CATEGORY_NAME org.kde.pim.pimdataexporterconsole
DESCRIPTION "pimdataexporter (pimdataexporter console)"
OLD_CATEGORY_NAMES log_pimsettingexporterconsole org.kde.pim.pimsettingexporterconsole
EXPORT PIMDATAEXPORTER
)
endif()
add_executable(pimdataexporterconsole ${pimdataexporterconsole_SRCS})
......
......@@ -6,7 +6,16 @@ include_directories(
set( pimdataexporterconsole_loginfiletest_SRCS loginfiletest.cpp ../loginfile.cpp )
ecm_qt_declare_logging_category(pimdataexporterconsole_loginfiletest_SRCS HEADER pimdataexportconsole_debug.h IDENTIFIER PIMDATAEXPORTERCONSOLE_LOG CATEGORY_NAME org.kde.pim.pimdataexporterconsole)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pimdataexporterconsole_loginfiletest_SRCS HEADER pimdataexportconsole_debug.h IDENTIFIER PIMDATAEXPORTERCONSOLE_LOG CATEGORY_NAME org.kde.pim.pimdataexporterconsole)
else()
ecm_qt_declare_logging_category(pimdataexporterconsole_loginfiletest_SRCS HEADER pimdataexportconsole_debug.h IDENTIFIER PIMDATAEXPORTERCONSOLE_LOG CATEGORY_NAME org.kde.pim.pimdataexporterconsole
DESCRIPTION "pimdataexporter (pimdataexporter console)"
OLD_CATEGORY_NAMES log_pimsettingexporterconsole org.kde.pim.pimsettingexporterconsole
EXPORT PIMDATAEXPORTER
)
endif()
add_executable( pimdataexporterconsole_loginfiletest ${pimdataexporterconsole_loginfiletest_SRCS})
......
......@@ -60,7 +60,15 @@ set(pimdataexporter_LIB_SRCS
pimdataimportdatainfofile.cpp
)
ecm_qt_declare_logging_category(pimdataexporter_LIB_SRCS HEADER pimdataexportcore_debug.h IDENTIFIER PIMDATAEXPORTERCORE_LOG CATEGORY_NAME org.kde.pim.pimdataexportercore)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pimdataexporter_LIB_SRCS HEADER pimdataexportcore_debug.h IDENTIFIER PIMDATAEXPORTERCORE_LOG CATEGORY_NAME org.kde.pim.pimdataexportercore)
else()
ecm_qt_declare_logging_category(pimdataexporter_LIB_SRCS HEADER pimdataexportcore_debug.h IDENTIFIER PIMDATAEXPORTERCORE_LOG CATEGORY_NAME org.kde.pim.pimdataexportercore
DESCRIPTION "pimdataexporter (pimdataexporter lib core)"
OLD_CATEGORY_NAMES log_pimsettingexportercore org.kde.pim.pimsettingexportercore
EXPORT PIMDATAEXPORTER
)
endif()
add_library(pimdataexporterprivate ${pimdataexporter_LIB_SRCS})
generate_export_header(pimdataexporterprivate BASE_NAME pimdataexporter)
......
......@@ -59,7 +59,15 @@ qt5_add_resources(pimdataexporter_SRCS pimdataexporter.qrc)
#TODO create lib
ecm_qt_declare_logging_category(pimdataexporter_SRCS HEADER pimdataexportgui_debug.h IDENTIFIER PIMDATAEXPORTERGUI_LOG CATEGORY_NAME org.kde.pim.pimdataexportergui)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(pimdataexporter_SRCS HEADER pimdataexportgui_debug.h IDENTIFIER PIMDATAEXPORTERGUI_LOG CATEGORY_NAME org.kde.pim.pimdataexportergui)
else()
ecm_qt_declare_logging_category(pimdataexporter_SRCS HEADER pimdataexportgui_debug.h IDENTIFIER PIMDATAEXPORTERGUI_LOG CATEGORY_NAME org.kde.pim.pimdataexportergui
DESCRIPTION "pimdataexporter (pimdataexporter gui)"
OLD_CATEGORY_NAMES log_pimsettingexportergui org.kde.pim.pimsettingexportergui
EXPORT PIMDATAEXPORTER
)
endif()
add_executable(pimdataexporter ${pimdataexporter_SRCS})
......
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