js8call/revision_utils.cpp
2018-07-13 22:22:16 -04:00

39 lines
766 B
C++

#include "revision_utils.hpp"
#include <cstring>
#include <QCoreApplication>
#include <QRegularExpression>
QString revision (QString const& svn_rev_string)
{
return "";
}
QString version (bool include_patch)
{
#if defined (CMAKE_BUILD)
QString v {WSJTX_STRINGIZE (WSJTX_VERSION_MAJOR) "." WSJTX_STRINGIZE (WSJTX_VERSION_MINOR)};
if (include_patch)
{
v += "." WSJTX_STRINGIZE (WSJTX_VERSION_PATCH)
#if 0
# if defined (WSJTX_RC)
+ "-rc" WSJTX_STRINGIZE (WSJTX_RC)
# endif
#endif
;
}
#else
QString v {"Not for Release"};
#endif
return v;
}
QString program_title (QString const& revision)
{
QString id {"FT8Call de KN4CRD (v%1) a derivative of WSJT-X by K1JT"};
return id.arg(QCoreApplication::applicationVersion ());
}