Changeset 1050 for trunk/src


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

Restore place of original VERSION definition (revert r385).

The reason is that VERSION is very dangerous: setting it causes all DLL
files to get the suffix comprised of the major version number extracted from
the VERSION's value. Since qt_targets.pri may be included everywhere,
it may have unexpected side effects (like it did for QML plugins since it is
included from qimportbase.pri).

Location:
trunk/src
Files:
3 edited

Legend:

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

    r769 r1050  
    11TEMPLATE = lib
    2 
    3 include(../qt_targets.pri)
    4 
     2isEmpty(QT_MAJOR_VERSION) {
     3   VERSION=4.7.3
     4} else {
     5   VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
     6}
    57CONFIG += qt plugin
    68
     
    911!isEmpty(TARGET_SHORT):TARGET_SHORT = $$qtLibraryTarget($$TARGET_SHORT)
    1012contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
     13
     14
    1115
    1216wince*:LIBS += $$QMAKE_LIBS_GUI
  • trunk/src/qbase.pri

    r846 r1050  
    33isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
    44TEMPLATE        = lib
    5 
    6 include(qt_targets.pri)
    7 
     5isEmpty(QT_MAJOR_VERSION) {
     6   VERSION=4.7.3
     7} else {
     8   VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
     9}
    810mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
    911
     
    179181QMAKE_PKGCONFIG_VARIABLES += moc_dir uic_dir rcc_dir lupdate_dir lrelease_dir
    180182
     183
     184
    181185win32:DEFINES+=_USE_MATH_DEFINES
    182186
  • trunk/src/qt_targets.pri

    r1049 r1050  
    33QMAKE_TARGET_DESCRIPTION = C++ application development framework.
    44QMAKE_TARGET_COPYRIGHT = Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    5 
    6 isEmpty(QT_MAJOR_VERSION) {
    7    VERSION=4.7.3
    8 } else {
    9    VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
    10 }
    115
    126os2 {
Note: See TracChangeset for help on using the changeset viewer.