Changeset 96 in tspsg-svn for trunk/src/version.h


Ignore:
Timestamp:
Mar 1, 2010, 2:13:23 PM (15 years ago)
Author:
laleppa
Message:
  • Fixed some wrong defines that prevented successful compilation under *nix.
  • Renamed i18n to l10n to follow common standards.
  • Translation and documentation paths are now synchronized between .pro and source.
  • Moved some versioning information to .pro file.
  • Updated translations.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/version.h

    r87 r96  
    5252
    5353//! TSPSG version ID
    54 #define VERSIONID "$Id$"
     54//#define VERSIONID "$Id$"
    5555//! Major version of current TSPSG build
    56 #define BUILD_VERSION_MAJOR 0
     56//#define BUILD_VERSION_MAJOR 0
    5757//! Minor version of current TSPSG build
    58 #define BUILD_VERSION_MINOR 1
     58//#define BUILD_VERSION_MINOR 1
    5959/*!
    6060 * \brief TSPSG release number
     
    6666 *    - 11 --  x: <b>release</b> 1 to x-10
    6767 */
    68 #define BUILD_RELEASE 2
     68//#define BUILD_RELEASE 2
    6969
    7070/*!
     
    7373 *  This will only change on releases and will be the same as revision number.
    7474 */
    75 #define BUILD_NUMBER 65535
     75//#define BUILD_NUMBER 65535
    7676
    7777/*!
     
    8181 * Determined based on BUILD_NUMBER and BUILD_RELEASE.
    8282 */
    83 #if BUILD_NUMBER == 65535
     83#ifndef TSPSG_RELEASE_BUILD
    8484        #define BUILD_STATUS (dev build)
    8585#else
     
    9090        #elif BUILD_RELEASE < 11
    9191                #define BUILD_STATUS (rc)
    92         #else
    93                 #define BUILD_STATUS
     92//      #else
     93//              #define BUILD_STATUS
    9494        #endif
    95 #endif // BUILD_NUMBER == 65535
     95#endif // TSPSG_RELEASE_BUILD
    9696
    9797//! \internal \brief A helper for QUOTE(x).
     
    102102/*!
    103103 * \def BUILD_VERSION
    104  * \brief Full version of TSPSG in the form: \c major.\c minor.\c release[ \c status].
     104 * \brief Full version of TSPSG in the form: \c major.\c minor.\c release.\c build [ \c status].
    105105 */
    106106#ifndef BUILD_STATUS
    107         #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE)
     107        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE.BUILD_NUMBER)
    108108#else
    109         #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE BUILD_STATUS)
     109        #define BUILD_VERSION QUOTE(BUILD_VERSION_MAJOR.BUILD_VERSION_MINOR.BUILD_RELEASE.BUILD_NUMBER BUILD_STATUS)
    110110#endif
    111111
Note: See TracChangeset for help on using the changeset viewer.