build: Move loadparm-related build rules to source3/param/wscript_build
[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_global_h',
12                     source= '../../script/mkparamdefs.pl loadparm.c ../../lib/param/param_functions.c',
13                     target='param_global.h',
14                     rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
15
16 bld.SAMBA3_PYTHON('pys3param',
17                   source='pyparam.c',
18                   deps='param',
19                   public_deps='samba-hostconfig pytalloc-util talloc',
20                   realname='samba/samba3/param.so')
21
22 bld.SAMBA3_SUBSYSTEM('param_service',
23                      source='service.c',
24                      deps = 'USER_UTIL param PRINTING')
25
26 bld.SAMBA3_BINARY('test_lp_load',
27                  source='test_lp_load.c',
28                  deps='''
29                  talloc
30                  param
31                  popt_samba3''',
32                  install=False)