1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

build: added autoproto stub

This commit is contained in:
Andrew Tridgell 2010-02-23 08:56:35 +11:00
parent d0c19bb35e
commit 73634d6ff3
2 changed files with 12 additions and 2 deletions

View File

@ -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;

View 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 = ''