add and use a version.c / version.h pair

version.c is now object code which is recompiled each time
ssrf-version.h changes, while the interface file version.h
remains that same at all times and files which include it
will not need to be recompiled.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2015-02-15 20:25:18 +02:00 committed by Dirk Hohndel
parent f6dbed1fc6
commit c45768a09f
9 changed files with 51 additions and 17 deletions

View file

@ -1,5 +1,5 @@
#include "about.h"
#include "ssrf-version.h"
#include "version.h"
#include <QDesktopServices>
#include <QUrl>
#include <QShortcut>
@ -9,7 +9,7 @@ SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(p
ui.setupUi(this);
setWindowModality(Qt::ApplicationModal);
QString versionString(GIT_VERSION_STRING);
QString versionString(subsurface_git_version());
QStringList readableVersions = QStringList() << "4.3.950" << "4.4 Beta 1" <<
"4.3.960" << "4.4 Beta 2" <<
"4.3.970" << "4.4 Beta 3";