summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/output.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-06-19 23:05:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:18:33 -0500
commit18a1d6862f8f8f52cbd4bd16756ab5ebb81503e7 (patch)
tree2bd15d8cbcf87ae041de9e3c66c4d6afcd4e5f99 /source4/build/smb_build/output.pm
parentf3661e2062e6d9757805e01c24c386c571fef02b (diff)
downloadsamba-18a1d6862f8f8f52cbd4bd16756ab5ebb81503e7.tar.gz
samba-18a1d6862f8f8f52cbd4bd16756ab5ebb81503e7.tar.bz2
samba-18a1d6862f8f8f52cbd4bd16756ab5ebb81503e7.zip
r7766: Treat NOPROTO as boolean.
Don't consider ALL_OBJS as a standard subsystem. (This used to be commit 6b9a12249f152e9c4635d4f6c7f3a1b885c78ec6)
Diffstat (limited to 'source4/build/smb_build/output.pm')
-rw-r--r--source4/build/smb_build/output.pm29
1 files changed, 20 insertions, 9 deletions
diff --git a/source4/build/smb_build/output.pm b/source4/build/smb_build/output.pm
index f156f7945b..b863d7e8dc 100644
--- a/source4/build/smb_build/output.pm
+++ b/source4/build/smb_build/output.pm
@@ -66,15 +66,23 @@ sub create_output($)
my $depend = shift;
my $part;
- $depend->{PROTO}{OUTPUT_TYPE} = "OBJLIST";
- $depend->{PROTO}{TYPE} = "PROTO";
- $depend->{PROTO}{NAME} = "PROTO";
-
- $depend->{ALL_OBJS}{OUTPUT_TYPE} = "OBJLIST";
- $depend->{ALL_OBJS}{TYPE} = "";
- $depend->{ALL_OBJS}{NAME} = "ALL_OBJS";
+ $depend->{PROTO} = {
+ OUTPUT_TYPE => "OBJLIST",
+ TYPE => "PROTO",
+ NAME => "PROTO",
+ OBJ_LIST => []
+ };
+
+ $depend->{ALL_OBJS} = {
+ OUTPUT_TYPE => "OBJLIST",
+ TYPE => "",
+ NAME => "ALL_OBJS",
+ OBJ_LIST => []
+ };
foreach $part (values %{$depend}) {
+ next if $part->{NAME} eq "PROTO";
+ next if $part->{NAME} eq "ALL_OBJS";
next if not defined($part->{OUTPUT_TYPE});
generate_binary($part) if $part->{OUTPUT_TYPE} eq "BINARY";
@@ -87,8 +95,11 @@ sub create_output($)
push(@{$part->{OBJ_LIST}}, @{$part->{ADD_OBJ_FILES}}) if defined($part->{ADD_OBJ_FILES});
push(@{$part->{OBJ_LIST}}, @{$part->{OBJ_FILES}}) if defined($part->{OBJ_FILES});
- push(@{$depend->{ALL_OBJS}{OBJ_LIST}}, @{$part->{OBJ_LIST}}) if (defined(@{$part->{OBJ_LIST}}));
- push(@{$depend->{PROTO}{OBJ_LIST}}, @{$part->{OBJ_LIST}}) if ((not defined ($part->{NOPROTO}) or $part->{NOPROTO} eq "NO") and defined(@{$part->{OBJ_LIST}}));
+ push(@{$depend->{ALL_OBJS}->{OBJ_LIST}}, @{$part->{OBJ_LIST}}) if (defined(@{$part->{OBJ_LIST}}));
+
+ if ((not defined ($part->{NOPROTO})) or ($part->{NOPROTO} eq "NO")) {
+ push(@{$depend->{PROTO}->{OBJ_LIST}}, @{$part->{OBJ_LIST}}) if (defined(@{$part->{OBJ_LIST}}));
+ }
}
foreach $part (values %{$depend}) {