winemaker: Ignore files not found by the search function.
This commit is contained in:
parent
61622fe8d1
commit
f4679761b7
|
@ -782,6 +782,7 @@ sub source_scan_project_file($$$)
|
||||||
} elsif (/^SOURCE=(.*)$/) {
|
} elsif (/^SOURCE=(.*)$/) {
|
||||||
my @components=split /[\/\\]+/, $1;
|
my @components=split /[\/\\]+/, $1;
|
||||||
$sfilet=search_from($path, \@components);
|
$sfilet=search_from($path, \@components);
|
||||||
|
if (!defined $sfilet) { next; }
|
||||||
if ($sfilet =~ /\.c$/i and $sfilet !~ /\.(dbg|spec)\.c$/) {
|
if ($sfilet =~ /\.c$/i and $sfilet !~ /\.(dbg|spec)\.c$/) {
|
||||||
push @sources_c,$sfilet;
|
push @sources_c,$sfilet;
|
||||||
} elsif ($sfilet =~ /\.(cpp|cxx)$/i) {
|
} elsif ($sfilet =~ /\.(cpp|cxx)$/i) {
|
||||||
|
|
Loading…
Reference in New Issue