summaryrefslogtreecommitdiff
path: root/source3/auth/wscript_build
blob: 352ca1532ca1059d9e65198ab2bde5e2f665b2e3 (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#!/usr/bin/env python

AUTH_BUILTIN_SRC = 'auth_builtin.c'
AUTH_DOMAIN_SRC = 'auth_domain.c'
AUTH_SAM_SRC = 'auth_sam.c'
AUTH_SERVER_SRC = 'auth_server.c'
AUTH_UNIX_SRC = 'auth_unix.c'
AUTH_WINBIND_SRC = 'auth_winbind.c'
AUTH_WBC_SRC = 'auth_wbc.c'
AUTH_SCRIPT_SRC = 'auth_script.c'
AUTH_NETLOGOND_SRC = 'auth_netlogond.c'

AUTH_SRC = '''auth.c
           user_krb5.c
           auth_compat.c auth_ntlmssp.c'''

bld.SAMBA3_SUBSYSTEM('TOKEN_UTIL',
                    source='token_util.c',
                    deps='samba-util',
                    vars=locals())

bld.SAMBA3_SUBSYSTEM('USER_UTIL',
                     source='user_util.c',
                     deps='TOKEN_UTIL')

bld.SAMBA3_SUBSYSTEM('AUTH_COMMON',
                    source='''auth_util.c
			      check_samsec.c
			      server_info.c
			      server_info_sam.c
			      user_info.c''',
                     deps='TOKEN_UTIL DCUTIL USER_UTIL',
                    vars=locals())

bld.SAMBA3_LIBRARY('auth',
                    source=AUTH_SRC,
                    deps='''PLAINTEXT_AUTH SLCACHE DCUTIL TOKEN_UTIL AUTH_COMMON''',
                   allow_undefined_symbols=True,
                   private_library=True)

bld.SAMBA3_MODULE('auth_sam',
                 subsystem='auth',
                 source=AUTH_SAM_SRC,
                 deps='samba-util',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_sam'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_sam'))

bld.SAMBA3_MODULE('auth_unix',
                 subsystem='auth',
                 source=AUTH_UNIX_SRC,
                 deps='samba-util',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_unix'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_unix'))

bld.SAMBA3_MODULE('auth_winbind',
                 subsystem='auth',
                 source=AUTH_WINBIND_SRC,
                 deps='samba-util',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_winbind'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_winbind'))

bld.SAMBA3_MODULE('auth_wbc',
                 subsystem='auth',
                 source=AUTH_WBC_SRC,
                 deps='samba-util',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_wbc'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_wbc'))

bld.SAMBA3_MODULE('auth_server',
                 subsystem='auth',
                 source=AUTH_SERVER_SRC,
                 deps='samba-util',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_server'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_server'),
                  allow_undefined_symbols=True)

bld.SAMBA3_MODULE('auth_domain',
                 subsystem='auth',
                 source=AUTH_DOMAIN_SRC,
                 deps='RPC_CLIENT_SCHANNEL',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_domain'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_domain'))

bld.SAMBA3_MODULE('auth_builtin',
                 subsystem='auth',
                 source=AUTH_BUILTIN_SRC,
                 deps='samba-util',
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_builtin'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_builtin'))

bld.SAMBA3_MODULE('auth_netlogond',
                 subsystem='auth',
                 source=AUTH_NETLOGOND_SRC,
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_netlogond'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_netlogond'))

bld.SAMBA3_MODULE('auth_script',
                 subsystem='auth',
                 source=AUTH_SCRIPT_SRC,
                 init_function='',
                 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_script'),
                 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_script'))

bld.SAMBA3_MODULE('auth_samba4',
                  subsystem='auth',
                  source='auth_samba4.c',
                  init_function='',
                  deps='auth4',
                  allow_undefined_symbols=False,
                  internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4'),
                  enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4'))