diff -r 7c4a911dc066 -r 541af5ee3ed9 sbsv1/abld/bldmake/linkdeps.pl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sbsv1/abld/bldmake/linkdeps.pl Wed Aug 18 17:23:33 2010 +0300 @@ -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 ($_ =~ /