Changeset 1299ea5b49 in tspsg for resources


Ignore:
Timestamp:
Jul 10, 2012, 5:34:54 PM (12 years ago)
Author:
Oleksii Serdiuk
Branches:
appveyor, imgbot, master, readme
Children:
b26801b000
Parents:
7ba743d983
Message:

Updated version info to be set based on git tags.

'git describe' is now used for version definition. Major, minor and
release are taken from the latest git tag. Build is defined as number of
commits since the latest tag. If we're out of source, then .tag file
should contain output of 'git describe --abbrev=40' command.

Also, moved version related code from tspsg.pro to version.pri.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • resources/tspsg.rc

    r7ba743d983 r1299ea5b49  
    2323        PRODUCTVERSION BUILD_VERSION_MAJOR,BUILD_VERSION_MINOR,BUILD_RELEASE,BUILD_NUMBER
    2424        FILEFLAGSMASK 0x17L
    25 #if defined(DEBUG)
     25#ifdef DEBUG
    2626        FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE | VS_FF_PRIVATEBUILD
    27 #elif !defined(TSPSG_RELEASE_BUILD) || (BUILD_NUMBER == 65535)
    28         FILEFLAGS VS_FF_PRERELEASE | VS_FF_SPECIALBUILD
    29 #elif BUILD_RELEASE < 11
     27#elif !defined(TSPSG_RELEASE_BUILD)
    3028        FILEFLAGS VS_FF_PRERELEASE
    3129#else
     
    5149            VALUE "InternalName", "TSPSG"
    5250            VALUE "LegalCopyright", "Copyright © 2007-2010 Oleksii ""Lёppa"" Serdiuk <contacts[at]oleksii[dot]name>"
    53 #ifdef QT_NO_DEBUG
     51#ifdef DEBUG
     52            VALUE "OriginalFilename", "tspsgd.exe"
     53#else
    5454            VALUE "OriginalFilename", "tspsg.exe"
    55 #else
    56             VALUE "OriginalFilename", "tspsgd.exe"
    5755#endif
    58 #ifndef QT_NO_DEBUG
     56#ifdef DEBUG
    5957            VALUE "PrivateBuild", "Debug development build"
    60 #elif BUILD_NUMBER == 65535
    61             VALUE "SpecialBuild", "Internal development build"
    6258#endif
    6359        END
Note: See TracChangeset for help on using the changeset viewer.