nbt: trim down header dependencies of nbt.idl.
[Samba/id10ts.git] / source3 / auth / wscript_build
blob9fdc27d61979bd19fb4e81587e198b4cfbfa2063
1 #!/usr/bin/env python
3 AUTH_BUILTIN_SRC = 'auth_builtin.c'
4 AUTH_DOMAIN_SRC = 'auth_domain.c'
5 AUTH_SAM_SRC = 'auth_sam.c'
6 AUTH_SERVER_SRC = 'auth_server.c'
7 AUTH_UNIX_SRC = 'auth_unix.c'
8 AUTH_WINBIND_SRC = 'auth_winbind.c'
9 AUTH_WBC_SRC = 'auth_wbc.c'
10 AUTH_SCRIPT_SRC = 'auth_script.c'
11 AUTH_NETLOGOND_SRC = 'auth_netlogond.c'
13 AUTH_SRC = '''auth.c
14 user_krb5.c
15 auth_compat.c auth_ntlmssp.c'''
17 bld.SAMBA3_SUBSYSTEM('TOKEN_UTIL',
18 source='token_util.c',
19 deps='samba-util',
20 vars=locals())
22 bld.SAMBA3_SUBSYSTEM('USER_UTIL',
23 source='user_util.c',
24 deps='TOKEN_UTIL')
26 bld.SAMBA3_SUBSYSTEM('AUTH_COMMON',
27 source='''auth_util.c
28 check_samsec.c
29 server_info.c
30 server_info_sam.c
31 user_info.c''',
32 deps='TOKEN_UTIL DCUTIL USER_UTIL',
33 vars=locals())
35 bld.SAMBA3_LIBRARY('auth',
36 source=AUTH_SRC,
37 deps='''PLAINTEXT_AUTH SLCACHE DCUTIL TOKEN_UTIL AUTH_COMMON libcli_netlogon3 samba-hostconfig''',
38 private_library=True)
40 bld.SAMBA3_MODULE('auth_sam',
41 subsystem='auth',
42 source=AUTH_SAM_SRC,
43 deps='samba-util',
44 init_function='',
45 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_sam'),
46 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_sam'))
48 bld.SAMBA3_MODULE('auth_unix',
49 subsystem='auth',
50 source=AUTH_UNIX_SRC,
51 deps='samba-util',
52 init_function='',
53 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_unix'),
54 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_unix'))
56 bld.SAMBA3_MODULE('auth_winbind',
57 subsystem='auth',
58 source=AUTH_WINBIND_SRC,
59 deps='samba-util',
60 init_function='',
61 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_winbind'),
62 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_winbind'))
64 bld.SAMBA3_MODULE('auth_wbc',
65 subsystem='auth',
66 source=AUTH_WBC_SRC,
67 deps='samba-util',
68 init_function='',
69 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_wbc'),
70 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_wbc'))
72 bld.SAMBA3_MODULE('auth_server',
73 subsystem='auth',
74 source=AUTH_SERVER_SRC,
75 deps='samba-util',
76 init_function='',
77 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_server'),
78 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_server'))
80 bld.SAMBA3_MODULE('auth_domain',
81 subsystem='auth',
82 source=AUTH_DOMAIN_SRC,
83 deps='RPC_CLIENT_SCHANNEL trusts_util',
84 init_function='',
85 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_domain'),
86 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_domain'))
88 bld.SAMBA3_MODULE('auth_builtin',
89 subsystem='auth',
90 source=AUTH_BUILTIN_SRC,
91 deps='samba-util',
92 init_function='',
93 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_builtin'),
94 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_builtin'))
96 bld.SAMBA3_MODULE('auth_netlogond',
97 subsystem='auth',
98 source=AUTH_NETLOGOND_SRC,
99 init_function='',
100 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_netlogond'),
101 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_netlogond'))
103 bld.SAMBA3_MODULE('auth_script',
104 subsystem='auth',
105 source=AUTH_SCRIPT_SRC,
106 init_function='',
107 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_script'),
108 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_script'))
110 bld.SAMBA3_MODULE('auth_samba4',
111 subsystem='auth',
112 source='auth_samba4.c',
113 init_function='',
114 deps='auth4 samba_server_gensec gensec',
115 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4'),
116 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4'))