properly declare the host tools as such in the project files
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Fri, 3 Feb 2012 21:13:12 +0000 (22:13 +0100)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Tue, 19 Jun 2012 14:37:50 +0000 (16:37 +0200)
don't mess with the qmake cmdline args any more.

Change-Id: I399d87145d31d25e29951b6acd96387a3c7282f0
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
configure
qmake/qmake.pro
src/tools/bootstrap/bootstrap.pro
src/tools/moc/moc.pro
src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
src/tools/qdoc/qdoc.pro
src/tools/rcc/rcc.pro
src/tools/uic/uic.pro
tools/configure/configureapp.cpp

index a4180bc..9e17df6 100755 (executable)
--- a/configure
+++ b/configure
@@ -6290,13 +6290,11 @@ for file in .projects .projects.3; do
             if [ "$CFG_NOPROCESS" = "yes" ] || [ "$XPLATFORM_MINGW" != "yes" ]; then
                 continue
             fi
-            SPEC=$XQMAKESPEC ;;
+            ;;
         */qmake/qmake.pro) continue ;;
-        *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic*|*tools/qdoc*|*tools/qdbusxml2cpp*|*tools/qdbuscpp2xml*) SPEC=$QMAKESPEC ;;
+        *tools/bootstrap*|*tools/moc*|*tools/rcc*|*tools/uic*|*tools/qdoc*|*tools/qdbusxml2cpp*|*tools/qdbuscpp2xml*) ;;
         *) if [ "$CFG_NOPROCESS" = "yes" ]; then
               continue
-           else
-              SPEC=$XQMAKESPEC
            fi;;
         esac
         dir=`dirname "$a" | sed -e "s;$sepath;.;g"`
@@ -6310,11 +6308,9 @@ for file in .projects .projects.3; do
             [ "$OPT_VERBOSE" = "yes" ] && echo "  skipping $a"
             continue;
         fi
-        QMAKE_SPEC_ARGS="-spec $SPEC"
         echo $ECHO_N "  for $a$ECHO_C"
 
         QMAKE="$outpath/bin/qmake"
-       QMAKE_ARGS="$QMAKE_SWITCHES $QMAKE_SPEC_ARGS"
         if [ "$file" = ".projects.3" ]; then
             echo " (fast)"
 
@@ -6329,7 +6325,7 @@ EOF
             cat >>"${OUTDIR}/Makefile" <<EOF
 QMAKE = "$QMAKE"
 all clean install qmake first Makefile: FORCE
-       \$(QMAKE) $QMAKE_ARGS -o "$OUTDIR" "$a"
+       \$(QMAKE) $QMAKE_SWITCHES -o "$OUTDIR" "$a"
        cd "$OUTDIR"
        \$(MAKE) \$@
 
@@ -6337,15 +6333,13 @@ FORCE:
 
 EOF
         else
+            echo
             if [ "$OPT_VERBOSE" = "yes" ]; then
-                echo " (`basename $SPEC`)"
-                echo "$QMAKE" $QMAKE_ARGS -o "$OUTDIR" "$a"
-           else
-               echo
+                echo "$QMAKE" $QMAKE_SWITCHES -o "$OUTDIR" "$a"
             fi
 
             [ -f "${OUTDIR}/Makefile" ] && chmod +w "${OUTDIR}/Makefile"
-            QTDIR="$outpath" "$QMAKE" $QMAKE_ARGS -o "$OUTDIR" "$a"
+            QTDIR="$outpath" "$QMAKE" $QMAKE_SWITCHES -o "$OUTDIR" "$a"
        fi
     done
 done
index 5a5010f..0693d9a 100644 (file)
@@ -3,6 +3,7 @@
 #once you are boot strapped though, the qmake.pro will offer better coverage of a
 #platform than either of the generic makefiles
 
+option(host_build)
 CONFIG += console bootstrap
 CONFIG -= qt shared app_bundle uic
 DEFINES += QT_BUILD_QMAKE QT_BOOTSTRAPPED
index 239f9e5..8f29393 100644 (file)
@@ -1,3 +1,4 @@
+option(host_build)
 TEMPLATE = lib
 TARGET = bootstrap
 CONFIG += staticlib
index 62d6928..b40f213 100644 (file)
@@ -1,3 +1,4 @@
+option(host_build)
 TEMPLATE       = app
 TARGET         = moc
 
index 33f7937..ae1edf0 100644 (file)
@@ -1,4 +1,4 @@
-
+option(host_build)
 TEMPLATE = app
 TARGET = qdbuscpp2xml
 
index 5c430fd..ac71837 100644 (file)
@@ -1,3 +1,4 @@
+option(host_build)
 TEMPLATE = app
 TARGET = qdbusxml2cpp
 
index 348593d..37ec63a 100644 (file)
@@ -1,3 +1,4 @@
+option(host_build)
 TEMPLATE = app
 TARGET = qdoc
 
index e87ef60..8debb03 100644 (file)
@@ -1,3 +1,4 @@
+option(host_build)
 TEMPLATE = app
 TARGET = rcc
 
index 0acc6e7..d03645e 100644 (file)
@@ -1,3 +1,4 @@
+option(host_build)
 TEMPLATE = app
 TARGET = uic
 
index ff27443..9633bb6 100644 (file)
@@ -3642,7 +3642,6 @@ void Configure::generateMakefiles()
                     printf("Generating Makefiles...\n");
                     generate = false; // Now Makefiles will be done
                 }
-                // don't pass -spec - .qmake.cache has it already
                 args << "-r";
                 args << (sourcePath + "/qtbase.pro");
                 args << "-o";
@@ -3682,8 +3681,6 @@ void Configure::generateMakefiles()
                     cout << "For " << qPrintable(dirPath + projectName) << endl;
                     args << "-o";
                     args << it->target;
-                    args << "-spec";
-                    args << spec;
                     if (!dictionary[ "QMAKEADDITIONALARGS" ].isEmpty())
                         args << dictionary[ "QMAKEADDITIONALARGS" ];