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

Autogenerate categories file

parent 87e4f7cc
...@@ -88,7 +88,15 @@ add_subdirectory(contactthemeeditor) ...@@ -88,7 +88,15 @@ add_subdirectory(contactthemeeditor)
add_subdirectory(grantleethemeeditor) add_subdirectory(grantleethemeeditor)
add_subdirectory(contactprintthemeeditor) add_subdirectory(contactprintthemeeditor)
install(FILES grantleeditor.renamecategories grantleeditor.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}) if (ECM_VERSION VERSION_LESS "5.68.0")
install(FILES grantleeditor.renamecategories grantleeditor.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
else ()
ecm_qt_install_logging_categories(
EXPORT GRANTLEEEDITOR
FILE grantleeditor.categories
DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR}
)
endif()
add_subdirectory(doc) add_subdirectory(doc)
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES) feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
...@@ -12,7 +12,15 @@ set(contactprintthemeeditor_SRCS ...@@ -12,7 +12,15 @@ set(contactprintthemeeditor_SRCS
contactprintthemepreview.cpp contactprintthemepreview.cpp
) )
ecm_qt_declare_logging_category(contactprintthemeeditor_SRCS HEADER contactprintthemeeditor_debug.h IDENTIFIER CONTACTPRINTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactprintthemeeditor) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(contactprintthemeeditor_SRCS HEADER contactprintthemeeditor_debug.h IDENTIFIER CONTACTPRINTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactprintthemeeditor)
else()
ecm_qt_declare_logging_category(contactprintthemeeditor_SRCS HEADER contactprintthemeeditor_debug.h IDENTIFIER CONTACTPRINTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactprintthemeeditor
DESCRIPTION "grantleeeditor (contactprintthemeeditor)"
OLD_CATEGORY_NAMES log_contactprintthemeeditor
EXPORT GRANTLEEEDITOR
)
endif()
qt5_add_resources(contactprintthemeeditor_SRCS contactprintthemeeditor.qrc) qt5_add_resources(contactprintthemeeditor_SRCS contactprintthemeeditor.qrc)
add_executable(contactprintthemeeditor ${contactprintthemeeditor_SRCS} ) add_executable(contactprintthemeeditor ${contactprintthemeeditor_SRCS} )
......
...@@ -12,7 +12,16 @@ set(contactthemeeditor_SRCS ...@@ -12,7 +12,16 @@ set(contactthemeeditor_SRCS
contacteditorutil.cpp contacteditorutil.cpp
contactpreviewwidget.cpp contactpreviewwidget.cpp
) )
ecm_qt_declare_logging_category(contactthemeeditor_SRCS HEADER contactthemeeditor_debug.h IDENTIFIER CONTACTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactthemeeditor) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(contactthemeeditor_SRCS HEADER contactthemeeditor_debug.h IDENTIFIER CONTACTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactthemeeditor)
else()
ecm_qt_declare_logging_category(contactthemeeditor_SRCS HEADER contactthemeeditor_debug.h IDENTIFIER CONTACTTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.contactthemeeditor
DESCRIPTION "grantleeeditor (contactthemeeditor)"
OLD_CATEGORY_NAMES log_contactthemeeditor
EXPORT GRANTLEEEDITOR
)
endif()
qt5_add_resources(contactthemeeditor_SRCS contactthemeeditor.qrc) qt5_add_resources(contactthemeeditor_SRCS contactthemeeditor.qrc)
add_executable(contactthemeeditor ${contactthemeeditor_SRCS} ) add_executable(contactthemeeditor ${contactthemeeditor_SRCS} )
......
...@@ -22,7 +22,16 @@ ki18n_wrap_ui(libgrantleethemeeditor_SRCS ...@@ -22,7 +22,16 @@ ki18n_wrap_ui(libgrantleethemeeditor_SRCS
ui/configurewidget.ui ui/configurewidget.ui
) )
ecm_qt_declare_logging_category(libgrantleethemeeditor_SRCS HEADER grantleethemeeditor_debug.h IDENTIFIER GRANTLEETHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.grantleethemeeditor) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(libgrantleethemeeditor_SRCS HEADER grantleethemeeditor_debug.h IDENTIFIER GRANTLEETHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.grantleethemeeditor)
else()
ecm_qt_declare_logging_category(libgrantleethemeeditor_SRCS HEADER grantleethemeeditor_debug.h IDENTIFIER GRANTLEETHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.grantleethemeeditor
DESCRIPTION "grantleeeditor (grantleethemeeditor)"
OLD_CATEGORY_NAMES log_grantleethemeeditor
EXPORT GRANTLEEEDITOR
)
endif()
add_library(grantleethemeeditor ${libgrantleethemeeditor_SRCS}) add_library(grantleethemeeditor ${libgrantleethemeeditor_SRCS})
generate_export_header(grantleethemeeditor BASE_NAME grantleethemeeditor) generate_export_header(grantleethemeeditor BASE_NAME grantleethemeeditor)
......
...@@ -12,7 +12,16 @@ set(headerthemeeditor_SRCS ...@@ -12,7 +12,16 @@ set(headerthemeeditor_SRCS
themeeditorwidget.cpp themeeditorwidget.cpp
) )
ecm_qt_declare_logging_category(headerthemeeditor_SRCS HEADER headerthemeeditor_debug.h IDENTIFIER HEADERTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.headerthemeeditor) if (ECM_VERSION VERSION_LESS "5.68.0")
ecm_qt_declare_logging_category(headerthemeeditor_SRCS HEADER headerthemeeditor_debug.h IDENTIFIER HEADERTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.headerthemeeditor)
else()
ecm_qt_declare_logging_category(headerthemeeditor_SRCS HEADER headerthemeeditor_debug.h IDENTIFIER HEADERTHEMEEDITOR_LOG CATEGORY_NAME org.kde.pim.headerthemeeditor
DESCRIPTION "grantleeeditor (headerthemeeditor)"
OLD_CATEGORY_NAMES log_headerthemeeditor
EXPORT GRANTLEEEDITOR
)
endif()
qt5_add_resources(headerthemeeditor_SRCS headerthemeeditor.qrc) qt5_add_resources(headerthemeeditor_SRCS headerthemeeditor.qrc)
add_executable(headerthemeeditor ${headerthemeeditor_SRCS} ) add_executable(headerthemeeditor ${headerthemeeditor_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