summaryrefslogtreecommitdiff
path: root/source3/param/wscript_build
blob: 278d5f5d5f047c3d22fc7cfa93f2d68e0664b237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python

bld.SAMBA3_SUBSYSTEM('PARAM_UTIL',
                     source='util.c',
                     deps='talloc')

bld.SAMBA3_SUBSYSTEM('LOADPARM_CTX',
                     source='loadparm_ctx.c',
                     deps='''talloc s3_param_h param''')

bld.SAMBA_GENERATOR('s3_param_global_h',
                    source= '../../script/mkparamdefs.pl loadparm.c ../../lib/param/param_functions.c',
                    target='param_global.h',
                    rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT} --generate-scope=GLOBAL')

bld.SAMBA3_PYTHON('pys3param',
                  source='pyparam.c',
                  deps='param',
                  public_deps='samba-hostconfig pytalloc-util talloc',
                  realname='samba/samba3/param.so')

bld.SAMBA3_SUBSYSTEM('param_service',
                     source='service.c',
                     deps = 'USER_UTIL param PRINTING')

bld.SAMBA3_BINARY('test_lp_load',
                 source='test_lp_load.c',
                 deps='''
                 talloc
                 param
                 popt_samba3''',
                 install=False)