param: use generate_param.py to generate loadparm_ctx_table.c
[sfrench/samba-autobuild/.git] / source3 / param / wscript_build
1 #!/usr/bin/env python
2
3 bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
4                      source='util.c',
5                      deps='talloc')
6
7 bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
8                      source='loadparm_ctx.c',
9                      deps='''talloc s3_param.h param''')
10
11 bld.SAMBA_GENERATOR('s3_param_proto_h',
12                     source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
13                     target='param_proto.h',
14                     group='build_source',
15                     rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=S3PROTO')
16
17 bld.SAMBA_GENERATOR('s3_loadparm_ctx_table_c',
18                     source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
19                     target='loadparm_ctx_table.c',
20                     group='build_source',
21                     rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=S3TABLE')
22
23 bld.SAMBA3_PYTHON('pys3param',
24                   source='pyparam.c',
25                   deps='param',
26                   public_deps='samba-hostconfig pytalloc-util talloc',
27                   realname='samba/samba3/param.so')
28
29 bld.SAMBA3_SUBSYSTEM('param_service',
30                      source='service.c',
31                      deps = 'USER_UTIL param PRINTING')
32
33 bld.SAMBA3_BINARY('test_lp_load',
34                  source='test_lp_load.c',
35                  deps='''
36                  talloc
37                  param
38                  popt_samba3''',
39                  install=False)