vfstest: Convert cmd_lstat to synthetic_smb_fname
[Samba/vl.git] / source3 / auth / wscript_build
blobe518de98fdac95a85dbe3853706a84fbf2698401
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_UNIX_SRC = 'auth_unix.c'
7 AUTH_WINBIND_SRC = 'auth_winbind.c'
8 AUTH_WBC_SRC = 'auth_wbc.c'
9 AUTH_SCRIPT_SRC = 'auth_script.c'
11 AUTH_SRC = '''auth.c
12 user_krb5.c
13 auth_ntlmssp.c auth_generic.c'''
15 bld.SAMBA3_SUBSYSTEM('TOKEN_UTIL',
16 source='token_util.c',
17 deps='samba-util pdb',
18 vars=locals())
20 bld.SAMBA3_SUBSYSTEM('USER_UTIL',
21 source='user_util.c',
22 deps='TOKEN_UTIL')
24 bld.SAMBA3_SUBSYSTEM('AUTH_COMMON',
25 source='''auth_util.c
26 check_samsec.c
27 server_info.c
28 server_info_sam.c
29 user_info.c''',
30 deps='TOKEN_UTIL DCUTIL USER_UTIL',
31 vars=locals())
33 bld.SAMBA3_LIBRARY('auth',
34 source=AUTH_SRC,
35 deps='''PLAINTEXT_AUTH SLCACHE DCUTIL TOKEN_UTIL AUTH_COMMON libcli_netlogon3 samba-hostconfig''',
36 private_library=True)
38 bld.SAMBA3_MODULE('auth_sam',
39 subsystem='auth',
40 source=AUTH_SAM_SRC,
41 deps='samba-util',
42 init_function='',
43 internal_module=True)
45 bld.SAMBA3_MODULE('auth_unix',
46 subsystem='auth',
47 source=AUTH_UNIX_SRC,
48 deps='samba-util',
49 init_function='',
50 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_unix'),
51 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_unix'))
53 bld.SAMBA3_MODULE('auth_winbind',
54 subsystem='auth',
55 source=AUTH_WINBIND_SRC,
56 deps='samba-util',
57 init_function='',
58 internal_module=True)
60 bld.SAMBA3_MODULE('auth_wbc',
61 subsystem='auth',
62 source=AUTH_WBC_SRC,
63 deps='samba-util',
64 init_function='',
65 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_wbc'),
66 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_wbc'))
68 bld.SAMBA3_MODULE('auth_domain',
69 subsystem='auth',
70 source=AUTH_DOMAIN_SRC,
71 deps='RPC_CLIENT_SCHANNEL trusts_util',
72 init_function='',
73 internal_module=True)
75 bld.SAMBA3_MODULE('auth_builtin',
76 subsystem='auth',
77 source=AUTH_BUILTIN_SRC,
78 deps='samba-util',
79 init_function='',
80 internal_module=True)
82 bld.SAMBA3_MODULE('auth_script',
83 subsystem='auth',
84 source=AUTH_SCRIPT_SRC,
85 init_function='',
86 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_script'),
87 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_script'))
89 bld.SAMBA3_MODULE('auth_samba4',
90 subsystem='auth',
91 source='auth_samba4.c',
92 init_function='',
93 deps='auth4 samba_server_gensec gensec',
94 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
95 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED())