Changeset 385 for trunk/src


Ignore:
Timestamp:
Dec 5, 2009, 2:33:42 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Moved VERSION definition to src/qt_targets.pri to have it in a single source and together with other relevant information. Added inclusion of src/qt_targets.pri by linguist, assistant and designer application projects so that they will embed version information too.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/qpluginbase.pri

    r158 r385  
    11TEMPLATE = lib
    2 isEmpty(QT_MAJOR_VERSION) {
    3    VERSION=4.5.1
    4 } else {
    5    VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
    6 }
     2
     3include(../qt_targets.pri)
     4
    75CONFIG += qt plugin
    86
     
    1210contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
    1311
    14 include(../qt_targets.pri)
    15 
    1612wince*:LIBS += $$QMAKE_LIBS_GUI
  • trunk/src/qbase.pri

    r158 r385  
    44isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
    55TEMPLATE        = lib
    6 isEmpty(QT_MAJOR_VERSION) {
    7    VERSION=4.5.1
    8 } else {
    9    VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
    10 }
     6
     7include(qt_targets.pri)
     8
    119mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
    1210
     
    151149QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir
    152150
    153 include(qt_targets.pri)
    154 
    155151win32:DEFINES+=_USE_MATH_DEFINES
  • trunk/src/qt_targets.pri

    r383 r385  
    44QMAKE_TARGET_COPYRIGHT = Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)
    55
     6isEmpty(QT_MAJOR_VERSION) {
     7   VERSION=4.5.1
     8} else {
     9   VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
     10}
     11
    612os2 {
    7     # set QMAKE_TARGET_COMPANY to the actual binary OS/2 build vendor. The above 
     13    # set QMAKE_TARGET_COMPANY to the actual binary OS/2 build vendor. The above
    814    # copyright notice will be still retained in the DLL and EXE description.
    915        contains(QT_CONFIG, official_build):QMAKE_TARGET_COMPANY = netlabs.org
    1016        else:QMAKE_TARGET_COMPANY = $$(USER)
    1117        isEmpty(QMAKE_TARGET_COMPANY):QMAKE_TARGET_COMPANY = anonymous
     18
     19        # extend the version number included in DLLs and EXEs with the SVN revision number
     20        DEF_FILE_VERSION = $$VERSION
     21    !isEmpty(QT_BUILD_VERSION):DEF_FILE_VERSION = $${DEF_FILE_VERSION}-$${QT_BUILD_VERSION}
     22    !isEmpty(QMAKESPEC):DEF_FILE_VERSION = $${DEF_FILE_VERSION}_$$basename(QMAKESPEC)
    1223}
Note: See TracChangeset for help on using the changeset viewer.