s3-build: allow waf build of s3 IDL files from any top directory
[samba.git] / source3 / librpc / idl / wscript_build
1 #!/usr/bin/env python
2
3 import os
4
5 topinclude=os.path.join(bld.srcnode.abspath(), 'librpc/idl')
6
7 bld.SAMBA_PIDL_LIST('PIDL',
8                     '''messaging.idl libnetapi.idl notify.idl
9                        perfcount.idl secrets.idl libnet_join.idl server_id.idl''',
10                     options='--includedir=%s --header --ndr-parser' % topinclude,
11                     output_dir='../gen_ndr')
12
13 bld.SAMBA_PIDL_LIST('PIDL',
14                     'wbint.idl',
15                     options='--includedir=%s --header --ndr-parser --samba3-ndr-server --client' % topinclude,
16                     output_dir='../gen_ndr')