diff -r 22486c9c7b15 -r 378360dbbdba sbsv1/abld/bldmake/linkdeps.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv1/abld/bldmake/linkdeps.pl Wed Jun 30 11:35:58 2010 +0800 @@ -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 "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 ($_ =~ /