Build tools in release mode if using -debug-and-release option
authorYuchen Deng <loaden@gmail.com>
Fri, 21 Sep 2012 12:15:17 +0000 (20:15 +0800)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 26 Sep 2012 13:01:05 +0000 (15:01 +0200)
Change-Id: I2d0f60e2fcba66460f5488c6f66432b76a06f05a
Reviewed-by: Yuchen Deng <loaden@gmail.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/assistant/assistant/assistant.pro
src/assistant/qhelpconverter/qhelpconverter.pro
src/designer/src/designer/designer.pro
src/designer/src/plugins/activeqt/activeqt.pro
src/designer/src/plugins/plugins.pri
src/designer/src/plugins/qwebview/qwebview.pro
src/designer/src/plugins/tools/view3d/view3d.pro
src/linguist/linguist/linguist.pro
src/pixeltool/pixeltool.pro

index 4c4008e..5eee8e6 100644 (file)
@@ -10,6 +10,7 @@ DESTDIR = $$QT.help.bins
 CONFIG += qt \
     warn_on \
     help
+!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
 QT += widgets network help sql
 !isEmpty(QT.printsupport.name): QT += printsupport
 PROJECTNAME = Assistant
index b9b6a63..33c2529 100644 (file)
@@ -3,6 +3,7 @@ TEMPLATE = app
 TARGET = qhelpconverter
 DESTDIR = $$QT.help.bins
 CONFIG += qt warn_on
+!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
 
 target.path=$$[QT_INSTALL_BINS]
 INSTALLS += target
index 29a0196..b3478c5 100644 (file)
@@ -1,11 +1,7 @@
 DESTDIR = $$QT.designer.bins
 QT += core-private widgets xml network designer-private designercomponents
 !isEmpty(QT.printsupport.name): QT += printsupport
-
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
+!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
 
 INCLUDEPATH += \
     ../lib/sdk \
index 5fa4373..7902c95 100644 (file)
@@ -5,10 +5,6 @@ CONFIG     += qaxcontainer qt warn_on plugin designer
 QT         += widgets designer-private
 
 include(../plugins.pri)
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
 
 INCLUDEPATH += $$QT.activeqt.sources/shared/ \
                $$QT.activeqt.sources/container \
index 2801e5b..c0c7a8f 100644 (file)
@@ -1,5 +1,5 @@
 CONFIG += designer
-win32|mac: CONFIG+= debug_and_release
+!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
 DESTDIR = $$QT.designer.plugins/designer
 contains(TEMPLATE, ".*lib"):TARGET = $$qtLibraryTarget($$TARGET)
 
index 50fc699..f5fe431 100644 (file)
@@ -4,10 +4,6 @@ CONFIG     += qt warn_on plugin
 QT         += widgets webkit
 
 include(../plugins.pri)
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
 
 SOURCES += qwebview_plugin.cpp
 HEADERS += qwebview_plugin.h
index 5c27ea7..82baf47 100644 (file)
@@ -5,10 +5,6 @@ CONFIG  += qt warn_on plugin designer
 TARGET = view3d
 
 include(../../plugins.pri)
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
 
 SOURCES += view3d.cpp view3d_tool.cpp view3d_plugin.cpp
 HEADERS += view3d.h view3d_tool.h view3d_plugin.h view3d_global.h
index 7b1903f..25bf7e8 100644 (file)
@@ -8,10 +8,7 @@ QT += core-private widgets xml uitools-private
 CONFIG += qt warn_on
 
 DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_CAST_TO_ASCII
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
+!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
 
 include(../shared/formats.pri)
 
index 6624909..2f0d4d7 100644 (file)
@@ -1,11 +1,7 @@
 CONFIG  += qt warn_on
+!build_pass:contains(QT_CONFIG, build_all): CONFIG += release
 QT += widgets network
 
-build_all:!build_pass {
-    CONFIG -= build_all
-    CONFIG += release
-}
-
 DESTDIR     = $$QT.designer.bins
 
 mac {