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_GENERATOR('param_table_gen.c',
28 source
='../../script/generate_param.py ../../docs-xml/smbdotconf/parameters.all.xml',
29 target
='param_table_gen.c',
31 rule
='${PYTHON} ${SRC[0].abspath(env)} --file ${SRC[1].abspath(env)} --output ${TGT} --mode=PARAMTABLE')
33 bld
.SAMBA_LIBRARY('server-role',
34 source
='loadparm_server_role.c',
38 bld
.SAMBA_LIBRARY('samba-hostconfig',
39 source
='loadparm.c util.c param_table.c',
40 pc_files
='samba-hostconfig.pc',
42 deps
='DYNCONFIG server-role tdb',
43 public_deps
='samba-util param_local.h',
44 public_headers
='param.h',
45 autoproto
='param_proto.h'