lib/param: Mark source code generators as group build_source
[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                     group='build_source',
15                     rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')
16
17 bld.SAMBA_GENERATOR('s3_param_proto_h',
18                     source= '../../script/mks3param_proto.pl loadparm.c ../../lib/param/param_functions.c',
19                     target='param_proto.h',
20                     group='build_source',
21                     rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT}')
22
23 bld.SAMBA_GENERATOR('s3_loadparm_ctx_table_c',
24                     source= ' ../../script/mks3param_ctx_table.pl ../../lib/param/loadparm.c ../../lib/param/param_functions.c',
25                     target='loadparm_ctx_table.c',
26                     group='build_source',
27                     rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT}')
28
29 bld.SAMBA3_PYTHON('pys3param',
30                   source='pyparam.c',
31                   deps='param',
32                   public_deps='samba-hostconfig pytalloc-util talloc',
33                   realname='samba/samba3/param.so')
34
35 bld.SAMBA3_SUBSYSTEM('param_service',
36                      source='service.c',
37                      deps = 'USER_UTIL param PRINTING')
38
39 bld.SAMBA3_BINARY('test_lp_load',
40                  source='test_lp_load.c',
41                  deps='''
42                  talloc
43                  param
44                  popt_samba3''',
45                  install=False)