src/qbase.pri
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     2 INCLUDEPATH *= $$QMAKE_INCDIR_QT/$$TARGET #just for today to have some compat
     2 INCLUDEPATH *= $$QMAKE_INCDIR_QT/$$TARGET #just for today to have some compat
     3 !isEmpty(RCC_DIR): INCLUDEPATH += $$RCC_DIR
     3 !isEmpty(RCC_DIR): INCLUDEPATH += $$RCC_DIR
     4 isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
     4 isEmpty(QT_ARCH):!isEmpty(ARCH):QT_ARCH=$$ARCH #another compat that will rot for change #215700
     5 TEMPLATE	= lib
     5 TEMPLATE	= lib
     6 isEmpty(QT_MAJOR_VERSION) {
     6 isEmpty(QT_MAJOR_VERSION) {
     7    VERSION=4.6.1
     7    VERSION=4.6.3
     8 } else {
     8 } else {
     9    VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
     9    VERSION=$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}
    10 }
    10 }
    11 mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
    11 mac:!contains(QMAKE_EXT_C, .mm):QMAKE_EXT_C += .mm
    12 
    12 
    88     CONFIG += zlib
    88     CONFIG += zlib
    89     INCLUDEPATH += tmp
    89     INCLUDEPATH += tmp
    90     !static: DEFINES+=QT_MAKEDLL
    90     !static: DEFINES+=QT_MAKEDLL
    91 }
    91 }
    92 symbian {
    92 symbian {
    93     CONFIG += headerexport
    93     # load the environment specific feature definitions
       
    94     exists($${EPOCROOT}epoc32/tools/qt/mkspecs/features/environment.prf) {
       
    95         load($${EPOCROOT}epoc32/tools/qt/mkspecs/features/environment.prf)
       
    96     }
       
    97     
    94     shared {
    98     shared {
    95         DEFINES+=QT_MAKEDLL
    99         DEFINES+=QT_MAKEDLL
    96         TARGET.CAPABILITY = All -Tcb
   100         TARGET.CAPABILITY = All -Tcb
    97 
   101 
    98         defBlock = \
   102         # When building without autotests, DEF files are used by default.
    99         "$${LITERAL_HASH}ifdef WINSCW" \
   103         # This is to maintain binary compatibility with previous releases.
   100         "DEFFILE ../s60installs/bwins/$${TARGET}.def" \
   104         # To explicitly disable DEF files usage, eg. when lots of code churn is
   101         "$${LITERAL_HASH}elif defined EABI" \
   105         # going on, and functions may be added and removed before shipping, 
   102         "DEFFILE ../s60installs/eabi/$${TARGET}.def" \
   106         # configure with -no-usedeffiles
   103         "$${LITERAL_HASH}endif"
   107         # WARNING - disabling DEF files *will* break BC with previous released versions 
   104 
   108         # of Qt, and the only compatibility will be between this build of Qt and anything 
   105         contains(QT_CONFIG, private_tests) {
   109         # built in this exact environment.  *Never* use this when building a version 
   106             #When building autotest configuration, there are extra exports from
   110         # for release.
   107             #the Qt DLLs, which we don't want in the frozen DEF files.
   111         contains(CONFIG, def_files) {
   108             
   112             defFilePath=../s60installs
   109             # :QTP:Always use DEF files
       
   110             # MMP_RULES += EXPORTUNFROZEN
       
   111             MMP_RULES += defBlock
       
   112         } else {
       
   113             #When building without autotests, DEF files are used by default.
       
   114             #This is to maintain binary compatibility with previous releases.
       
   115             
       
   116             #with defBlock enabled, removed exported symbols are treated as errors
       
   117             #and there is binary compatibility between successive builds.
       
   118             #with defBlock disabled, binary compatibility is broken every time you build
       
   119             MMP_RULES += defBlock
       
   120 
       
   121             #with EXPORTUNFROZEN enabled, new exports are included in the dll without
       
   122             #needing to run abld freeze, however binary compatibility is only maintained
       
   123             #for symbols that are frozen (and only if defBlock is also enabled)
       
   124             #the downside of EXPORTUNFROZEN is that the linker gets run twice
       
   125             #MMP_RULES += EXPORTUNFROZEN
       
   126         }
   113         }
   127     }
   114     }
   128     load(armcc_warnings)
   115     load(armcc_warnings)
       
   116 
       
   117     # workaround for the fact that some of our required includes in Symbian^3
       
   118     # now depend upon files in epoc32/include/platform
       
   119     INCLUDEPATH += $$OS_LAYER_SYSTEMINCLUDE
   129 }
   120 }
   130 win32-borland:INCLUDEPATH += kernel
   121 win32-borland:INCLUDEPATH += kernel
   131 
   122 
   132 aix-g++* {
   123 aix-g++* {
   133      QMAKE_CFLAGS   += -mminimal-toc
   124      QMAKE_CFLAGS   += -mminimal-toc