summaryrefslogtreecommitdiff
path: root/buildtools
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-02-23 08:56:35 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:26:35 +1000
commit73634d6ff337f3a23bb950a430569f5b3946ed9a (patch)
tree0c6ebc17faa41320233cf25950d30b1c49be43d0 /buildtools
parentd0c19bb35e5069949ee1ddc72cdd8a8dfd58db4e (diff)
downloadsamba-73634d6ff337f3a23bb950a430569f5b3946ed9a.tar.gz
samba-73634d6ff337f3a23bb950a430569f5b3946ed9a.tar.bz2
samba-73634d6ff337f3a23bb950a430569f5b3946ed9a.zip
build: added autoproto stub
Diffstat (limited to 'buildtools')
-rwxr-xr-xbuildtools/mktowscript/mktowscript.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildtools/mktowscript/mktowscript.pl b/buildtools/mktowscript/mktowscript.pl
index d3dd67f4a5..2ebf2d92c2 100755
--- a/buildtools/mktowscript/mktowscript.pl
+++ b/buildtools/mktowscript/mktowscript.pl
@@ -150,6 +150,9 @@ sub read_config_mk($)
next;
}
+ if ($line =~ /\$\(eval.\$\(call.proto_header_template.*,(.*),.*/) {
+ $result->{$section}->{AUTOPROTO} = $1;
+ }
if ($line =~ /^\$\(eval/) {
# skip eval lines for now
next;
@@ -259,6 +262,11 @@ foreach my $s (sort {$result->{$a}->{SECNUMBER} <=> $result->{$b}->{SECNUMBER}}
$trailer .= sprintf(",\n\toutput_type='%s'", strlist($sec->{$k}));
next;
}
+ if ($k eq "AUTOPROTO") {
+ my $list = trim(find_files(strlist($sec->{$k})));
+ $trailer .= sprintf(",\n\tautoproto='%s'", $list);
+ next;
+ }
if ($k eq "$s" . "_OBJ_FILES") {
my $list = trim(strlist($sec->{$k}));
$list =~ s/\.o/.c/g;