Commit 45e9a965 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Autogenerate categories file

parent a0502bdf
...@@ -64,6 +64,15 @@ add_subdirectory(src) ...@@ -64,6 +64,15 @@ add_subdirectory(src)
add_subdirectory(kcm) add_subdirectory(kcm)
add_subdirectory(serializers) add_subdirectory(serializers)
install( FILES akonadi-contacts.renamecategories akonadi-contacts.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} ) if (ECM_VERSION VERSION_LESS "5.68.0")
install( FILES akonadi-contacts.renamecategories akonadi-contacts.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR} )
else ()
ecm_qt_install_logging_categories(
EXPORT AKONADICONTACTS
FILE akonadi-contacts.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -8,7 +8,15 @@ set(akonadi_serializer_addressee_SRCS ...@@ -8,7 +8,15 @@ set(akonadi_serializer_addressee_SRCS
akonadi_serializer_addressee.cpp akonadi_serializer_addressee.cpp
) )
ecm_qt_declare_logging_category(akonadi_serializer_addressee_SRCS HEADER serializer_debug.h IDENTIFIER AKONADI_SERIALIZER_CONTACT_LOG CATEGORY_NAME org.kde.pim.contact_serializer)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadi_serializer_addressee_SRCS HEADER serializer_debug.h IDENTIFIER AKONADI_SERIALIZER_CONTACT_LOG CATEGORY_NAME org.kde.pim.contact_serializer)
else()
ecm_qt_declare_logging_category(akonadi_serializer_addressee_SRCS HEADER serializer_debug.h IDENTIFIER AKONADI_SERIALIZER_CONTACT_LOG CATEGORY_NAME org.kde.pim.contact_serializer
DESCRIPTION "serializer contact (plugin)"
EXPORT AKONADICONTACTS
)
endif()
add_library(akonadi_serializer_addressee MODULE ${akonadi_serializer_addressee_SRCS}) add_library(akonadi_serializer_addressee MODULE ${akonadi_serializer_addressee_SRCS})
target_link_libraries(akonadi_serializer_addressee target_link_libraries(akonadi_serializer_addressee
......
...@@ -103,7 +103,17 @@ set(akonadicontact_LIB_SRC ...@@ -103,7 +103,17 @@ set(akonadicontact_LIB_SRC
${akonadicontact_actions_SRCS} ${akonadicontact_actions_SRCS}
) )
ecm_qt_declare_logging_category(akonadicontact_LIB_SRC HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadicontact)
if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(akonadicontact_LIB_SRC HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadicontact)
else()
ecm_qt_declare_logging_category(akonadicontact_LIB_SRC HEADER akonadi_contact_debug.h IDENTIFIER AKONADICONTACT_LOG CATEGORY_NAME org.kde.pim.akonadicontact
DESCRIPTION "akonadicontact (pim lib)"
OLD_CATEGORY_NAMES log_akonadi_contact
EXPORT AKONADICONTACTS
)
endif()
set(akonadicontact_LIB_SRC set(akonadicontact_LIB_SRC
${akonadicontact_LIB_SRC} ${akonadicontact_LIB_SRC}
......
...@@ -132,7 +132,16 @@ set(contacteditor_LIB_SRC ...@@ -132,7 +132,16 @@ set(contacteditor_LIB_SRC
${contacteditor_job_SRCS} ${contacteditor_job_SRCS}
) )
ecm_qt_declare_logging_category(contacteditor_LIB_SRC HEADER contacteditor_debug.h IDENTIFIER CONTACTEDITOR_LOG CATEGORY_NAME org.kde.pim.contacteditor) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(contacteditor_LIB_SRC HEADER contacteditor_debug.h IDENTIFIER CONTACTEDITOR_LOG CATEGORY_NAME org.kde.pim.contacteditor)
else()
ecm_qt_declare_logging_category(contacteditor_LIB_SRC HEADER contacteditor_debug.h IDENTIFIER CONTACTEDITOR_LOG CATEGORY_NAME org.kde.pim.contacteditor
DESCRIPTION "akonadicontact (contact editor)"
EXPORT AKONADICONTACTS
)
endif()
set(contacteditor_LIB_SRC set(contacteditor_LIB_SRC
${contacteditor_LIB_SRC} ${contacteditor_LIB_SRC}
......
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