bertos/verstag.h

Go to the documentation of this file.
00001 
00040 #ifndef DEVLIB_VERSTAG_H
00041 #define DEVLIB_VERSTAG_H
00042 
00043 #ifndef ARCH_CONFIG_H
00044     #include <cfg/arch_config.h>
00045 #endif
00046 
00047 #define APP_NAME "Appname"
00048 #define APP_DESCRIPTION "Long application name description"
00049 #define APP_AUTHOR "Develer"
00050 #define APP_COPYRIGHT "Copyright 2006 Develer (http://www.develer.com/)"
00051 
00052 #if (ARCH & ARCH_FOO)
00053     #define VERS_MAJOR 0
00054     #define VERS_MINOR 1
00055     #define VERS_REV   0
00056     #define VERS_LETTER ""
00057 #elif (ARCH & ARCH_BAR)
00058     #define VERS_MAJOR 0
00059     #define VERS_MINOR 1
00060     #define VERS_REV   0
00061     #define VERS_LETTER ""
00062 #else
00063     #error unknown architecture
00064 #endif
00065 
00070 #define _SNAPSHOT
00071 
00072 #ifdef _DEBUG
00073     #define VERS_DBG "D"
00074 #else
00075     #define VERS_DBG ""
00076 #endif
00077 
00078 #define __STRINGIZE(x) #x
00079 #define _STRINGIZE(x) __STRINGIZE(x)
00080 
00082 #define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
00083 #ifdef _SNAPSHOT
00084     #define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
00085 #else
00086     #define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
00087 #endif
00088 
00090 #define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
00091 #define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
00092 
00094 extern const char vers_tag[];
00095 
00097 extern const int vers_build_nr;
00098 //extern const char vers_build_str[];
00099 
00101 extern const char vers_host[];
00102 
00103 #endif /* DEVLIB_VERSTAG_H */