waf: change private libraries to use the same soname as public libraries
[samba.git] / buildtools / wafsamba / samba_autoproto.py
1 # waf build tool for building automatic prototypes from C source
2
3 import Build
4 from samba_utils import *
5
6 def SAMBA_AUTOPROTO(bld, header, source):
7     '''rule for samba prototype generation'''
8     bld.SET_BUILD_GROUP('prototypes')
9     relpath = os_path_relpath(bld.curdir, bld.srcnode.abspath())
10     name = os.path.join(relpath, header)
11     SET_TARGET_TYPE(bld, name, 'PROTOTYPE')
12     t = bld(
13         name = name,
14         source = source,
15         target = header,
16         on_results=True,
17         ext_out='.c',
18         before ='cc',
19         rule = '${PERL} "${SCRIPT}/mkproto.pl" --srcdir=.. --builddir=. --public=/dev/null --private="${TGT}" ${SRC}'
20         )
21     t.env.SCRIPT = os.path.join(bld.srcnode.abspath(), 'source4/script')
22 Build.BuildContext.SAMBA_AUTOPROTO = SAMBA_AUTOPROTO
23