diff options
author | Rohan McGovern <rohan.mcgovern@nokia.com> | 2010-08-05 06:04:56 (GMT) |
---|---|---|
committer | Toby Tomkins <toby.tomkins@nokia.com> | 2010-08-05 06:04:56 (GMT) |
commit | 29d77e6003d0e156e5979dc8eb72e7ed8eb51456 (patch) | |
tree | 8e9954b44c2b41b0ab1541c95c329b43eed62313 /bin | |
parent | 5749421fdaff0305d217712e3174c85a76b367c4 (diff) | |
download | Qt-29d77e6003d0e156e5979dc8eb72e7ed8eb51456.zip Qt-29d77e6003d0e156e5979dc8eb72e7ed8eb51456.tar.gz Qt-29d77e6003d0e156e5979dc8eb72e7ed8eb51456.tar.bz2 |
Fixed incorrect include/Qt/qconfig.h in binary packages.
When building from a source package, src/corelib/global/qconfig.h exists.
syncqt contained logic to force the creation of include/Qt/qconfig.h for
the case where it _doesn't_ exist.
This meant that running syncqt from a Qt source package resulted in
include/Qt/qconfig.h including qconfig.h twice.
Task: QTBUG-12637
Reviewed-by: Toby Tomkins
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/syncqt | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -691,7 +691,10 @@ 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; +# Force generation of forwarding header for qconfig.h if (and only if) we can't +# find the header by normal means. +%inject_headers = ( "$basedir/src/corelib/global" => ( "*qconfig.h" ) ) unless (-e "$basedir/src/corelib/global/qconfig.h"); foreach (@modules_to_sync) { #iteration info |