2 |
|
# |
3 |
|
# Interface |
4 |
|
# --------- |
5 |
< |
# new() : A new BuildSetup |
5 |
> |
# new(toolbox) : A new BuildSetup |
6 |
|
# BuildSetup(directory,targets) : prepare the ground for a build and build |
7 |
|
# getclass(directory) : return (Class, ClassDir, BuildFileobject) |
8 |
|
# associated with directory |
20 |
|
my $class=shift; |
21 |
|
my $self={}; |
22 |
|
bless $self,$class; |
23 |
< |
$self->init(); |
23 |
> |
$self->{toolbox}=shift; |
24 |
> |
#$self->init(); |
25 |
|
return $self; |
26 |
|
} |
27 |
|
|
28 |
|
sub init { |
29 |
|
my $self=shift; |
30 |
< |
$self->{toolbox}=BuildSystem::ToolBox->new(); |
30 |
> |
$self->{toolbox}=BuildSystem::ToolBox->new($ENV{LOCALTOP}); |
31 |
|
} |
32 |
|
|
33 |
|
sub _generateexternals { |
124 |
|
elsif ( -e $ENV{RELEASETOP}."/".$projectfile ) { |
125 |
|
$ENV{projectfile}=$ENV{RELEASETOP}."/".$projectfile; |
126 |
|
} |
126 |
– |
else { |
127 |
– |
print "Warning : Unable to find $projectfile\n"; |
128 |
– |
} |
127 |
|
if ( $DefaultBuildFile eq "" ) { |
128 |
|
# Map Relevant makefile classmakefile directory |
129 |
|
my $classmakefile=$ENV{projconfigdir}."/".$Class."_makefile.mk"; |