Commit c6c2f63e authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use ecm_qt_declare_logging_category, install libkcddb.categories

GIT_SILENT
parent e87b68f7
......@@ -16,6 +16,7 @@ include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(GenerateExportHeader)
include(ECMSetupVersion)
include(ECMQtDeclareLoggingCategory)
include(CMakePackageConfigHelpers)
include(ECMGenerateHeaders)
......
......@@ -20,6 +20,14 @@ endif()
kconfig_add_kcfg_files(kcfg_sources configbase.kcfgc)
ecm_qt_declare_logging_category(log_sources
HEADER logging.h
IDENTIFIER LIBKCDDB
CATEGORY_NAME "libkcddb"
DESCRIPTION "libkcddb"
EXPORT KCDDB
)
add_library(KF5Cddb SHARED
cache.cpp
cdinfo.cpp
......@@ -44,8 +52,8 @@ add_library(KF5Cddb SHARED
synchttpsubmit.cpp
categories.cpp
genres.cpp
logging.cpp
${musicbrainz_sources}
${log_sources}
${kcfg_sources})
target_link_libraries(KF5Cddb
......@@ -95,3 +103,9 @@ ecm_generate_pri_file(BASE_NAME KCddb LIB_NAME KF5Cddb DEPS "Qt5Widgets" FILENAM
install(FILES ${PRI_FILENAME} DESTINATION ${ECM_MKSPECS_INSTALL_DIR})
install(FILES libkcddb5.kcfg DESTINATION ${KCFG_INSTALL_DIR})
ecm_qt_install_logging_categories(
EXPORT KCDDB
FILE libkcddb.categories
DESTINATION "${KDE_INSTALL_LOGGINGCATEGORIESDIR}"
)
/*
SPDX-FileCopyrightText: 2003-2004 Richard Lärkäng <nouseforaname@home.se>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "logging.h"
Q_LOGGING_CATEGORY(LIBKCDDB, "libkcddb")
/*
SPDX-FileCopyrightText: 2003 Richard Lärkäng <nouseforaname@home.se>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef LOGGING_H
#define LOGGING_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(LIBKCDDB)
#endif // LOGGING_H
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