bf43c463df33e95642d64f51af2ca3a246fd0179
[bertos.git] / examples / at91sam7x / verstag.h
1 /**\r
2  * \file\r
3  * <!--\r
4  * This file is part of BeRTOS.\r
5  *\r
6  * Bertos is free software; you can redistribute it and/or modify\r
7  * it under the terms of the GNU General Public License as published by\r
8  * the Free Software Foundation; either version 2 of the License, or\r
9  * (at your option) any later version.\r
10  *\r
11  * This program is distributed in the hope that it will be useful,\r
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
14  * GNU General Public License for more details.\r
15  *\r
16  * You should have received a copy of the GNU General Public License\r
17  * along with this program; if not, write to the Free Software\r
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA\r
19  *\r
20  * As a special exception, you may use this file as part of a free software\r
21  * library without restriction.  Specifically, if other files instantiate\r
22  * templates or use macros or inline functions from this file, or you compile\r
23  * this file and link it with other files to produce an executable, this\r
24  * file does not by itself cause the resulting executable to be covered by\r
25  * the GNU General Public License.  This exception does not however\r
26  * invalidate any other reasons why the executable file might be covered by\r
27  * the GNU General Public License.\r
28  *\r
29  * Copyright 2003, 2004, 2005, 2006 Develer S.r.l. (http://www.develer.com/)\r
30  * Copyright 2001, 2002, 2003 by Bernie Innocenti <bernie@codewiz.org>\r
31  *\r
32  * -->\r
33  *\r
34  * \version $Id: verstag.h 1532 2008-08-04 07:21:26Z bernie $\r
35  *\r
36  * \author Bernie Innocenti <bernie@codewiz.org>\r
37  *\r
38  * \brief Declare application version strings\r
39  */\r
40 #ifndef DEVLIB_VERSTAG_H\r
41 #define DEVLIB_VERSTAG_H\r
42 \r
43 #ifndef ARCH_CONFIG_H\r
44         #include "cfg/arch_config.h"\r
45 #endif\r
46 \r
47 #define APP_NAME "AT91SAM7X-EK porting test"\r
48 #define APP_DESCRIPTION "AT91SAM7X-EK porting test"\r
49 #define APP_AUTHOR "Develer"\r
50 #define APP_COPYRIGHT "Copyright 2009 Develer (http://www.develer.com/)"\r
51 \r
52 #define VERS_MAJOR 0\r
53 #define VERS_MINOR 1\r
54 #define VERS_REV   0\r
55 #define VERS_LETTER ""\r
56 \r
57 /**\r
58  * If _SNAPSHOT is defined, \c VERS_TAG contains the build date\r
59  * date instead of a numeric version string.\r
60  */\r
61 //#define _SNAPSHOT\r
62 \r
63 #ifdef _DEBUG\r
64         #define VERS_DBG "D"\r
65 #else\r
66         #define VERS_DBG ""\r
67 #endif\r
68 \r
69 #define __STRINGIZE(x) #x\r
70 #define _STRINGIZE(x) __STRINGIZE(x)\r
71 \r
72 /** Build application version string (i.e.: "1.7.0") */\r
73 #define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG\r
74 #ifdef _SNAPSHOT\r
75         #define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG\r
76 #else\r
77         #define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)\r
78 #endif\r
79 \r
80 /** Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */\r
81 #define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)\r
82 #define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)\r
83 \r
84 /** The revision string (contains VERS_TAG) */\r
85 extern const char vers_tag[];\r
86 \r
87 /** Sequential build number (contains VERS_BUILD) */\r
88 extern const int vers_build_nr;\r
89 //extern const char vers_build_str[];\r
90 \r
91 /** Hostname of the machine used to build this binary (contains VERS_HOST) */\r
92 extern const char vers_host[];\r
93 \r
94 #endif /* DEVLIB_VERSTAG_H */\r