verstag.h

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