projects.pro
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
child 33 3e2da88830cd
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
    38        SUBDIRS += tools
    38        SUBDIRS += tools
    39     } else:isEqual(PROJECT, examples) {
    39     } else:isEqual(PROJECT, examples) {
    40        SUBDIRS += examples
    40        SUBDIRS += examples
    41     } else:isEqual(PROJECT, demos) {
    41     } else:isEqual(PROJECT, demos) {
    42        SUBDIRS += demos
    42        SUBDIRS += demos
       
    43     } else:isEqual(PROJECT, tests) {
       
    44        SUBDIRS += tests
    43     } else:isEqual(PROJECT, libs) {
    45     } else:isEqual(PROJECT, libs) {
    44        include(src/src.pro)
    46        include(src/src.pro)
    45     } else:isEqual(PROJECT, docs) {
    47     } else:isEqual(PROJECT, docs) {
    46        contains(QT_BUILD_PARTS, tools):include(doc/doc.pri)
    48        contains(QT_BUILD_PARTS, tools):include(doc/doc.pri)
    47     } else:isEqual(PROJECT, translations) {
    49     } else:isEqual(PROJECT, translations) {
    48        contains(QT_BUILD_PARTS, tools) {
    50        contains(QT_BUILD_PARTS, tools) {
    49           include(translations/translations.pri)  # ts targets
    51           include(translations/translations.pri)  # ts targets
    50        } else {
    52        } else {
    51           !wince*:!symbian:SUBDIRS += tools/linguist/lrelease
    53           !wince*:SUBDIRS += tools/linguist/lrelease
    52        }
    54        }
    53        SUBDIRS += translations                    # qm build step
    55        SUBDIRS += translations                    # qm build step
    54     } else:isEqual(PROJECT, qmake) {
    56     } else:isEqual(PROJECT, qmake) {
    55 #      SUBDIRS += qmake
    57 #      SUBDIRS += qmake
    56     } else {
    58     } else {
   110 			-$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
   112 			-$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
   111 			(cd qmake && $(MAKE) distclean)
   113 			(cd qmake && $(MAKE) distclean)
   112 }
   114 }
   113 symbian {
   115 symbian {
   114   confclean.depends += distclean
   116   confclean.depends += distclean
   115   confclean.commands += \
   117   contains(QMAKE_HOST.os, "Windows") {
       
   118     confclean.commands += \
   116             (cd src\tools\moc && $(MAKE) distclean) $$escape_expand(\n\t) \
   119             (cd src\tools\moc && $(MAKE) distclean) $$escape_expand(\n\t) \
   117             (cd src\tools\rcc && $(MAKE) distclean) $$escape_expand(\n\t) \
   120             (cd src\tools\rcc && $(MAKE) distclean) $$escape_expand(\n\t) \
   118             (cd src\tools\uic && $(MAKE) distclean) $$escape_expand(\n\t) \
   121             (cd src\tools\uic && $(MAKE) distclean) $$escape_expand(\n\t) \
   119             -$(DEL_FILE) src\corelib\global\qconfig.h $$escape_expand(\n\t) \
   122             -$(DEL_FILE) src\corelib\global\qconfig.h $$escape_expand(\n\t) \
   120             -$(DEL_FILE) src\corelib\global\qconfig.cpp $$escape_expand(\n\t) \
   123             -$(DEL_FILE) src\corelib\global\qconfig.cpp $$escape_expand(\n\t) \
   121             -$(DEL_FILE) mkspecs\qconfig.pri $$escape_expand(\n\t) \
   124             -$(DEL_FILE) mkspecs\qconfig.pri $$escape_expand(\n\t) \
   122             -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
   125             -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
   123             (cd qmake && $(MAKE) distclean)
   126             (cd qmake && $(MAKE) distclean)
   124             
   127   } else {
       
   128     confclean.commands += \
       
   129             (cd src/tools/moc && $(MAKE) distclean) $$escape_expand(\n\t) \
       
   130             (cd src/tools/rcc && $(MAKE) distclean) $$escape_expand(\n\t) \
       
   131             (cd src/tools/uic && $(MAKE) distclean) $$escape_expand(\n\t) \
       
   132             -$(DEL_FILE) src/corelib/global/qconfig.h $$escape_expand(\n\t) \
       
   133             -$(DEL_FILE) src/corelib/global/qconfig.cpp $$escape_expand(\n\t) \
       
   134             -$(DEL_FILE) mkspecs/qconfig.pri $$escape_expand(\n\t) \
       
   135             -$(DEL_FILE) .qmake.cache $$escape_expand(\n\t) \
       
   136             (cd qmake && $(MAKE) distclean)
       
   137   }
   125 }
   138 }
   126 QMAKE_EXTRA_TARGETS += confclean
   139 QMAKE_EXTRA_TARGETS += confclean
   127 qmakeclean.commands += (cd qmake && $(MAKE) clean)
   140 qmakeclean.commands += (cd qmake && $(MAKE) clean)
   128 QMAKE_EXTRA_TARGETS += qmakeclean
   141 QMAKE_EXTRA_TARGETS += qmakeclean
   129 CLEAN_DEPS += qmakeclean
   142 CLEAN_DEPS += qmakeclean
   152 unix { 
   165 unix { 
   153    DEFAULT_QMAKESPEC = $$QMAKESPEC
   166    DEFAULT_QMAKESPEC = $$QMAKESPEC
   154    DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
   167    DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
   155    mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
   168    mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
   156 }
   169 }
       
   170 win32:!equals(QT_BUILD_TREE, $$QT_SOURCE_TREE) {
       
   171     # When shadow building on Windows, the default mkspec only exists in the build tree.
       
   172     mkspecs.files += $$QT_BUILD_TREE/mkspecs/default
       
   173 }
   157 INSTALLS += mkspecs
   174 INSTALLS += mkspecs
   158 
   175 
   159 false:macx { #mac install location
   176 false:macx { #mac install location
   160     macdocs.files = $$htmldocs.files
   177     macdocs.files = $$htmldocs.files
   161     macdocs.path = /Developer/Documentation/Qt
   178     macdocs.path = /Developer/Documentation/Qt