1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/lib/param/wscript_build
Andrew Bartlett 033dc776de param: Autogenerate s3 lp_ctx glue table
This allows us to use more lpcfg_ functions without adding them
manually.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-10-16 09:31:41 +02:00

37 lines
1.3 KiB
Python

#!/usr/bin/env python
bld.SAMBA_GENERATOR('param_local_h',
source= '../../script/mkparamdefs.pl param_functions.c ',
target='param_local.h',
rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} --file ${TGT} --generate-scope=LOCAL')
bld.SAMBA_GENERATOR('s3_param_h',
source= ' ../../script/mks3param.pl loadparm.c param_functions.c',
target='s3_param.h',
rule='${PERL} ${SRC[0].abspath(env)} ${SRC[1].abspath(env)} ${SRC[2].abspath(env)} --file ${TGT}')
bld.SAMBA_GENERATOR('param_global_h',
source= '../../script/mkparamdefs.pl loadparm.c 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.SAMBA_LIBRARY('server-role',
source='loadparm_server_role.c',
deps='samba-util',
private_library=True)
bld.SAMBA_LIBRARY('samba-hostconfig',
source='loadparm.c generic.c util.c',
pc_files='samba-hostconfig.pc',
vnum='0.0.1',
deps='DYNCONFIG server-role',
public_deps='samba-util param_local_h',
public_headers='param.h',
autoproto='param_proto.h',
autoproto_extra_source='param_functions.c'
)