First public contribution.
2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
3 @rem All rights reserved.
4 @rem This component and the accompanying materials are made available
5 @rem under the terms of the License "Eclipse Public License v1.0"
6 @rem which accompanies this distribution, and is available
7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 @rem Initial Contributors:
10 @rem Nokia Corporation - initial contribution.
23 #print "cwd: ",$cwd,"\n";
25 $cwd =~ /^(\w:)?([\\|\/]\S+[\\|\/])/isx;
28 #print "drive ",$drive,"\n";
29 #print "project root: ",$prjroot,"\n";
36 #print "CPP files:\n";
37 #foreach $entry (@cpps)
41 #print "MMP files:\n";
45 foreach $entry (@mmps)
48 $srclist=$sources{$entry};
51 ++$countz if (scalar(@$srclist)==0);
52 $countsrc += scalar(@$srclist);
53 foreach $src (@$srclist)
55 $uselist=$sourceusers{$src};
56 $sourceusers{$src}=$uselist." ".$entry;
57 # print "\t",$src,"\n";
60 $hashsize=scalar(%sources);
62 #print "Count=",$count,"\n";
63 #print "CountZ=",$countz,"\n";
64 #print "CountSrc=",$countsrc,"\n";
66 foreach $entry (@cpps)
68 $uses=$sourceusers{$entry};
69 print "File ",$entry," not referenced by any .MMP file\n" unless $uses;
75 foreach $entry (@mmps)
77 next if $mmpflags[$i++];
78 print "\n",$entry,".MMP does not appear in BLD.INF\n";
79 print "\t Source files:\n";
80 $srclist=$sources{$entry};
81 foreach $src (@$srclist)
101 next if (($entry eq ".") or ($entry eq ".."));
102 $fullentry=$dir.$entry;
109 push @cpps, uc($fullentry) if ($entry =~ /\S+\.cpp/isx);
110 if ($entry =~ /(\S+)\.mmp/isx)
113 parsemmp($fullentry,\%sources);
115 # print $fullentry,"\n";
126 # print "ParseMMP ",$mmpfile,"\n";
131 if (/^PROJECT\s+(\S+)/isx)
134 # print "Project ",$project,"\n";
136 elsif (/^SUBPROJECT\s+(\S+)/isx)
139 # print "Subproject ",$subproject,"\n";
141 elsif (/^source\s*(.+)/isx)
147 $list =~ /^(\S+)\s*(.*)/isx;
148 push @sources, "\\".$project."\\".$subproject."\\".uc($1);
150 # print "\t Source ",$1,"\n";
155 $mmpfile =~ /\S*\\(\S+)\.mmp/isx;
156 $mmpfileshort=uc($1);
157 $$array{$mmpfileshort}=\@sources;
163 open(BLDINF,"bld.inf");
169 $reachedmmps=1 if (/PRJ_MMPFILES|PRJ_TESTMMPFILES/isx);
174 # print "****************",$mmpfile,"\n";
179 $mmpflags[$i]=1 if ($mmp eq $mmpfile);