summaryrefslogtreecommitdiff
path: root/source4/auth/wscript_build
blob: 5786fa5a11aef36e580b07f7649c74d47fd391c5 (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
#!/usr/bin/env python

bld.RECURSE('gensec')
bld.RECURSE('kerberos')
bld.RECURSE('ntlm')

bld.SAMBA_SUBSYSTEM('auth_session',
	source='session.c',
	autoproto='session_proto.h',
	public_deps='samba-credentials',
	public_headers='session.h',
	header_path='samba',
	deps='samdb auth4_sam'
	)

bld.SAMBA_LIBRARY('auth_unix_token',
                  source='unix_token.c',
                  autoproto='unix_token_proto.h',
                  public_deps='LIBWBCLIENT_OLD',
                  private_library=True,
                  )


bld.SAMBA_SUBSYSTEM('samba_server_gensec',
	source='samba_server_gensec.c',
	public_deps='samba-credentials gensec auth4'
	)


bld.SAMBA_SUBSYSTEM('auth_system_session',
	source='system_session.c',
	autoproto='system_session_proto.h',
	public_deps='samba-credentials',
	deps='auth_session',
	)


bld.SAMBA_SUBSYSTEM('auth4_sam',
	source='sam.c',
	autoproto='auth_sam.h',
	public_deps='samdb samba-security ldb tevent',
	deps=''
	)


for env in bld.gen_python_environments():
	pytalloc_util = bld.pyembed_libname('pytalloc-util')
	pyparam_util = bld.pyembed_libname('pyparam_util')
	pyldb_util = bld.pyembed_libname('pyldb-util')
	bld.SAMBA_PYTHON('pyauth',
		source='pyauth.c',
		public_deps='auth_system_session',
		deps='samdb %s %s %s pycredentials auth4' % (pytalloc_util, pyparam_util, pyldb_util),
		realname='samba/auth.so'
		)