19 |
|
use Utilities::AddDir; |
20 |
|
use ToolBox; |
21 |
|
|
22 |
< |
adddir($archdir); |
22 |
> |
AddDir::adddir($archdir); |
23 |
|
initialiseclient($clientfile) or return; # get out if it already exists |
24 |
|
$toolbox=ToolBox->new(); |
25 |
|
open ( CLIENT, ">$ENV{LOCALTOP}/$clientfile" ) || |
26 |
|
die "clientfile: Cannot open clientsettings file " |
27 |
|
."$clientfile $!\n"; |
28 |
+ |
open ( CLIENT2, ">$ENV{LOCALTOP}/".$clientfile."_reqs" ) || |
29 |
+ |
die "clientfile: Cannot open clientsettings file " |
30 |
+ |
."$clientfile $!\n"; |
31 |
|
open (INSTALLLOG, ">$archdir/installation_log") |
32 |
|
|| die "clientfile: Cannot open log file $!\n"; |
33 |
|
print CLIENT "# Machine Generated File - do not edit\n"; |
34 |
|
_ParseProjectReqs($projectfile); |
35 |
|
close INSTALLLOG; |
36 |
|
close CLIENT; |
37 |
+ |
close CLIENT2; |
38 |
|
} |
39 |
|
|
40 |
|
sub _ParseProjectReqs($reqfile) { |
121 |
|
'System' => \&system_body, |
122 |
|
'Splice' => 'none', |
123 |
|
'Splice_starttag' => \&splice_start, |
120 |
– |
'INCLUDE' => 'none' , |
121 |
– |
'INCLUDE_StartTag' => \&_dirchecktest , |
122 |
– |
'LIBDIR_StartTag' => \&_dirchecktest , |
123 |
– |
'LIBDIR' => 'none', |
124 |
|
'Client' => 'none', |
125 |
|
'LIB' => 'none', |
126 |
|
'LIB_StartTag' => \&lib_start, |
129 |
|
'Architecture' => 'none', |
130 |
|
'Function' => 'none', |
131 |
|
'Function_StartTag' => \&Function_start, |
132 |
< |
'Function_EndTag' => \&Function_end |
132 |
> |
'Function_EndTag' => \&Function_end, |
133 |
> |
'External' => 'none', |
134 |
> |
'External_StartTag' => \&External_client, |
135 |
|
}; |
136 |
|
# 'INCLUDE_StartTag' => \&INCLUDE_start , |
137 |
|
|
147 |
|
# multiple defaults can be specified > colon seperated |
148 |
|
# |
149 |
|
|
150 |
+ |
sub External_client { |
151 |
+ |
my $name=shift; |
152 |
+ |
my @vars=@_; |
153 |
+ |
my $hashref; |
154 |
+ |
|
155 |
+ |
$hashref=$toolswitch->SetupValueHash( \@vars ); |
156 |
+ |
$toolswitch->checkparam( $hashref, $name, 'ref' ); |
157 |
+ |
print CLIENT2 <<ENDTEXT; |
158 |
+ |
ifdef $toolname |
159 |
+ |
$$hashref{ref}=true\n"; |
160 |
+ |
endif |
161 |
+ |
ENDTEXT |
162 |
+ |
} |
163 |
+ |
|
164 |
|
sub Arch_Start { |
165 |
|
my $name=shift; |
166 |
|
my @vars=@_; |