From 19877a05078d76e2de33bb0072a86cf08335787e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 15 Aug 2016 11:32:06 +0200 Subject: [PATCH] automatically exclude generated headers from syncqt checks Change-Id: I349a132745165f8873eda351e86bf15c90156aaf Reviewed-by: Lars Knoll --- bin/syncqt.pl | 4 ++++ sync.profile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/syncqt.pl b/bin/syncqt.pl index 633068287ee..74107629850 100755 --- a/bin/syncqt.pl +++ b/bin/syncqt.pl @@ -879,6 +879,10 @@ loadSyncProfile(\$basedir, \$out_basedir); @modules_to_sync = keys(%modules) if($#modules_to_sync == -1); +for my $p (keys %inject_headers) { + push @ignore_for_include_check, @{$inject_headers{$p}}; +} + my %allmoduleheadersprivate = map { $_ => 1 } @allmoduleheadersprivate; %ignore_for_include_check = map { $_ => 1 } @ignore_for_include_check; %ignore_for_qt_begin_namespace_check = map { $_ => 1 } @ignore_for_qt_begin_namespace_check; diff --git a/sync.profile b/sync.profile index 1d1c08fc0f0..276cbeafe17 100644 --- a/sync.profile +++ b/sync.profile @@ -64,7 +64,7 @@ my @internal_zlib_headers = ( "crc32.h", "deflate.h", "gzguts.h", "inffast.h", " my @zlib_headers = ( "zconf.h", "zlib.h" ); @ignore_headers = ( @internal_zlib_headers ); @ignore_for_include_check = ( "qsystemdetection.h", "qcompilerdetection.h", "qprocessordetection.h", @zlib_headers, @angle_headers); -@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", @zlib_headers, @angle_headers); +@ignore_for_qt_begin_namespace_check = ( "qconfig-dist.h", "qconfig-large.h", "qconfig-medium.h", "qconfig-minimal.h", "qconfig-small.h", "qatomic_arch.h", "qatomic_windowsce.h", "qt_windows.h", "qatomic_macosx.h", @zlib_headers, @angle_headers); %inject_headers = ( "$basedir/src/corelib/global" => [ "qconfig.h", "qfeatures.h" ] ); # Module dependencies. # Every module that is required to build this module should have one entry.