3 bld
.SAMBA_GENERATOR('param_functions.c',
4 source
= '../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
5 target
='param_functions.c',
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',
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',
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',
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',
32 bld
.SAMBA_LIBRARY('samba-hostconfig',
33 source
='loadparm.c generic.c util.c param_table.c',
34 pc_files
='samba-hostconfig.pc',
36 deps
='DYNCONFIG server-role tdb',
37 public_deps
='samba-util param_local.h',
38 public_headers
='param.h',
39 autoproto
='param_proto.h'