s3-pysmbd: Add hook for get_nt_acl()
[Samba.git] / source3 / auth / wscript_build
blob8a535cbcbf6157716594fe0c433340a289718a7c
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=bld.SAMBA3_IS_STATIC_MODULE('auth_sam'),
44 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_sam'))
46 bld.SAMBA3_MODULE('auth_unix',
47 subsystem='auth',
48 source=AUTH_UNIX_SRC,
49 deps='samba-util',
50 init_function='',
51 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_unix'),
52 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_unix'))
54 bld.SAMBA3_MODULE('auth_winbind',
55 subsystem='auth',
56 source=AUTH_WINBIND_SRC,
57 deps='samba-util',
58 init_function='',
59 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_winbind'),
60 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_winbind'))
62 bld.SAMBA3_MODULE('auth_wbc',
63 subsystem='auth',
64 source=AUTH_WBC_SRC,
65 deps='samba-util',
66 init_function='',
67 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_wbc'),
68 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_wbc'))
70 bld.SAMBA3_MODULE('auth_domain',
71 subsystem='auth',
72 source=AUTH_DOMAIN_SRC,
73 deps='RPC_CLIENT_SCHANNEL trusts_util',
74 init_function='',
75 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_domain'),
76 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_domain'))
78 bld.SAMBA3_MODULE('auth_builtin',
79 subsystem='auth',
80 source=AUTH_BUILTIN_SRC,
81 deps='samba-util',
82 init_function='',
83 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_builtin'),
84 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_builtin'))
86 bld.SAMBA3_MODULE('auth_script',
87 subsystem='auth',
88 source=AUTH_SCRIPT_SRC,
89 init_function='',
90 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_script'),
91 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_script'))
93 bld.SAMBA3_MODULE('auth_samba4',
94 subsystem='auth',
95 source='auth_samba4.c',
96 init_function='',
97 deps='auth4 samba_server_gensec gensec',
98 internal_module=bld.SAMBA3_IS_STATIC_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED(),
99 enabled=bld.SAMBA3_IS_ENABLED_MODULE('auth_samba4') and bld.AD_DC_BUILD_IS_ENABLED())