dc815b8fd8c55c2faf7dfbe9e3e7ccd707cdfd14
[bertos.git] / app / triface / verstag.h
1 /**
2  * \file
3  * <!--
4  * Copyright 2003, 2004, 2005, 2006 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 README.devlib for information.
7  * -->
8  *
9  * \version $Id$
10  *
11  * \author Bernardo Innocenti <bernie@develer.com>
12  *
13  * \brief Declare application version strings
14  */
15 #ifndef DEVLIB_VERSTAG_H
16 #define DEVLIB_VERSTAG_H
17
18 #ifndef ARCH_CONFIG_H
19         #include "cfg/arch_config.h"
20 #endif
21
22 #define APP_NAME "Triface"
23 #define APP_DESCRIPTION "Trinity Interface Board"
24 #define APP_AUTHOR "Develer"
25 #define APP_COPYRIGHT "Copyright 2006 Develer (http://www.develer.com/)"
26
27 #define VERS_MAJOR 0
28 #define VERS_MINOR 1
29 #define VERS_REV   0
30 #define VERS_LETTER ""
31
32 /**
33  * If _SNAPSHOT is defined, \c VERS_TAG contains the build date
34  * date instead of a numeric version string.
35  */
36 //#define _SNAPSHOT
37
38 #ifdef _DEBUG
39         #define VERS_DBG "D"
40 #else
41         #define VERS_DBG ""
42 #endif
43
44 #define __STRINGIZE(x) #x
45 #define _STRINGIZE(x) __STRINGIZE(x)
46
47 /** Build application version string (i.e.: "1.7.0") */
48 #define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
49 #ifdef _SNAPSHOT
50         #define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
51 #else
52         #define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
53 #endif
54
55 /** Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */
56 #define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
57 #define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
58
59 /** The revision string (contains VERS_TAG) */
60 extern const char vers_tag[];
61
62 /** Sequential build number (contains VERS_BUILD) */
63 extern const int vers_build_nr;
64 //extern const char vers_build_str[];
65
66 /** Hostname of the machine used to build this binary (contains VERS_HOST) */
67 extern const char vers_host[];
68
69 #endif /* DEVLIB_VERSTAG_H */