summaryrefslogtreecommitdiffstats
path: root/bin/syncqt
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2012-12-03 20:35:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-04 13:57:51 +0100
commit24f623bedac2009d6dd9034282053b87c94b0e21 (patch)
treeb3cbf0a55131c507f7ccc4f0d394f1faae9250fc /bin/syncqt
parent2274bef6b27a57deb1edd9fd2aee94d0d928c9f5 (diff)
support flagging all headers from a particular source directory as privates
Change-Id: Ia893abc95b358d8a8ffd690563f2f02bc20fd98d Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'bin/syncqt')
-rwxr-xr-xbin/syncqt6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/syncqt b/bin/syncqt
index 53d07fc826..ab8a48f7a9 100755
--- a/bin/syncqt
+++ b/bin/syncqt
@@ -872,6 +872,8 @@ foreach my $lib (@modules_to_sync) {
#create the new ones
foreach my $current_dir (@dirs) {
+ my $thisprivate = 0;
+ ($current_dir =~ s/^\^//) and $thisprivate = 1;
my @headers_paths = split(/;/, $pathtoheaders);
if (@headers_paths) {
@headers_paths = map { "$current_dir/$_" } @headers_paths;
@@ -907,7 +909,7 @@ foreach my $lib (@modules_to_sync) {
if(isQpaHeader($public_header)) {
$public_header = 0;
$qpa_header = 1;
- } elsif($allheadersprivate || $public_header =~ /_p.h$/ || $public_header =~ /_pch.h$/) {
+ } elsif($allheadersprivate || $thisprivate || $public_header =~ /_p.h$/ || $public_header =~ /_pch.h$/) {
$public_header = 0;
} else {
foreach (@ignore_for_master_contents) {
@@ -1146,7 +1148,7 @@ unless($showonly || !$create_uic_class_map) {
if($check_includes) {
for my $lib (keys(%modules)) {
#calc subdirs
- my @subdirs = listSubdirs(split(/;/, $modules{$lib}));
+ my @subdirs = listSubdirs(map { s/^\^//; $_ } split(/;/, $modules{$lib}));
foreach my $subdir (@subdirs) {
my @headers = findFiles($subdir, "^[-a-z0-9_]*\\.h\$" , 0);