uwrap: Fix the handle loop for older gcc versions.
[Samba.git] / lib / param / wscript_build
blob69746bc83eee1092081a4cd38fe0bdc71b3b1708
1 #!/usr/bin/env python
3 bld.SAMBA_GENERATOR('param_functions.c',
4 source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
5 target='param_functions.c',
6 group='build_source',
7 rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=FUNCTIONS')
9 bld.SAMBA_GENERATOR('param_functions.h',
10 source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
11 target='param_functions.h',
12 group='build_source',
13 rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=LIBPROTO')
15 bld.SAMBA_GENERATOR('param_local.h',
16 source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
17 target='param_local.h',
18 group='build_source',
19 rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=PARAMDEFS --scope=LOCAL')
21 bld.SAMBA_GENERATOR('param_global.h',
22 source= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
23 target='param_global.h',
24 group='build_source',
25 rule='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=PARAMDEFS --scope=GLOBAL')
27 bld.SAMBA_LIBRARY('server-role',
28 source='loadparm_server_role.c',
29 deps='samba-util',
30 private_library=True)
32 bld.SAMBA_LIBRARY('samba-hostconfig',
33 source='loadparm.c generic.c util.c param_table.c',
34 pc_files='samba-hostconfig.pc',
35 vnum='0.0.1',
36 deps='DYNCONFIG server-role tdb',
37 public_deps='samba-util param_local.h',
38 public_headers='param.h',
39 autoproto='param_proto.h'