mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Remove legacy code for public prototype headers.
(This used to be commit b5695abdc6
)
This commit is contained in:
parent
f112578843
commit
5b0670ea53
@ -314,31 +314,10 @@ sub ProtoHeader($$)
|
||||
|
||||
my $target = "";
|
||||
|
||||
my $priv = undef;
|
||||
my $pub = undef;
|
||||
$target = "\$(addprefix $ctx->{BASEDIR}/, $ctx->{PRIVATE_PROTO_HEADER})";
|
||||
$self->output("PROTO_HEADERS += $target\n");
|
||||
|
||||
if (defined($ctx->{PRIVATE_PROTO_HEADER})) {
|
||||
$priv = "\$(addprefix $ctx->{BASEDIR}/, $ctx->{PRIVATE_PROTO_HEADER})";
|
||||
$target .= $priv;
|
||||
if (defined($ctx->{PUBLIC_PROTO_HEADER})) {
|
||||
$target.= " ";
|
||||
}
|
||||
$self->output("PROTO_HEADERS += $priv\n");
|
||||
} else {
|
||||
$ctx->{PRIVATE_PROTO_HEADER} = $ctx->{PUBLIC_PROTO_HEADER};
|
||||
$priv = "\$(addprefix $ctx->{BASEDIR}/, $ctx->{PRIVATE_PROTO_HEADER})";
|
||||
}
|
||||
|
||||
if (defined($ctx->{PUBLIC_PROTO_HEADER})) {
|
||||
$pub = "\$(addprefix $ctx->{BASEDIR}/, $ctx->{PUBLIC_PROTO_HEADER})";
|
||||
$target .= $pub;
|
||||
$self->output("PROTO_HEADERS += $pub\n");
|
||||
} else {
|
||||
$ctx->{PUBLIC_PROTO_HEADER} = $ctx->{PRIVATE_PROTO_HEADER};
|
||||
$pub = "\$(addprefix $ctx->{BASEDIR}/, $ctx->{PUBLIC_PROTO_HEADER})";
|
||||
}
|
||||
|
||||
$self->output("\$(call proto_header_template, $pub, $priv, \$($ctx->{NAME}_OBJ_LIST:.o=.c))\n");
|
||||
$self->output("\$(call proto_header_template, $target, \$($ctx->{NAME}_OBJ_LIST:.o=.c))\n");
|
||||
}
|
||||
|
||||
sub write($$)
|
||||
|
@ -116,11 +116,11 @@ $(1): $(2)
|
||||
endef
|
||||
|
||||
# Create a prototype header
|
||||
# Arguments: proto header, private header, c files
|
||||
# Arguments: header file, c files
|
||||
define proto_header_template
|
||||
$(1) $(2): $(3)
|
||||
$(1): $(2)
|
||||
@echo "Creating $@"
|
||||
@$(PERL) $(srcdir)/script/mkproto.pl --srcdir=$(srcdir) --builddir=$(builddir) --private=$(2) --public=$(1) $(3)
|
||||
@$(PERL) $(srcdir)/script/mkproto.pl --srcdir=$(srcdir) --builddir=$(builddir) --private=$(1)) $(2)
|
||||
endef
|
||||
|
||||
###############################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user