Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Games
KShisen
Commits
2bd37821
Commit
2bd37821
authored
Oct 19, 2018
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Autogenerate debug file + create categories file
parent
421c7e9f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
38 deletions
+6
-38
CMakeLists.txt
CMakeLists.txt
+3
-0
kshisen.categories
kshisen.categories
+1
-0
src/CMakeLists.txt
src/CMakeLists.txt
+2
-0
src/debug.h
src/debug.h
+0
-33
src/main.cpp
src/main.cpp
+0
-5
No files found.
CMakeLists.txt
View file @
2bd37821
...
...
@@ -39,6 +39,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
)
...
...
@@ -61,5 +63,6 @@ add_subdirectory(doc)
install
(
PROGRAMS org.kde.kshisen.desktop DESTINATION
${
KDE_INSTALL_APPDIR
}
)
install
(
FILES org.kde.kshisen.appdata.xml DESTINATION
${
KDE_INSTALL_METAINFODIR
}
)
install
(
FILES kshisen.categories DESTINATION
${
KDE_INSTALL_CONFDIR
}
)
########### Display Summary ###############
feature_summary
(
WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES
)
kshisen.categories
0 → 100644
View file @
2bd37821
kshisen kdegames (kshisen) IDENTIFIER [KSHISEN_General]
src/CMakeLists.txt
View file @
2bd37821
...
...
@@ -6,6 +6,8 @@ set(kshisen_SRCS
possiblemove.cpp
)
ecm_qt_declare_logging_category
(
kshisen_SRCS HEADER debug.h IDENTIFIER KSHISEN_General CATEGORY_NAME kshisen
)
ki18n_wrap_ui
(
kshisen_SRCS settings.ui
)
kconfig_add_kcfg_files
(
kshisen_SRCS prefs.kcfgc
)
...
...
src/debug.h
deleted
100644 → 0
View file @
421c7e9f
/***************************************************************************
* KShisen - A japanese game similar to mahjongg *
* Copyright 2016 Frederik Schwarzer <schwarzer@kde.org> *
* *
* 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, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifndef KSHISEN_DEBUG_H
#define KSHISEN_DEBUG_H
// Qt
#include <QLoggingCategory>
namespace
KShisen
{
Q_DECLARE_LOGGING_CATEGORY
(
KSHISEN_General
)
// Use for debugging game mode.
//#define DEBUGGING
}
#endif // KSHISEN_DEBUG_H
src/main.cpp
View file @
2bd37821
...
...
@@ -36,11 +36,6 @@
#include "app.h"
#include "debug.h"
namespace
KShisen
{
Q_LOGGING_CATEGORY
(
KSHISEN_General
,
"kshisen"
)
}
// namespace KShisen
static
constexpr
char
description
[]
=
I18N_NOOP
(
"A KDE game similar to Mahjongg"
);
int
main
(
int
argc
,
char
**
argv
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment