Commit d1f692fe authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

Compose RELEASE_SERVICE_VERSION into version number

Summary:
version was increased to 3.3 "recently" and not so many changes have been done since them
so asserting the verison number is stuck in the past is a bit too much, but still having it move with
each new release is important for reproducibility of issues, etc. so compromise and append the version at the end

Reviewers: #kde_games

Subscribers: kde-games-devel

Differential Revision: https://phabricator.kde.org/D27752
parent 26924207
project(knetwalk)
cmake_minimum_required (VERSION 3.5 FATAL_ERROR)
set (RELEASE_SERVICE_VERSION_MAJOR "20")
set (RELEASE_SERVICE_VERSION_MINOR "03")
set (RELEASE_SERVICE_VERSION_MICRO "70")
set (RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_VERSION_MINOR}.${RELEASE_SERVICE_VERSION_MICRO}")
set (RELEASE_SERVICE_COMPACT_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}${RELEASE_SERVICE_VERSION_MINOR}${RELEASE_SERVICE_VERSION_MICRO}")
project(knetwalk VERSION "3.3.${RELEASE_SERVICE_COMPACT_VERSION}")
set (QT_MIN_VERSION "5.7.0")
set (KF5_MIN_VERSION "5.30.0")
......@@ -35,6 +43,7 @@ include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(ECMSetupVersion)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
include(ECMAddTests)
......
......@@ -11,6 +11,8 @@ set(knetwalk_SRCS
abstractgrid.cpp
)
ecm_setup_version(${PROJECT_VERSION} VARIABLE_PREFIX KNETWALK VERSION_HEADER knetwalk_version.h)
qt5_add_resources(knetwalk_SRCS knetwalk.qrc)
ki18n_wrap_ui( knetwalk_SRCS general.ui customgame.ui)
......
......@@ -23,6 +23,7 @@
#include <Kdelibs4ConfigMigrator>
#include "mainwindow.h"
#include "knetwalk_version.h"
#include <KDBusService>
#include <QCommandLineParser>
......@@ -35,8 +36,6 @@ I18N_NOOP("(C) 2004-2005 Andi Peredri, ported to KDE by Thomas Nagy\n"
"(C) 2007-2008 Fela Winkelmolen\n"
"(C) 2013 Ashwin Rajeev");
static const char version[] = "3.3.0";
int main(int argc, char ** argv)
{
QApplication app(argc, argv);
......@@ -49,7 +48,7 @@ int main(int argc, char ** argv)
migrate.migrate();
KAboutData about(QStringLiteral("knetwalk"), i18n("KNetWalk"),
QLatin1String(version), i18n(description),
QStringLiteral(KNETWALK_VERSION_STRING), i18n(description),
KAboutLicense::GPL, i18n(copyleft), QString(),
QStringLiteral("https://kde.org/applications/games/org.kde.knetwalk"));
......
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