98e838133e62df28a17eb09acb730c3a7dc8b6a4
[samba.git] / source4 / param / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA_GENERATOR('s3_param_h',
4                     source= 'loadparm.c ../script/mks3param.pl',
5                     target='s3_param.h',
6                     rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT}')
7
8 bld.SAMBA_LIBRARY('samba-hostconfig',
9         source='loadparm.c generic.c util.c',
10         pc_files='samba-hostconfig.pc',
11         vnum='0.0.1',
12         deps='DYNCONFIG',
13         public_deps='samba-util',
14         public_headers='param.h',
15         autoproto='param_proto.h',
16         )
17
18
19 bld.SAMBA_SUBSYSTEM('PROVISION',
20         source='provision.c pyparam.c',
21         deps='LIBPYTHON pyparam_util ldb pytalloc-util pyldb-util',
22         pyext=True,
23         )
24
25
26 bld.SAMBA_SUBSYSTEM('share',
27         source='share.c',
28         public_headers='share.h',
29         deps='samba-util'
30         )
31
32
33 bld.SAMBA_MODULE('share_classic',
34         source='share_classic.c',
35         subsystem='share',
36         init_function='share_classic_init',
37         deps='samba-util'
38         )
39
40
41 bld.SAMBA_MODULE('share_ldb',
42         source='share_ldb.c',
43         subsystem='share',
44         init_function='share_ldb_init',
45         deps='ldbsamba auth_system_session'
46         )
47
48
49 bld.SAMBA_SUBSYSTEM('SECRETS',
50         source='secrets.c',
51         deps='ldb tdb-wrap UTIL_TDB NDR_SECURITY tevent ldbwrap'
52         )
53
54
55 bld.SAMBA_PYTHON('pyparam',
56         source='pyparam.c',
57         deps='samba-hostconfig pytalloc-util',
58         realname='samba/param.so'
59         )
60
61
62 bld.SAMBA_SUBSYSTEM('pyparam_util',
63         source='pyparam_util.c',
64         deps='LIBPYTHON samba-hostconfig',
65         pyext=True,
66         )
67
68 bld.SAMBA_LIBRARY('shares',
69                   source=[],
70                   deps='share share_classic share_ldb',
71                   grouping_library=True,
72                   private_library=True)