blob: 9baba695f42323ac8ffb77833581c0373715b446 (
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
|
# 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;
$data->{TYPE} = "SUBSYSTEM";
%{$SMB_BUILD_CTX->{INPUT}{$name}} = %{$data};
}
sub Module($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
$data->{TYPE} = "MODULE";
%{$SMB_BUILD_CTX->{INPUT}{$name}} = %{$data};
}
sub ExternalLibrary($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
$data->{TYPE} = "EXT_LIB";
%{$SMB_BUILD_CTX->{INPUT}{$name}} = %{$data};
}
sub Library($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
$data->{TYPE} = "LIBRARY";
%{$SMB_BUILD_CTX->{INPUT}{$name}} = %{$data};
}
sub Binary($$)
{
my $name = shift;
my $data = shift;
$data->{NAME} = $name;
$data->{TYPE} = "BINARY";
%{$SMB_BUILD_CTX->{INPUT}{$name}} = %{$data};
}
sub Disable($)
{
$SMB_BUILD_CTX->{INPUT}{shift}{ENABLE} = "NO";
}
1;
|