diff -r 000000000000 -r 83f4b4db085c sbsv1_os/e32toolp/bldmake/linkdeps.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv1_os/e32toolp/bldmake/linkdeps.pl Tue Feb 02 01:39:43 2010 +0200 @@ -0,0 +1,210 @@ +# Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Nokia Corporation - initial contribution. +# +# Contributors: +# +# Description: +# Generate a link-dependency graph +# Given a baseline list of components, look through the BLDMAKE +# generated files to find the individual DLL and EXE makefiles. +# Scan those makefile to find out which .LIB files are generated, +# and which .LIB files are required, thereby deducing the +# component dependency graph. +# +# + +my @components; +my %component_releases; +my %components_by_lib; +my %libs_needed; +my %component_deps; +my $errors = 0; +my @platforms = ("WINS", "ARMI", "MAWD"); +my $makefile_count=0; + +while (<>) + { + s/\s*#.*$//; + if ($_ =~ /^$/) + { + next; + } + + if ($_ =~ /