blob: 6bedf4f04a8859581370e62ddfb40a45ab260052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Subs for build system stuff without the .mk files
# Copyright (C) 2004 Jelmer Vernooij <jelmer@samba.org>
use strict;
our $SMB_BUILD_CTX;
sub Subsystem($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
%{$SMB_BUILD_CTX->{INPUT}{SUBSYSTEM}{$name}} = %{$data};
}
sub Module($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
%{$SMB_BUILD_CTX->{INPUT}{MODULES}{$name}} = %{$data};
}
sub ExternalLibrary($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
%{$SMB_BUILD_CTX->{INPUT}{EXT_LIBS}{$name}} = %{$data};
}
sub Library($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
%{$SMB_BUILD_CTX->{INPUT}{LIBRARIES}{$name}} = %{$data};
}
sub Binary($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
%{$SMB_BUILD_CTX->{INPUT}{BINARIES}{$name}} = %{$data};
}
sub DisableModule($)
{
$SMB_BUILD_CTX->{INPUT}{MODULES}{shift}{ENABLE} = "NO";
}
sub DisableBinary($)
{
$SMB_BUILD_CTX->{INPUT}{BINARIES}{shift}{ENABLE} = "NO";
}
sub DisableLibrary($)
{
$SMB_BUILD_CTX->{INPUT}{LIBRARIES}{shift}{ENABLE} = "NO";
}
1;
|