From 73634d6ff337f3a23bb950a430569f5b3946ed9a Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 23 Feb 2010 08:56:35 +1100 Subject: build: added autoproto stub --- buildtools/mktowscript/mktowscript.pl | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'buildtools/mktowscript') 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; -- cgit