mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +00:00
Autogenerate debug file + install debug categories file
This commit is contained in:
parent
7cd22e7a88
commit
7c9db51c1d
|
@ -22,6 +22,7 @@ include(FeatureSummary)
|
||||||
include(KDEInstallDirs)
|
include(KDEInstallDirs)
|
||||||
include(KDECMakeSettings)
|
include(KDECMakeSettings)
|
||||||
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
|
include(KDEFrameworkCompilerSettings NO_POLICY_SCOPE)
|
||||||
|
include(ECMQtDeclareLoggingCategory)
|
||||||
|
|
||||||
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX DOLPHIN
|
ecm_setup_version(${KDE_APPLICATIONS_VERSION} VARIABLE_PREFIX DOLPHIN
|
||||||
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/dolphin_version.h"
|
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/src/dolphin_version.h"
|
||||||
|
@ -132,5 +133,7 @@ configure_file(org.kde.dolphin.FileManager1.service.in
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.dolphin.FileManager1.service
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.dolphin.FileManager1.service
|
||||||
DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
|
DESTINATION ${DBUS_SERVICES_INSTALL_DIR})
|
||||||
|
|
||||||
|
install( FILES dolphin.categories DESTINATION ${KDE_INSTALL_CONFDIR} )
|
||||||
|
|
||||||
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)
|
||||||
|
|
||||||
|
|
1
dolphin.categories
Normal file
1
dolphin.categories
Normal file
|
@ -0,0 +1 @@
|
||||||
|
org.kde.dolphin dolphin IDENTIFIER [DolphinDebug]
|
|
@ -106,9 +106,10 @@ set(dolphinprivate_LIB_SRCS
|
||||||
dolphinremoveaction.cpp
|
dolphinremoveaction.cpp
|
||||||
middleclickactioneventfilter.cpp
|
middleclickactioneventfilter.cpp
|
||||||
dolphinnewfilemenu.cpp
|
dolphinnewfilemenu.cpp
|
||||||
dolphindebug.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ecm_qt_declare_logging_category(dolphinprivate_LIB_SRCS HEADER dolphindebug.h IDENTIFIER DolphinDebug CATEGORY_NAME org.kde.dolphin)
|
||||||
|
|
||||||
if(HAVE_BALOO)
|
if(HAVE_BALOO)
|
||||||
set(dolphinprivate_LIB_SRCS
|
set(dolphinprivate_LIB_SRCS
|
||||||
${dolphinprivate_LIB_SRCS}
|
${dolphinprivate_LIB_SRCS}
|
||||||
|
|
|
@ -1,22 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* Copyright (C) 2015 by Emmanuel Pescosta <emmanuelpescosta099@gmail.com> *
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
|
||||||
* it under the terms of the GNU General Public License as published by *
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or *
|
|
||||||
* (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program 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 General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program; if not, write to the *
|
|
||||||
* Free Software Foundation, Inc., *
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
#include "dolphindebug.h"
|
|
||||||
|
|
||||||
Q_LOGGING_CATEGORY(DolphinDebug, "org.kde.dolphin")
|
|
|
@ -1,27 +0,0 @@
|
||||||
/***************************************************************************
|
|
||||||
* Copyright (C) 2015 by Emmanuel Pescosta <emmanuelpescosta099@gmail.com> *
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or modify *
|
|
||||||
* it under the terms of the GNU General Public License as published by *
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or *
|
|
||||||
* (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program 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 General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License *
|
|
||||||
* along with this program; if not, write to the *
|
|
||||||
* Free Software Foundation, Inc., *
|
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
|
|
||||||
***************************************************************************/
|
|
||||||
|
|
||||||
#ifndef DOLPHIN_DEBUG_H
|
|
||||||
#define DOLPHIN_DEBUG_H
|
|
||||||
|
|
||||||
#include <QLoggingCategory>
|
|
||||||
|
|
||||||
Q_DECLARE_LOGGING_CATEGORY(DolphinDebug)
|
|
||||||
|
|
||||||
#endif // DOLPHIN_DEBUG_H
|
|
Loading…
Reference in New Issue
Block a user