summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-04-04 14:02:10 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-06-19 16:45:57 +0200
commit2d8dd9a6c984d2245e93ec2fb38dc201d60aca4f (patch)
treea80428c8c9bb43cba914266da1906dc2845b8175
parent0b37ec3321323a242ad63459afcf01ca9ac61988 (diff)
do not route qtmodule-configtests invocation through syncqt
there is completely no reason to do it. Change-Id: Ie186ef4c1bbd12c256acb2fe374d12ebe777d6c9 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
-rwxr-xr-xbin/syncqt24
-rw-r--r--mkspecs/features/default_pre.prf5
2 files changed, 4 insertions, 25 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 30a870f195..dbde5b478c 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -104,7 +104,6 @@ my $create_private_headers = 1;
my $module_fwd = "";
my $cache_module_fwd = 0;
my $developer_build = 0;
-my $makefile_generator = "";
my @modules_to_sync ;
$force_relative = 1 if ( -d "/System/Library/Frameworks" );
@@ -143,7 +142,6 @@ sub showUsage
print " fwd includes\n";
print " -developer-build Point libraries and binaries to a common directory for\n";
print " easy development\n";
- print " -generator <PATH> Specify the makefile generator setting (e.g. 'UNIX')\n";
print " -help This help\n";
exit 0;
}
@@ -684,9 +682,6 @@ while ( @ARGV ) {
} elsif($arg eq "-qtdir") {
$var = "qtdir";
$val = shift @ARGV;
- } elsif($arg eq "-generator") {
- $var = "makefile_generator";
- $val = shift @ARGV;
} elsif($arg =~/^-/) {
print "Unknown option: $arg\n\n" if(!$var);
showUsage();
@@ -770,8 +765,6 @@ while ( @ARGV ) {
$cache_module_fwd = 1;
} elsif ($var eq "developer_build") {
$developer_build = 1;
- } elsif ($var eq "makefile_generator") {
- $makefile_generator = $val;
} elsif ($var eq "output") {
my $outdir = $val;
if(checkRelative($outdir)) {
@@ -1383,21 +1376,4 @@ if($check_includes) {
}
}
-# Do configure tests now (pass some things along)
-# fatal tests have a non zero return
-# If the generator is not set (e.g. someone invoking syncqt as part of configure etc, then don't run tests either)
-unless ($showonly || $makefile_generator eq '') {
- my $configtests = dirname($0)."/qtmodule-configtests";
- if (! -f $configtests) {
- $configtests = $qtbasedir."/bin/qtmodule-configtests";
- }
- if (! -f $configtests) {
- warn "Unable to locate qtmodule-configtests script - config tests disabled.\n";
- } else {
- if (system($EXECUTABLE_NAME, $configtests, $basedir, $out_basedir, $qtbasedir, $makefile_generator)) {
- die "$configtests exited with status $?";
- }
- }
-}
-
exit 0;
diff --git a/mkspecs/features/default_pre.prf b/mkspecs/features/default_pre.prf
index b7f31c4c21..3f6e7afea1 100644
--- a/mkspecs/features/default_pre.prf
+++ b/mkspecs/features/default_pre.prf
@@ -16,7 +16,7 @@ CONFIG = lex yacc warn_on debug exceptions $$CONFIG
qtPrepareTool(QMAKE_SYNCQT, syncqt)
isEmpty(MODULE_BASE_OUTDIR): MODULE_BASE_OUTDIR = $$OUT_PWD
- MSG = $$quote($$QMAKE_SYNCQT -qtdir $$[QT_HOST_DATA/get] $$QTFWD -generator $$MAKEFILE_GENERATOR -outdir $$MODULE_BASE_OUTDIR $$_PRO_FILE_PWD_)
+ MSG = $$quote($$QMAKE_SYNCQT -qtdir $$[QT_HOST_DATA/get] $$QTFWD -outdir $$MODULE_BASE_OUTDIR $$_PRO_FILE_PWD_)
!silent:message($$MSG)
system($$MSG) {
# success! Nothing to do
@@ -24,6 +24,9 @@ CONFIG = lex yacc warn_on debug exceptions $$CONFIG
error("Failed to run: $$MSG")
}
+ # Do configure tests now. Fatal tests have a non zero return.
+ system("perl $$[QT_HOST_BINS/get]/qtmodule-configtests $$_PRO_FILE_PWD_ $$OUT_PWD $$[QT_HOST_PREFIX/get] $$MAKEFILE_GENERATOR")|error("Aborting.")
+
unset(QTFWD)
}