Changeset 1051


Ignore:
Timestamp:
Sep 5, 2011, 5:11:20 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Add QMAKE_TARGET_VERSION to qt_targets.pri.

This will cause all DLL and EXE targets that include qt_targets.pri to get the
correct verison number embedded w/o playing with the dangerous
VERSION variable (see r1050).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/features/os2/default_post.prf

    r1048 r1051  
    2525    # convert QMAKE_TARGET_ variables to DEF_FILE_ ones
    2626    isEmpty(DEF_FILE_VERSION) {
    27         !isEmpty(VERSION):DEF_FILE_VERSION = $$VERSION
    28         else:DEF_FILE_VERSION = $$QMAKE_TARGET_VERSION
     27        !isEmpty(VERSION
     28        else:DEF_FILE_VERSION = $$VERSION
    2929    }
    3030    isEmpty(DEF_FILE_DESCRIPTION) {
  • trunk/src/qt_targets.pri

    r1050 r1051  
    55
    66os2 {
    7     # too long company name does not fit
     7    # too long company name does not fit
    88    QMAKE_TARGET_COMPANY = Nokia
    9     !isEmpty(QT_BUILD_VERSION) {
    10         # extend the version number embedded in EXEs/DLLs with the build number
    11         DEF_FILE_VERSION = $$VERSION.$${QT_BUILD_VERSION}
     9    !isEmpty(QT_MAJOR_VERSION) {
     10        QMAKE_TARGET_VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
     11        !isEmpty(QT_BUILD_VERSION) {
     12            # extend the version number embedded in EXEs/DLLs with the build number
     13            QMAKE_TARGET_VERSION = $${QMAKE_TARGET_VERSION}.$${QT_BUILD_VERSION}
     14        }
    1215    }
    1316}
Note: See TracChangeset for help on using the changeset viewer.