5b2ba28793de4eefee990636b3932187e56f2bb1
[gd/samba-autobuild/.git] / source4 / kdc / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_MODULE('service_kdc',
4         source='kdc.c kpasswdd.c proxy.c',
5         subsystem='service',
6         init_function='server_service_kdc_init',
7         deps='kdc HDB_SAMBA4 WDC_SAMBA4 samba-hostconfig LIBTSOCKET LIBSAMBA_TSOCKET com_err samba_server_gensec',
8         internal_module=False,
9         )
10
11
12 bld.SAMBA_LIBRARY('HDB_SAMBA4',
13                   source='hdb-samba4.c hdb-samba4-plugin.c',
14                   deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue samba-hostconfig com_err',
15                   includes='../heimdal/kdc',
16                   private_library=True
17                   )
18
19 # A plugin for Heimdal's kadmin for users who need to operate that tool
20 bld.SAMBA_LIBRARY('HDB_SAMBA4_PLUGIN',
21                   source='hdb-samba4-plugin.c',
22                   deps='hdb HDB_SAMBA4 samba-util samba-hostconfig ',
23                   includes='../heimdal/kdc',
24                   link_name='modules/hdb/hdb_samba4.so',
25                   realname='hdb_samba4.so',
26                   install_path='${MODULESDIR}/hdb',
27                   enabled = (bld.CONFIG_SET("USING_SYSTEM_KRB5") and bld.CONFIG_SET("USING_SYSTEM_HDB"))
28                   )
29
30 bld.SAMBA_SUBSYSTEM('WDC_SAMBA4',
31         source='wdc-samba4.c',
32         includes='../heimdal/kdc',
33         deps='ldb auth4_sam auth_sam_reply samba-credentials hdb PAC_GLUE samba-hostconfig com_err'
34         )
35
36
37 bld.SAMBA_SUBSYSTEM('PAC_GLUE',
38         source='pac-glue.c',
39         includes='../heimdal/kdc',
40         deps='ldb auth4_sam auth_sam_reply samba-credentials hdb samba-hostconfig com_err'
41         )
42
43 bld.SAMBA_LIBRARY('pac',
44         source=[],
45         deps='PAC_GLUE',
46         private_library=True,
47         grouping_library=True)
48
49
50 bld.SAMBA_LIBRARY('db-glue',
51         source='db-glue.c',
52         deps='ldb auth4_sam auth_sam_reply samba-credentials hdb samba-hostconfig com_err kdc-policy',
53         private_library=True,
54         includes='../heimdal/kdc',
55         )
56
57 bld.SAMBA_LIBRARY('kdc-policy',
58         source='policy.c',
59         deps='samba-hostconfig authkrb5',
60         private_library=True,
61         autoproto = 'kdc-policy-proto.h'
62         )
63
64
65 bld.SAMBA_SUBSYSTEM('MIT_SAMBA',
66         source='mit_samba.c',
67         deps='ldb auth4_sam auth_sam_reply samba-credentials hdb db-glue PAC_GLUE samba-hostconfig com_err'
68         )
69
70
71 bld.SAMBA_LIBRARY('mit-samba',
72         source='',
73         deps='MIT_SAMBA',
74         external_library=True,
75         realname='mit_samba.so'
76         )
77