build: added autoproto stub
authorAndrew Tridgell <tridge@samba.org>
Mon, 22 Feb 2010 21:56:35 +0000 (08:56 +1100)
committerAndrew Tridgell <tridge@samba.org>
Tue, 6 Apr 2010 10:26:35 +0000 (20:26 +1000)
buildtools/mktowscript/mktowscript.pl
lib/replace/wafsamba.py

index d3dd67f4a54f53f0ea7a7906bd3710dd05019362..2ebf2d92c2a1c9d1fa48b88a184f6ca70438e35b 100755 (executable)
@@ -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;
index 7796dc25bfa69bae2b1f4b23d03f12203f8695d0..0077c7a2948640839c48cf158f1821f5a509cc78 100644 (file)
@@ -161,7 +161,8 @@ def SAMBA_LIBRARY(bld, libname, source_list,
                   public_deps='',
                   include_list='.',
                   vnum=None,
-                  cflags=None):
+                  cflags=None,
+                  autoproto=None):
     ilist = bld.SAMBA_LIBRARY_INCLUDE_LIST(deps) + bld.SUBDIR(bld.curdir, include_list)
     ilist = bld.NORMPATH(ilist)
     bld(
@@ -196,7 +197,8 @@ def SAMBA_BINARY(bld, binname, source_list,
                  modules=None,
                  installdir=None,
                  ldflags=None,
-                 cflags=None):
+                 cflags=None,
+                 autoproto=None):
     ilist = '. ' + os.environ.get('PWD') + '/bin/default ' + bld.SAMBA_LIBRARY_INCLUDE_LIST(deps) + ' ' + include_list
     ilist = bld.NORMPATH(ilist)
     ccflags = ''