From 24a07f17c82147245f590de5c230c330ef52ce43 Mon Sep 17 00:00:00 2001 From: charras Date: Tue, 5 Jan 2010 11:44:28 +0000 Subject: [PATCH] commit missing file --- common/build_version.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 common/build_version.cpp diff --git a/common/build_version.cpp b/common/build_version.cpp new file mode 100644 index 0000000000..b76cb0d1dd --- /dev/null +++ b/common/build_version.cpp @@ -0,0 +1,23 @@ +/* Date for kicad build version */ +#include "fctsys.h" + +#ifdef HAVE_SVN_VERSION +#include "version.h" // define the KICAD_BUILD_VERSION +#endif + +#ifndef KICAD_BUILD_VERSION +#define KICAD_BUILD_VERSION "(2010-01-05)" +#endif + +#define VERSION_STABILITY "unstable" + +/** Function GetBuildVersion() + * Return the build date and version + */ +wxString GetBuildVersion() +{ + static wxString msg; + msg.Printf( wxT("%s-%s"), + wxT( KICAD_BUILD_VERSION ), wxT(VERSION_STABILITY)); + return msg; +}