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

Autogenerate debug file + add categories file

parent bc3754b3
......@@ -17,6 +17,7 @@ include(FeatureSummary)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
include(ECMQtDeclareLoggingCategory)
include_directories(${PWQUALITY_INCLUDE_DIR})
......@@ -26,4 +27,6 @@ add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_subdirectory(src)
install( FILES user-manager.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
......@@ -8,7 +8,6 @@ set(user_manager_SRCS
passworddialog.cpp
passwordedit.cpp
avatargallery.cpp
user_manager_debug.cpp
)
set_source_files_properties(lib/org.freedesktop.Accounts.xml
......@@ -36,6 +35,8 @@ qt5_add_dbus_interface(user_manager_SRCS
ki18n_wrap_ui(user_manager_SRCS kcm.ui account.ui password.ui avatargallery.ui)
ecm_qt_declare_logging_category(user_manager_SRCS HEADER user_manager_debug.h IDENTIFIER USER_MANAGER_LOG CATEGORY_NAME log_user_manager)
add_library(user_manager MODULE ${user_manager_SRCS})
target_link_libraries(user_manager
......
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@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.
*/
#include "user_manager_debug.h"
Q_LOGGING_CATEGORY(USER_MANAGER_LOG, "log_user_manager")
/* This file is part of the KDE project
Copyright (C) 2014 Laurent Montel <montel@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 USER_MANAGER_DEBUG_H
#define USER_MANAGER_DEBUG_H
#include <QLoggingCategory>
Q_DECLARE_LOGGING_CATEGORY(USER_MANAGER_LOG)
#endif
log_user_manager user-manager IDENTIFIER [USER_MANAGER_LOG]
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