let default_pre add modules to the qmake path
that way qmake is made aware of the forwarding pris which are generated for this module even when a top-level .qmake.cache prevents the module's root from being found automatically. the path is also added to the cache, so that subsequent partial qmake-ing of the tree will still find the module. this also makes the -cache-module-fwd parameter of syncqt useless, so remove it. Change-Id: I2afbc52a465c0b3260e9bcaf032c43a82ae8061f Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
a943f40483
commit
a56ef02b2d
16
bin/syncqt
16
bin/syncqt
@ -102,7 +102,6 @@ my $copy_headers = 0;
|
||||
my $create_uic_class_map = 0;
|
||||
my $create_private_headers = 1;
|
||||
my $module_fwd = "";
|
||||
my $cache_module_fwd = 0;
|
||||
my $developer_build = 0;
|
||||
my @modules_to_sync ;
|
||||
$force_relative = 1 if ( -d "/System/Library/Frameworks" );
|
||||
@ -138,8 +137,6 @@ sub showUsage
|
||||
print " -private Force copy private headers (default: " . ($create_private_headers ? "yes" : "no") . ")\n";
|
||||
print " -module-fwd <PATH> Create fwd includes for module pri files in the given\n";
|
||||
print " path (default: none)\n";
|
||||
print " -cache-module-fwd Create a .qmake.cache file to cache the location of the\n";
|
||||
print " fwd includes\n";
|
||||
print " -developer-build Point libraries and binaries to a common directory for\n";
|
||||
print " easy development\n";
|
||||
print " -help This help\n";
|
||||
@ -621,9 +618,6 @@ while ( @ARGV ) {
|
||||
} elsif($arg eq "-module-fwd") {
|
||||
$var = "module_fwd";
|
||||
$val = shift @ARGV;
|
||||
} elsif($arg eq "-cache-module-fwd") {
|
||||
$var = "cache_module_fwd";
|
||||
$val = "yes";
|
||||
} elsif($arg eq "-developer-build") {
|
||||
$var = "developer_build";
|
||||
$val = "yes";
|
||||
@ -737,8 +731,6 @@ while ( @ARGV ) {
|
||||
}
|
||||
} elsif ($var eq "module_fwd") {
|
||||
$module_fwd = $val;
|
||||
} elsif ($var eq "cache_module_fwd") {
|
||||
$cache_module_fwd = 1;
|
||||
} elsif ($var eq "developer_build") {
|
||||
$developer_build = 1;
|
||||
} elsif ($var eq "output") {
|
||||
@ -1148,14 +1140,6 @@ foreach my $lib (@modules_to_sync) {
|
||||
print MODULE_PRI_FILE "include($modulepri)\n";
|
||||
close MODULE_PRI_FILE;
|
||||
utime(time, (stat($modulepri))[9], $moduleprifwd);
|
||||
if ($cache_module_fwd) {
|
||||
my $cacheFile = "$out_basedir/.qmake.cache";
|
||||
# Skip if it's already there.
|
||||
if (!-f $cacheFile) {
|
||||
open QMAKE_CACHE_FILE, ">>$cacheFile" or die("Could not open $cacheFile for writing");
|
||||
close(QMAKE_CACHE_FILE);
|
||||
}
|
||||
}
|
||||
} elsif ($modulepri) {
|
||||
print "$lib: WARNING: Module\'s pri file '$modulepri' not found.\n$lib: Skipped creating forwarding pri.\n";
|
||||
}
|
||||
|
@ -9,7 +9,9 @@ CONFIG = lex yacc warn_on debug exceptions $$CONFIG
|
||||
} else {
|
||||
isEmpty(MODULE_QMAKE_OUTDIR): MODULE_QMAKE_OUTDIR = $$OUT_PWD
|
||||
modpath = $$MODULE_QMAKE_OUTDIR/mkspecs/modules
|
||||
QTFWD = -module-fwd $$modpath -cache-module-fwd
|
||||
QTFWD = -module-fwd $$modpath
|
||||
!isEmpty(_QMAKE_SUPER_CACHE_):!contains(QMAKEMODULES, $$modpath): \
|
||||
cache(QMAKEMODULES, add super, modpath)
|
||||
unset(modpath)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user