Commit e80867e1 authored by Jasem Mutlaq's avatar Jasem Mutlaq

Add build timestamp

parent af8981e2
......@@ -11,6 +11,8 @@ endif(BUILD_KSTARS_LITE)
# minimal requirements
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
string(TIMESTAMP KSTARS_BUILD_TS UTC)
if(BUILD_KSTARS_LITE)
set (QT_MIN_VERSION "5.7.0") #QtQuickControls 2 is available only in the Qt 5.7.0
else()
......
......@@ -94,6 +94,7 @@ KStars::KStars( bool doSplash, bool clockrun, const QString &startdate )
KSUtils::Logging::UseDefault();
qDebug() << "Welcome to KStars" << KSTARS_VERSION;
qDebug() << "Build: " << KSTARS_BUILD_TS;
new KstarsAdaptor(this); // NOTE the weird case convention, which cannot be changed as the file is generated by the moc.
......
......@@ -55,7 +55,6 @@ static const char description[] =
static const char notice[] =
I18N_NOOP("Some images in KStars are for non-commercial use only. See README.images.");
int main(int argc, char * argv[])
{
#ifdef KSTARS_LITE
......@@ -82,7 +81,7 @@ int main(int argc, char * argv[])
KCrash::initialize();
KAboutData aboutData( "kstars", i18n("KStars"), KSTARS_VERSION, i18n(description), KAboutLicense::GPL,
"2001-" + QString::number(QDate::currentDate().year()) + i18n("(c), The KStars Team"), i18n(notice), "http://edu.kde.org/kstars");
"2001-" + QString::number(QDate::currentDate().year()) + i18n("(c), The KStars Team"), i18nc("Build number followed by copyright notice", "Build: %1\n\n%2", KSTARS_BUILD_TS, notice), "http://edu.kde.org/kstars");
aboutData.addAuthor(i18n("Jason Harris"), i18n("Original Author"), "jharris@30doradus.org", "http://www.30doradus.org");
aboutData.addAuthor(i18n("Jasem Mutlaq"), i18n("Current Maintainer"), "mutlaqja@ikarustech.com", "http://www.indilib.org");
......
#define KSTARS_VERSION "@KStars_VERSION_MAJOR@.@KStars_VERSION_MINOR@.@KStars_VERSION_REVISION@"
/* KStars Build TS */
#cmakedefine KSTARS_BUILD_TS "@KSTARS_BUILD_TS@"
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