From: simone Date: Sun, 18 Jul 2004 22:12:45 +0000 (+0000) Subject: Add some info X-Git-Tag: 1.0.0~1184 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ff02d20ad24f55d8e71ac9c3bac4dcb7250d75d6;p=bertos.git Add some info Add macro to compose Windows version tags git-svn-id: https://src.develer.com/svnoss/bertos/trunk@57 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/verstag.h b/verstag.h index 331d0a8e..d9a1d176 100755 --- a/verstag.h +++ b/verstag.h @@ -19,6 +19,11 @@ #include "arch_config.h" #endif +#define APP_NAME "Appname" +#define APP_DESCRIPTION "Long application name description" +#define APP_AUTHOR "Develer" +#define APP_COPYRIGHT "Copyright (C) 2004 by Develer (http://www.develer.com/)" + #if (ARCH & ARCH_FOO) #define VERS_MAJOR 0 #define VERS_MINOR 1 @@ -39,9 +44,13 @@ #define VERS_DBG "" #endif -#define _MAKE_VERS(maj,min,rev) #maj "." #min "." #rev VERS_LETTER VERS_DBG -#define MAKE_VERS(maj,min,rev) _MAKE_VERS(maj,min,rev) - +#define _STRINGIZE(a) #a +/*! Build application version string (i.e.: "1.7.0") */ +#define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG #define VERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV) +/*! Build application version string suitable for MS windows resource files (i.e.: "1, 7, 0, 1") */ +#define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld) +#define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV) + #endif /* VERSTAG_H */