param: Move per-share parameters into a seperate file, to share with s3
[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_GENERATOR('param_local_h',
9                     source= '../../lib/param/param_functions.c ../../script/mkparamdefs.pl',
10                     target='param_local.h',
11                     rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=LOCAL')
12
13 bld.SAMBA_GENERATOR('param_global_h',
14                     source= 'loadparm.c ../../script/mkparamdefs.pl',
15                     target='param_global.h',
16                     rule='${PERL} ${SRC[1].abspath(env)} ${SRC[0].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
17
18 bld.SAMBA_LIBRARY('samba-hostconfig',
19         source='loadparm.c generic.c util.c',
20         pc_files='samba-hostconfig.pc',
21         vnum='0.0.1',
22         deps='DYNCONFIG',
23         public_deps='samba-util bitmap',
24         public_headers='param.h',
25         autoproto='param_proto.h',
26         autoproto_extra_source='../../lib/param/param_functions.c'
27         )
28
29
30 bld.SAMBA_SUBSYSTEM('PROVISION',
31         source='provision.c pyparam.c',
32         deps='LIBPYTHON pyparam_util ldb pytalloc-util pyldb-util',
33         pyext=True,
34         )
35
36
37 bld.SAMBA_SUBSYSTEM('share',
38         source='share.c',
39         public_headers='share.h',
40         deps='samba-util'
41         )
42
43
44 bld.SAMBA_MODULE('share_classic',
45         source='share_classic.c',
46         subsystem='share',
47         init_function='share_classic_init',
48         deps='samba-util'
49         )
50
51
52 bld.SAMBA_MODULE('share_ldb',
53         source='share_ldb.c',
54         subsystem='share',
55         init_function='share_ldb_init',
56         deps='ldbsamba auth_system_session'
57         )
58
59
60 bld.SAMBA_SUBSYSTEM('SECRETS',
61         source='secrets.c',
62         deps='ldb tdb-wrap UTIL_TDB NDR_SECURITY tevent ldbwrap'
63         )
64
65
66 bld.SAMBA_PYTHON('pyparam',
67         source='pyparam.c',
68         deps='samba-hostconfig pytalloc-util',
69         realname='samba/param.so'
70         )
71
72
73 bld.SAMBA_SUBSYSTEM('pyparam_util',
74         source='pyparam_util.c',
75         deps='LIBPYTHON samba-hostconfig',
76         pyext=True,
77         )
78
79 bld.SAMBA_LIBRARY('shares',
80                   source=[],
81                   deps='share share_classic share_ldb',
82                   grouping_library=True,
83                   private_library=True)