BeRTOS
verstag.h
Go to the documentation of this file.
00001 
00041 #ifndef BERTOS_VERSTAG_H
00042 #define BERTOS_VERSTAG_H
00043 
00044 #ifndef CFG_ARCH_CONFIG_H
00045     #include "cfg/cfg_arch.h"
00046 #endif
00047 
00048 #define APP_NAME "Appname"
00049 #define APP_DESCRIPTION "Long application name description"
00050 #define APP_AUTHOR "Develer"
00051 #define APP_COPYRIGHT "Copyright 2009 Develer (http://www.develer.com/)"
00052 
00053 
00054 #if ARCH & ARCH_DEFAULT
00055     #define VERS_MAJOR 0
00056     #define VERS_MINOR 1
00057     #define VERS_REV   0
00058     #define VERS_LETTER ""
00059 #elif ARCH & ARCH_NIGHTTEST
00060     #define VERS_MAJOR 0
00061     #define VERS_MINOR 1
00062     #define VERS_REV   0
00063     #define VERS_LETTER ""
00064 #else
00065     #error unknown architecture
00066 #endif
00067 
00072 #define _SNAPSHOT
00073 
00074 #ifdef _DEBUG
00075     #define VERS_DBG "D"
00076 #else
00077     #define VERS_DBG ""
00078 #endif
00079 
00080 #define __STRINGIZE(x) #x
00081 #define _STRINGIZE(x) __STRINGIZE(x)
00082 
00084 #define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
00085 #ifdef _SNAPSHOT
00086     #define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
00087 #else
00088     #define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
00089 #endif
00090 
00092 #define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
00093 #define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
00094 
00096 extern const char vers_tag[];
00097 
00099 extern const int vers_build_nr;
00100 //extern const char vers_build_str[];
00101 
00103 extern const char vers_host[];
00104 
00105 #endif /* BERTOS_VERSTAG_H */