Commit a4bcb526 authored by Laurent Montel's avatar Laurent Montel 😁

Autogenerate debug categories

parent e7ed3717
......@@ -34,6 +34,8 @@ include(KDEInstallDirs)
include(ECMInstallIcons)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMQtDeclareLoggingCategory)
find_package(KF5KMahjongglib REQUIRED)
find_package(KF5KDEGames 4.9.0 REQUIRED)
......@@ -52,6 +54,8 @@ add_subdirectory(doc)
install(PROGRAMS org.kde.kmahjongg.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.kmahjongg.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
install(FILES kmahjongg.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
########### Display Summary ###############
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)
......
log_kmahjongg kmahjongg IDENTIFIER [KMAHJONGG_LOG]
......@@ -18,6 +18,8 @@ set(kmahjongg_SRCS
ki18n_wrap_ui(kmahjongg_SRCS settings.ui gametype.ui)
ecm_qt_declare_logging_category(kmahjongg_SRCS HEADER kmahjongg_debug.h IDENTIFIER KMAHJONGG_LOG CATEGORY_NAME log_kmahjongg)
kconfig_add_kcfg_files(kmahjongg_SRCS prefs.kcfgc)
add_executable(kmahjongg ${kmahjongg_SRCS})
......
/* This file is part of the KDE project
Copyright (C) 2015 Frederik Schwarzer <schwarzer@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
// own
#include "kmahjongg_debug.h"
Q_LOGGING_CATEGORY(KMAHJONGG_LOG, "log_kmahjongg")
/* This file is part of the KDE project
Copyright (C) 2015 Frederik Schwarzer <schwarzer@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KMAHJONGG_DEBUG_H
#define KMAHJONGG_DEBUG_H
// Qt
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(KMAHJONGG_LOG)
#endif
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