Commit a6414682 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent 323a983e
......@@ -93,7 +93,15 @@ add_definitions(-DQT_NO_FOREACH)
add_subdirectory(src)
install(FILES importwizard.renamecategories importwizard.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES importwizard.renamecategories importwizard.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT IMPORTWIZARD
FILE importwizard.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -50,8 +50,16 @@ ki18n_wrap_ui(importwizard_SRCS
ui/manual/manualselectfilterpage.ui
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(importwizard_SRCS HEADER importwizard_debug.h IDENTIFIER IMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard)
else()
ecm_qt_declare_logging_category(importwizard_SRCS HEADER importwizard_debug.h IDENTIFIER IMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard
DESCRIPTION "importwizard (importwizard)"
OLD_CATEGORY_NAMES log_importwizard
EXPORT IMPORTWIZARD
)
endif()
ecm_qt_declare_logging_category(importwizard_SRCS HEADER importwizard_debug.h IDENTIFIER IMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard)
add_executable(akonadiimportwizard
${importwizard_SRCS}
......
......@@ -47,7 +47,16 @@ set(libimportwizard_utils_SRCS
importwizardutil.cpp
)
ecm_qt_declare_logging_category(libimportwizard_abstract_SRCS HEADER libimportwizard_debug.h IDENTIFIER LIBIMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard.lib)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libimportwizard_abstract_SRCS HEADER libimportwizard_debug.h IDENTIFIER LIBIMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard.lib)
else()
ecm_qt_declare_logging_category(libimportwizard_abstract_SRCS HEADER libimportwizard_debug.h IDENTIFIER LIBIMPORTWIZARD_LOG CATEGORY_NAME org.kde.pim.importwizard.lib
DESCRIPTION "importwizard (libimportwizard)"
EXPORT IMPORTWIZARD
)
endif()
add_library(KPimImportWizard ${libimportwizard_abstract_SRCS} ${libimportwizard_utils_SRCS})
......
......@@ -3,8 +3,18 @@ set(balsaimporter_SRCS
balsaimportdata.cpp
balsasettings.cpp
)
ecm_qt_declare_logging_category(balsaimporter_SRCS HEADER balsaplugin_debug.h
IDENTIFIER BALSAPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.balsaplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(balsaimporter_SRCS HEADER balsaplugin_debug.h
IDENTIFIER BALSAPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.balsaplugin)
else()
ecm_qt_declare_logging_category(balsaimporter_SRCS HEADER balsaplugin_debug.h
IDENTIFIER BALSAPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.balsaplugin
DESCRIPTION "importwizard (balsa plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(balsaimporterplugin JSON balsaimporter.json SOURCES
${balsaimporter_SRCS} INSTALL_NAMESPACE importwizard)
......
......@@ -8,10 +8,30 @@ set(clawsmailimporter_SRCS
)
ecm_qt_declare_logging_category(clawsmailimporter_SRCS HEADER sylpheedplugin_debug.h
IDENTIFIER SYLPHEEDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.sylpheedplugin)
ecm_qt_declare_logging_category(clawsmailimporter_SRCS HEADER clawsmailplugin_debug.h
IDENTIFIER CLAWSMAILPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.clawsmailplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(clawsmailimporter_SRCS HEADER sylpheedplugin_debug.h
IDENTIFIER SYLPHEEDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.sylpheedplugin)
else()
ecm_qt_declare_logging_category(clawsmailimporter_SRCS HEADER sylpheedplugin_debug.h
IDENTIFIER SYLPHEEDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.sylpheedplugin
DESCRIPTION "importwizard (sylpheed plugin)"
EXPORT IMPORTWIZARD
)
endif()
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(clawsmailimporter_SRCS HEADER clawsmailplugin_debug.h
IDENTIFIER CLAWSMAILPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.clawsmailplugin)
else()
ecm_qt_declare_logging_category(clawsmailimporter_SRCS HEADER clawsmailplugin_debug.h
IDENTIFIER CLAWSMAILPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.clawsmailplugin
DESCRIPTION "importwizard (claws-mail plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(clawsmailimporterplugin JSON clawsmailimporter.json SOURCES
${clawsmailimporter_SRCS} INSTALL_NAMESPACE importwizard)
set_target_properties(clawsmailimporterplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/importwizard/")
......
......@@ -5,8 +5,17 @@ set(evolutionv3importer_SRCS
evolutioncalendar.cpp
evolutionutil.cpp
)
ecm_qt_declare_logging_category(evolutionv3importer_SRCS HEADER evolutionv3plugin_debug.h
IDENTIFIER EVOLUTIONPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.evolutionplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(evolutionv3importer_SRCS HEADER evolutionv3plugin_debug.h
IDENTIFIER EVOLUTIONPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.evolutionplugin)
else()
ecm_qt_declare_logging_category(evolutionv3importer_SRCS HEADER evolutionv3plugin_debug.h
IDENTIFIER EVOLUTIONPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.evolutionplugin
DESCRIPTION "importwizard (thunderbird plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(evolutionv3importerplugin JSON evolutionv3importer.json SOURCES
${evolutionv3importer_SRCS} INSTALL_NAMESPACE importwizard)
......
......@@ -6,8 +6,17 @@ set(icedoveimporter_SRCS
)
ecm_qt_declare_logging_category(icedoveimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(icedoveimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
else()
ecm_qt_declare_logging_category(icedoveimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin
DESCRIPTION "importwizard (thunderbird plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(icedoveimporterplugin JSON icedoveimporter.json SOURCES
${icedoveimporter_SRCS} INSTALL_NAMESPACE importwizard)
set_target_properties(icedoveimporterplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/importwizard/")
......
......@@ -6,8 +6,17 @@ set(seamonkeyimporter_SRCS
)
ecm_qt_declare_logging_category(seamonkeyimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(seamonkeyimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
else()
ecm_qt_declare_logging_category(seamonkeyimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin
DESCRIPTION "importwizard (thunderbird plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(seamonkeyimporterplugin JSON seamonkeyimporter.json SOURCES
${seamonkeyimporter_SRCS} INSTALL_NAMESPACE importwizard)
set_target_properties(seamonkeyimporterplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/importwizard/")
......
......@@ -4,8 +4,16 @@ set(sylpheedimporter_SRCS
sylpheedsettings.cpp
sylpheedsettingsutils.cpp
)
ecm_qt_declare_logging_category(sylpheedimporter_SRCS HEADER sylpheedplugin_debug.h
IDENTIFIER SYLPHEEDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.sylpheedplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(sylpheedimporter_SRCS HEADER sylpheedplugin_debug.h
IDENTIFIER SYLPHEEDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.sylpheedplugin)
else()
ecm_qt_declare_logging_category(sylpheedimporter_SRCS HEADER sylpheedplugin_debug.h
IDENTIFIER SYLPHEEDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.sylpheedplugin
DESCRIPTION "importwizard (sylpheed plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(sylpheedimporterplugin JSON sylpheedimporter.json SOURCES
${sylpheedimporter_SRCS} INSTALL_NAMESPACE importwizard)
......
......@@ -4,9 +4,17 @@ set(thunderbirdimporter_SRCS
thunderbirdsettings.cpp
addressbook/MorkParser.cpp
)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(thunderbirdimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
else()
ecm_qt_declare_logging_category(thunderbirdimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin
DESCRIPTION "importwizard (thunderbird plugin)"
EXPORT IMPORTWIZARD
)
endif()
ecm_qt_declare_logging_category(thunderbirdimporter_SRCS HEADER thunderbirdplugin_debug.h
IDENTIFIER THUNDERBIRDPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.thunderbirdplugin)
kcoreaddons_add_plugin(thunderbirdimporterplugin JSON thunderbirdimporter.json SOURCES
${thunderbirdimporter_SRCS} INSTALL_NAMESPACE importwizard)
set_target_properties(thunderbirdimporterplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/importwizard/")
......
......@@ -4,8 +4,17 @@ set(trojitaimporter_SRCS
trojitasettings.cpp
)
ecm_qt_declare_logging_category(trojitaimporter_SRCS HEADER trojitaplugin_debug.h
IDENTIFIER TROJITAPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.trojitaplugin)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(trojitaimporter_SRCS HEADER trojitaplugin_debug.h
IDENTIFIER TROJITAPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.trojitaplugin)
else()
ecm_qt_declare_logging_category(trojitaimporter_SRCS HEADER trojitaplugin_debug.h
IDENTIFIER TROJITAPLUGIN_LOG CATEGORY_NAME org.kde.pim.importwizard.trojitaplugin
DESCRIPTION "importwizard (trojita plugin)"
EXPORT IMPORTWIZARD
)
endif()
kcoreaddons_add_plugin(trojitaimporterplugin JSON trojitaimporter.json SOURCES
${trojitaimporter_SRCS} INSTALL_NAMESPACE importwizard)
set_target_properties(trojitaimporterplugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/importwizard/")
......
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