param: generate lp[cfg]_max_print_jobs()
[kai/samba-autobuild/.git] / lib / param / wscript_build
1 #!/usr/bin/env python
2
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')
8
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')
14
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')
20
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')
26
27 bld.SAMBA_LIBRARY('server-role',
28                   source='loadparm_server_role.c',
29                   deps='samba-util',
30                   private_library=True)
31
32 bld.SAMBA_LIBRARY('samba-hostconfig',
33         source='loadparm.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'
40         )
41
42