--- /dev/null
+/*!
+ * \file
+ * <!--
+ * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
+ * This file is part of DevLib - See devlib/README for information.
+ * -->
+ *
+ * \version $Id$
+ *
+ * \author Bernardo Innocenti <bernie@develer.com>
+ *
+ * \brief Define application version strings
+ */
+#include "verstag.h"
+
+/*
+ * "buildrev.h" is auto-generated by the build infrastructure,
+ * incrementing VERS_BUILD each time the project is rebuilt.
+ */
+#include "buildrev.h"
+
+const char vers_tag[] = VERS_TAG;
+const int vers_build_nr = VERS_BUILD;
+const char vers_build_str[] = _STRINGIZE(VERS_BUILD);
+const char vers_host[] = VERS_HOST;
+
*
* \author Bernardo Innocenti <bernie@develer.com>
*
- * \brief Define version strings
+ * \brief Declare application version strings
*/
#ifndef DEVLIB_VERSTAG_H
#define DEVLIB_VERSTAG_H
#define VERS_DBG ""
#endif
-#define _STRINGIZE(a) #a
+#define __STRINGIZE(x) #x
+#define _STRINGIZE(x) __STRINGIZE(x)
+
/*! Build application version string (i.e.: "1.7.0") */
#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
#ifdef _SNAPSHOT
#define VERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
#endif
+
/*! Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
+/*! The revision string (contains VERS_TAG) */
+extern const char vers_tag[];
+
+/*! Sequential build number (contains VERS_BUILD) */
+extern const int vers_build_nr;
+//extern const char vers_build_str[];
+
+/*! Hostname of the machine used to build this binary (contains VERS_HOST) */
+extern const char vers_host[];
+
#endif /* DEVLIB_VERSTAG_H */