35b723584ee9bf49503d704b3c254d716baed3bd
[kai/samba.git] / source4 / param / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_LIBRARY('libsamba-hostconfig',
4         source='loadparm.c generic.c util.c',
5         pc_files='samba-hostconfig.pc',
6         vnum='0.0.1',
7         deps='DYNCONFIG CHARSET',
8         public_deps='libsamba-util',
9         public_headers='param.h',
10         autoproto='param_proto.h',
11         )
12
13
14 bld.SAMBA_SUBSYSTEM('PROVISION',
15         source='provision.c pyparam.c',
16         deps='LIBPYTHON pyparam_util ldb PYTALLOC',
17         pyext=True,
18         )
19
20
21 bld.SAMBA_SUBSYSTEM('share',
22         source='share.c',
23         public_headers='share.h',
24         deps='libsamba-util'
25         )
26
27
28 bld.SAMBA_MODULE('share_classic',
29         source='share_classic.c',
30         subsystem='share',
31         init_function='share_classic_init',
32         deps='libsamba-util'
33         )
34
35
36 bld.SAMBA_MODULE('share_ldb',
37         source='share_ldb.c',
38         subsystem='share',
39         init_function='share_ldb_init',
40         deps='LDBSAMBA'
41         )
42
43
44 bld.SAMBA_SUBSYSTEM('SECRETS',
45         source='secrets.c',
46         deps='ldb TDB_WRAP UTIL_TDB NDR_SECURITY tevent LDBSAMBA'
47         )
48
49
50 bld.SAMBA_PYTHON('param',
51         source='pyparam.c',
52         deps='libsamba-hostconfig PYTALLOC',
53         realname='samba/param.so'
54         )
55
56
57 bld.SAMBA_SUBSYSTEM('pyparam_util',
58         source='pyparam_util.c',
59         deps='LIBPYTHON libsamba-hostconfig',
60         pyext=True,
61         )
62
63 bld.SAMBA_LIBRARY('shares',
64                   source=[],
65                   deps='share share_classic share_ldb',
66                   grouping_library=True,
67                   private_library=True)