diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-24 15:47:59 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:04:18 -0500 |
commit | 69b51f702af1ded825d5c17bdb97014cac12e752 (patch) | |
tree | 2aaae15c6b5cf81298442501c2f7c3cfaa761221 /source4/build/smb_build | |
parent | 758946429e8cef84ebc00e02f6fa0fb93a642aa8 (diff) | |
download | samba-69b51f702af1ded825d5c17bdb97014cac12e752.tar.gz samba-69b51f702af1ded825d5c17bdb97014cac12e752.tar.bz2 samba-69b51f702af1ded825d5c17bdb97014cac12e752.zip |
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
Diffstat (limited to 'source4/build/smb_build')
-rw-r--r-- | source4/build/smb_build/config_mk.pm | 11 | ||||
-rw-r--r-- | source4/build/smb_build/input.pm | 10 |
2 files changed, 13 insertions, 8 deletions
diff --git a/source4/build/smb_build/config_mk.pm b/source4/build/smb_build/config_mk.pm index fa948f4bd9..79107c1c9b 100644 --- a/source4/build/smb_build/config_mk.pm +++ b/source4/build/smb_build/config_mk.pm @@ -22,7 +22,8 @@ my $section_types = { "SUBSYSTEM" => { "OBJ_FILES" => "list", - "REQUIRED_SUBSYSTEMS" => "list", + "PRIVATE_DEPENDENCIES" => "list", + "PUBLIC_DEPENDENCIES" => "list", "ENABLE" => "bool", @@ -42,7 +43,8 @@ my $section_types = { "INIT_FUNCTION" => "string", "OBJ_FILES" => "list", - "REQUIRED_SUBSYSTEMS" => "list", + "PUBLIC_DEPENDENCIES" => "list", + "PRIVATE_DEPENDENCIES" => "list", "ALIASES" => "list", @@ -58,7 +60,7 @@ my $section_types = { "BINARY" => { "OBJ_FILES" => "list", - "REQUIRED_SUBSYSTEMS" => "list", + "PRIVATE_DEPENDENCIES" => "list", "ENABLE" => "bool", @@ -82,7 +84,8 @@ my $section_types = { "DESCRIPTION" => "string", - "REQUIRED_SUBSYSTEMS" => "list", + "PRIVATE_DEPENDENCIES" => "list", + "PUBLIC_DEPENDENCIES" => "list", "ENABLE" => "bool", diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm index 704dafa371..6d9b3f5aac 100644 --- a/source4/build/smb_build/input.pm +++ b/source4/build/smb_build/input.pm @@ -74,10 +74,10 @@ sub check_module($$$) if ($mod->{OUTPUT_TYPE} eq "SHARED_LIBRARY") { $mod->{INSTALLDIR} = "MODULESDIR/$mod->{SUBSYSTEM}"; - push (@{$mod->{REQUIRED_SUBSYSTEMS}}, $mod->{SUBSYSTEM}) unless + push (@{$mod->{PRIVATE_DEPENDENCIES}}, $mod->{SUBSYSTEM}) unless $INPUT->{$mod->{SUBSYSTEM}}->{TYPE} eq "BINARY"; } else { - push (@{$INPUT->{$mod->{SUBSYSTEM}}{REQUIRED_SUBSYSTEMS}}, $mod->{NAME}); + push (@{$INPUT->{$mod->{SUBSYSTEM}}{PRIVATE_DEPENDENCIES}}, $mod->{NAME}); push (@{$INPUT->{$mod->{SUBSYSTEM}}{INIT_FUNCTIONS}}, $mod->{INIT_FUNCTION}) if defined($mod->{INIT_FUNCTION}); } } @@ -197,12 +197,14 @@ sub check($$$$$) # Generate list of dependencies $part->{DEPENDENCIES} = []; - foreach my $key (@{$part->{REQUIRED_SUBSYSTEMS}}) { + foreach my $key (@{$part->{PUBLIC_DEPENDENCIES}}, + @{$part->{PRIVATE_DEPENDENCIES}}) { die("$part->{NAME} has undefined dependency $key\n") if not defined($depend{$key}); push (@{$part->{DEPENDENCIES}}, \$depend{$key}); } - delete ($part->{REQUIRED_SUBSYSTEMS}); + delete ($part->{PRIVATE_DEPENDENCIES}); + delete ($part->{PUBLIC_DEPENDENCIES}); } foreach my $part (values %depend) { |