summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-07-14 14:26:19 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2010-07-17 06:59:44 (GMT)
commit139add5ad65e5d7b8c39127917047edb1baf4b18 (patch)
tree28f05f7d890bc395b33dbe7dad899aabda10eb24 /bin
parentb63431e771da3d35f17f9aa584391096eb7c2ab0 (diff)
downloadQt-139add5ad65e5d7b8c39127917047edb1baf4b18.zip
Qt-139add5ad65e5d7b8c39127917047edb1baf4b18.tar.gz
Qt-139add5ad65e5d7b8c39127917047edb1baf4b18.tar.bz2
fix qconfig.h reference for shadow builds
Reviewed-by: joerg (cherry picked from commit 00b7befbc003682a351c18d90436010efd26ece5)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/syncqt4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/syncqt b/bin/syncqt
index cb67cc6..28dc0c3 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -691,7 +691,7 @@ my @ignore_for_qt_begin_header_check = ( "qiconset.h", "qconfig.h", "qconfig-dis
my @ignore_for_qt_begin_namespace_check = ( "qconfig.h", "qconfig-dist.h", "qconfig-large.h", "qconfig-medium.h", "qconfig-minimal.h", "qconfig-small.h", "qfeatures.h", "qatomic_arch.h", "qatomic_windowsce.h", "qt_windows.h", "qatomic_macosx.h" );
my @ignore_for_qt_module_check = ( "$modules{QtCore}/arch", "$modules{QtCore}/global", "$modules{QtSql}/drivers", "$modules{QtTest}", "$modules{QtDesigner}", "$modules{QtUiTools}", "$modules{QtDBus}", "$modules{phonon}" );
my %colliding_headers = ();
-my %inject_headers = ( "$basedir/src/corelib/global" => ( "qconfig.h" ) );
+my %inject_headers = ( "$basedir/src/corelib/global" => ( "*qconfig.h" ) );
foreach (@modules_to_sync) {
#iteration info
@@ -804,6 +804,7 @@ foreach (@modules_to_sync) {
push @headers, $inject_headers{$subdir} if (defined $inject_headers{$subdir});
foreach (@headers) {
my $header = "$_";
+ my $shadow = ($header =~ s/^\*//);
$header = 0 if("$header" =~ /^ui_.*.h/);
foreach (@ignore_headers) {
$header = 0 if("$header" eq "$_");
@@ -821,6 +822,7 @@ foreach (@modules_to_sync) {
}
my $iheader = $subdir . "/" . $header;
+ $iheader =~ s/^\Q$basedir\E/$out_basedir/ if ($shadow);
my @classes = $public_header ? classNames($iheader) : ();
if($showonly) {
print "$header [$lib]\n";