Teach syncqt to handle multiple %moduleheaders directories
Each directory is separated by a ';'. The syntax was chosen over the regular perl [] syntax as ';' was used already in other places. Change-Id: I7a07a1facb7c08d7a9de6ec45ad57f6057cb0150 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
parent
9f1aa866bd
commit
17eef6a4c4
11
bin/syncqt
11
bin/syncqt
@ -961,8 +961,14 @@ foreach my $lib (@modules_to_sync) {
|
|||||||
|
|
||||||
#create the new ones
|
#create the new ones
|
||||||
foreach my $current_dir (split(/;/, $dir)) {
|
foreach my $current_dir (split(/;/, $dir)) {
|
||||||
my $headers_dir = $current_dir;
|
my @headers_paths = split(/;/, $pathtoheaders);
|
||||||
$headers_dir .= "/$pathtoheaders" if ($pathtoheaders);
|
if (@headers_paths) {
|
||||||
|
@headers_paths = map { "$current_dir/$_" } @headers_paths;
|
||||||
|
} else {
|
||||||
|
push @headers_paths, $current_dir;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach my $headers_dir (@headers_paths) {
|
||||||
#calc subdirs
|
#calc subdirs
|
||||||
my @subdirs = ($headers_dir);
|
my @subdirs = ($headers_dir);
|
||||||
foreach my $subdir (@subdirs) {
|
foreach my $subdir (@subdirs) {
|
||||||
@ -1121,6 +1127,7 @@ foreach my $lib (@modules_to_sync) {
|
|||||||
print " }\n" if ($header_dirname && $verbose_level > 0 && $verbose_level < 3);
|
print " }\n" if ($header_dirname && $verbose_level > 0 && $verbose_level < 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# close the master include:
|
# close the master include:
|
||||||
$master_contents .= "#endif\n";
|
$master_contents .= "#endif\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user