4 * Copyright 2003, 2004 Develer S.r.l. (http://www.develer.com/)
5 * Copyright 2001, 2002, 2003 by Bernardo Innocenti <bernie@codewiz.org>
6 * This file is part of DevLib - See devlib/README for information.
11 * \author Bernardo Innocenti <bernie@develer.com>
13 * \brief Define version strings
15 #ifndef DEVLIB_VERSTAG_H
16 #define DEVLIB_VERSTAG_H
19 #include "arch_config.h"
22 #define APP_NAME "Appname"
23 #define APP_DESCRIPTION "Long application name description"
24 #define APP_AUTHOR "Develer"
25 #define APP_COPYRIGHT "Copyright (C) 2004 by Develer (http://www.develer.com/)"
31 #define VERS_LETTER ""
32 #elif (ARCH & ARCH_BAR)
36 #define VERS_LETTER ""
38 #error unknown architecture
42 * If _SNAPSHOT is defined, VERSION_TAG build the version using the compilation
43 * date instead of building the numeric version string.
53 #define _STRINGIZE(a) #a
54 /*! Build application version string (i.e.: "1.7.0") */
55 #define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
57 #define VERSION_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
59 #define VERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
62 /*! Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
63 #define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
64 #define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
66 #endif /* DEVLIB_VERSTAG_H */